[Bug lto/96385] GCC generates separate debug info with undefined symbols without relocations
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Jul 30 12:17:22 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96385
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
Please get users/hjl/pr26314/test branch at
https://gitlab.com/x86-binutils/binutils-gdb/-/tree/users/hjl/pr26314/test
and build binutils with GCC 10:
CC="/usr/gcc-10.1.1-x32/bin/gcc -flto -ffat-lto-objects -Wl,--as-needed
-fcf-protection" CXX="/usr/gcc-10.1.1-x32/bin/g++ -flto -ffat-lto-objects
-Wl,--as-needed -fcf-protection"
/export/gnu/import/git/gitlab/x86-binutils/configure \
--enable-shared \
\
--enable-plugins --disable-gdb --disable-gdbserver
--disable-libdecnumber --disable-readline --disable-sim --with-sysroot=/
--with-system-zlib \
--prefix=/usr/local \
--with-local-prefix=/usr/local
I got
[hjl@gnu-cfl-2 build-x86_64-linux]$ nm -D binutils/.libs/ar | grep lrealpath
0000000000000000 A lrealpath
[hjl@gnu-cfl-2 build-x86_64-linux]$
More information about the Gcc-bugs
mailing list