[PATCH] D33485: [ELF] - Do not allow -r to eat comdats.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed May 24 15:56:49 PDT 2017


Rui Ueyama <ruiu at google.com> writes:

> On Wed, May 24, 2017 at 3:36 PM, Rafael Avila de Espindola <
> rafael.espindola at gmail.com> wrote:
>
>> Rui Ueyama via Phabricator <reviews at reviews.llvm.org> writes:
>>
>> > ruiu added a comment.
>> >
>> > In general, I think we pass through all input sections to an output when
>> the -r option is given. But in this patch you deduplicates comdat groups.
>> Do you need that?
>>
>> While it should be legal to have two groups with the same signature in a .o
>> file, it seems better to drop the second one, no?
>>
>
> Yes, but I wondered if we could make this patch simpler if we don't dedup
> comdat groups.

We would still need need to copy the SHT_GROUP sections and adjust the
section and symbol numbers, so I don't think it would make a big
difference.

Cheers,
Rafael


More information about the llvm-commits mailing list