[PATCH] D58625: [llvm-objcopy] - Check for invalidated relocations when removing a section.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 25 09:12:10 PST 2019
grimar added inline comments.
================
Comment at: test/tools/llvm-objcopy/ELF/strip-section-err.test:7
+
+# CHECK: error: Section .data cannot be removed because it is referenced by the relocation section .rela.text.
+
----------------
jhenderson wrote:
> The relocations don't really reference the section, but rather a symbol in that section. I think the error message should reflect that somehow. It would also be great if the index of the relocation could be mentioned in the error message.
What do you think about the updated version (I am printing the relocation name and index)?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58625/new/
https://reviews.llvm.org/D58625
More information about the llvm-commits
mailing list