[LTO Build]

Krisztian Kocsis krisztian.kocsis@navayo.net
Thu Mar 1 13:07:00 GMT 2012


On 03/01/2012 12:51 PM, Thomas Schwinge wrote:
> Hi!
> On Thu, 01 Mar 2012 11:13:39 +0100, Krisztian Kocsis <krisztian.kocsis@navayo.net> wrote:
>> Does glibc support building with -flto flag?
>> If I put it to the CFLAGS then configure will because the .init_array
>> check fails. I'v checked it manually and -flto really drops this section.
>> Is it a compiler bug or glibc does not support LTO enabled builds?
> I think there haven't been any attempts yet to support this in glibc --
> as your experimenting is showing.  Would you be interested in working on
> that?
> Grüße,
>  Thomas

Yes, I will help what I can.

It seems that it is a gcc bug:

Here is a possible fix in Google's branch:

I will try with Google's patch applied to gcc.

Krisztian Kocsis

More information about the Libc-help mailing list