[PATCH v2] Improve building with LTO
Mark Wielaard
mark@klomp.org
Tue Nov 9 11:45:40 GMT 2021
Hi Martin,
On Tue, 2021-11-09 at 10:04 +0100, Martin Liška wrote:
> On 11/9/21 09:58, Dmitry V. Levin wrote:
> > Yes, but those who build elfutils with -flto are likely using
> > -ffat-lto-objects if they build static libraries.
>
> Yes, I can confirm that we do that as openSUSE, we actually build
> with:
>
> -flto -flto-partition=none -Wno-error=stack-usage= -ffat-lto-objects
As Dmitry pointed out you should now be able to drop both -flto-
partition=none an -Wno-error=stack-usage= (the linker will still warn,
but not error on the large stack-usage issues (we should probably still
fix them though).
What do the test results look like? Do they all PASS with -ffat-lto-
objects?
Could you try the proposed patch for
https://sourceware.org/bugzilla/show_bug.cgi?id=27367
https://sourceware.org/pipermail/elfutils-devel/2021q4/004314.html
Thanks,
Mark
More information about the Elfutils-devel
mailing list