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

Reid Kleckner rnk at google.com
Mon Sep 22 17:55:06 PDT 2014


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".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140922/33f51866/attachment.html>


More information about the cfe-commits mailing list