r218287 - Don't use comdats for initializers on platforms that don't support it

Rafael Avila de Espindola rafael.espindola at gmail.com
Mon Sep 22 17:58:21 PDT 2014



Sent from my iPhone

> On Sep 22, 2014, at 20:55, Reid Kleckner <rnk at google.com> wrote:
> 
>> On Mon, Sep 22, 2014 at 5:32 PM, Rafael Avila de Espindola <rafael.espindola at gmail.com> wrote:
>> 
>> > URL: http://llvm.org/viewvc/llvm-project?rev=218287&view=rev
>> > Log:
>> > Don't use comdats for initializers on platforms that don't support it
>> >
>> > In particular, pre-.init_array ELF uses the .ctors section mechanism.
>> > MinGW COFF also uses .ctors, now that I think about it.
>> 
>> Why doesn't it work with .ctors? It is just a list of pointers like .init_array.
> 
> I didn't think it was implemented. Are you saying it's possible and should be easy, or that it should already work? We're having issues with my favorite gold error, "relocation refers to discarded section".

I though I had implemented comdat in both .ctors and .init_array in the same commit in LLVM.

Would you mind reporting a bug with a testcase that used to fail? I will take a look as soon as I get back.

Thanks,
Rafael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140922/fa98a9d8/attachment.html>


More information about the cfe-commits mailing list