[Bug general/24498] 0.176: isn't LTO ready

marxin.liska at gmail dot com sourceware-bugzilla@sourceware.org
Wed Apr 15 05:12:18 GMT 2020


https://sourceware.org/bugzilla/show_bug.cgi?id=24498

--- Comment #9 from Martin Liška <marxin.liska at gmail dot com> ---
(In reply to Mark Wielaard from comment #8)
> I proposed a patch to use the new gcc 10 symver attribute to define symbol
> versioning:
> 
> https://sourceware.org/pipermail/elfutils-devel/2020q2/002606.html
> 
> This should help with using LTO since it makes the function symbols and
> versions visible to the compiler (before they were "hidden" inside asm
> statements).

There's an ongoing effort that will extend .symver GAS syntax:
https://sourceware.org/bugzilla/show_bug.cgi?id=25295

Later then, the GCC will utilize the new syntax.

> 
> But I haven't tried to build all of elfutils with LTO enabled yet.
> How do you configure elfutils to enable LTO?

I would add a configure option --enable-lto that will append -flto to
{C,LD}FLAGS.

Thanks for working on that.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Elfutils-devel mailing list