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

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 6 11:35:20 PDT 2017


Rui Ueyama via Phabricator <reviews at reviews.llvm.org> writes:

> 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.

The idea of the test was to show that it was not linker script
specific. But we can go with a linker script if you don't think it is
worth the test complexity.

Cheers,
Rafael


More information about the llvm-commits mailing list