[PATCH] D33824: [ELF] - Do not merge relocation sections by name when using --emit-relocs.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 08:47:37 PDT 2017


ruiu added inline comments.


================
Comment at: test/ELF/emit-relocs-merge.test:1
+# RUN: yaml2obj %s -o %t.o
+# RUN: ld.lld %t.o -o %t --emit-relocs
----------------
grimar wrote:
> ruiu wrote:
> > Can you create this using llvm-mc?
> I do not think so. Idea here was to create relocation section that does not have name starting from ".rel" or ".rela".
> I do not think llvm-mc allows to do that.
But you can test this if you use a linker script, no? You are using` .zed : { *(.foo) *(.bar) }` as an example.


https://reviews.llvm.org/D33824





More information about the llvm-commits mailing list