https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96385

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|GCC generates separate      |[8/9/10/11 Regression] GCC
                   |debug info with undefined   |generates separate debug
                   |symbols without relocations |info with undefined symbols
                   |                            |without relocations

--- Comment #11 from H.J. Lu <hjl.tools at gmail dot com> ---
GCC 7.3.1 is OK:

[hjl@gnu-cfl-2 pr26324]$ make
/usr/gcc-7.3.1-x32/bin/gcc -B./ -O2 -g -flto -ffat-lto-objects   -c -o
pr26324a.o pr26324a.c
/usr/gcc-7.3.1-x32/bin/gcc -B./ -O2 -g -fPIC   -c -o pr15146c.o pr15146c.c
/usr/gcc-7.3.1-x32/bin/gcc -B./ -O2 -g -fPIC   -c -o pr15146b.o pr15146b.c
/usr/gcc-7.3.1-x32/bin/gcc -B./ -shared  -o pr15146b.so pr15146b.o
/usr/gcc-7.3.1-x32/bin/gcc -B./ -shared  -o pr15146c.so pr15146c.o pr15146b.so
/usr/gcc-7.3.1-x32/bin/gcc -B./  -O2 -g -o x -Wl,-R,. \
  -Wl,--no-copy-dt-needed-entries -Wl,--no-as-needed pr26324a.o pr15146c.so
./x
PASS
[hjl@gnu-cfl-2 pr26324]$

Reply via email to