[PATCH] D38724: [ELF] - Do not collect SHT_REL[A] sections unconditionally when --gc-sections and --emit-relocs used together.

Roland McGrath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 21 03:06:38 PDT 2017


mcgrathr added a comment.

This change works on my case, but it names the reloc sections it emits based on the first input section in the output section being relocated rather than on the output section itself.
e.g. in my -ffunction-sections --gc-sections --emit-relocs build, the SHT_RELA section with sh_info pointing to the .text section is called .rela.text.first_function_in_text rather than .rela.text.


https://reviews.llvm.org/D38724





More information about the llvm-commits mailing list