[PATCH] D39242: [ELF] - Stop naming relocation sections with first input section name.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 26 14:15:50 PDT 2017


ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: ELF/Writer.cpp:101-103
+  // This is normally used for --emit-relocs. With that we want
+  // to name relocation section similar to it's target section.
+  // That makes output cleaner and consistent with GNU linkers.
----------------
This is for --emit-relocs. If .text.foo is emitted as .text, we want to emit .rela.text.foo as .rel.text for consistency (this is not technically required, but not doing it is odd). This code guarantees that.


https://reviews.llvm.org/D39242





More information about the llvm-commits mailing list