Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code_relocation: Allow processing of object files #75738

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dennisgr102
Copy link
Contributor

This change allows the relocation script to process object files by checking the suffix and only assuming it's a source file if it does not end in ".o" or ".obj".

The motivation behind this change is that I am trying to relocate code which is in a prebuilt static library archive. In order to do so, I am unarchiving the library and passing the object files for relocation.

Allow processing of object files

Signed-off-by: Dennis Grijalva <dennisgrijalva@meta.com>
Copy link
Collaborator

@tejlmand tejlmand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes looks fine, but I would like you to extend the existing test cases to verify relocation of an object file.

You should be able to use this feature with one of the compiled object files instead of passing the source file, and thus avoid adding object files to git.

This will also help users / serve as documentation that object files can be relocated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants