-
Notifications
You must be signed in to change notification settings - Fork 7
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
llvm-objcopy: Disable huge sec offset #49
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review comments
fde7ae0
to
b39e492
Compare
@farazs-github Thanks for the feedback! |
I've gotten some comments on the upstream PR. I will apply them here when it is ready/merged there. |
By default, GNU objcopy issues a warning for large offsets in ELF files. To align with this behavior, we introduce an option to define a maximum file offset for a section. This allows us to skip creating excessively large files by specifying a threshold beyond which the file offset will trigger an error.
b39e492
to
1f3a427
Compare
I have incorporated all comments from reviewers from the upstream PR. They are happy with implementation, but there is ongoing discussion about the option being accepted at first place. |
Merged internally (review process also done on upstream - the implementation is OK, but there is a discussion if we even want this option in mainline). |
Match GNU objcopy's behavior.
This is controlled by an option.