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

--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
Created attachment 58540
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58540&action=edit
gcc-binutils-PR115712.tar.xz

g++ -g -O2 -D_GNU_SOURCE -ansi -c dl5.cc -o dl5.o
g++ -g -O2 -D_GNU_SOURCE -ansi -fPIC -c del.cc -o del.o
g++ -g -O2 -D_GNU_SOURCE -ansi -fPIC -c new.cc -o new.o
g++ -o libnew1a.so -shared -Wl,-Bsymbolic-functions,--dynamic-list-cpp-new
del.o new.o
g++ o dl5a -Wl,--no-as-needed libnew1a.so dl5.o

# Prints "FAIL" if dl5.o is built with GCC 15, but "PASS" if dl5.o is built
with GCC 14
LD_LIBRARY_PATH=. ./dl5a

Reply via email to