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

mark at klomp dot org sourceware-bugzilla@sourceware.org
Wed May 6 14:39:19 GMT 2020


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

--- Comment #19 from Mark Wielaard <mark at klomp dot org> ---
The following now works with current git master:

$ export AR=gcc-ar RANLIB=gcc-ranlib NM=gcc-nm
$ autoreconf -f -v -i
$ ./configure --enable-maintainer-mode CFLAGS="-O2 -g -flto
-flto-partition=none -Wno-error=stack-usage=" CXXFLAGS="-O2 -g -flto
-flto-partition=none"
$ make -j4
$ make check -j4

# TOTAL: 218
# PASS:  216
# SKIP:  2
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0

The -flto-partition=none workaround is still needed issues with symbol
versioning (even with the new gcc symver support we'll still get multiple
defined symbols).

The -Wno-error=stack-usage= is needed for "linking" the various tools in src
(they have -Wno-stack-usage= in src/Makefile.am, but it links with some code in
lib/ which doesn't...)

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


More information about the Elfutils-devel mailing list