This is https://bugs.llvm.org/show_bug.cgi?id=40818
Removing a section that is used by relocation is an error
we did not report. The patch fixes that.
Differential D58625
[llvm-objcopy] - Check for invalidated relocations when removing a section. grimar on Feb 25 2019, 7:38 AM. Authored by
Details This is https://bugs.llvm.org/show_bug.cgi?id=40818 Removing a section that is used by relocation is an error
Diff Detail Event Timeline
Comment Actions
Comment Actions
Comment Actions LGTM, but may be worth get another llvm-objcopy developer to give a thumbs up in case I missed anything.
|
I'd make this comment a little more general for the behaviour, by removing references to the section name and describing what is the interesting characteristic of it. Something like "Check we cannot remove a section containing symbols referenced by relocations contained in the object." or something along those lines.