[Bug gold/16100] shared lib exports definition of _ZdlPv even though local per --version-script

2013-10-31 Thread sbergman at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16100

--- Comment #2 from Stephan Bergmann sbergman at redhat dot com ---
Still broken for me with current binutils git trunk:

(Switched alternatives back to use /usr/bin/ld.bfd.)  Built
~/binutils/trunk/inst/bin/ld.gold --version GNU gold (GNU Binutils
2.24.51.20131031) 1.11.

  $ g++ -shared -fPIC -o lib1.so lib1.cc
  $ g++ -shared -fPIC -c lib2.cc
  $ g++ -### -shared -fPIC -o lib2.so -Wl,--version-script,lib2.ver lib2.o -L.
-l1
  # replacing collect2 in the linker command line:
  $ ~/binutils/trunk/inst/bin/ld.gold --build-id --no-add-needed --eh-frame-hdr
--hash-style=gnu -m elf_x86_64 -shared -o lib2.so
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/crtbeginS.o -L.
-L/usr/lib/gcc/x86_64-redhat-linux/4.8.2
-L/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../..
--version-script lib2.ver lib2.o -l1 -lstdc++ -lm -lgcc_s -lc -lgcc_s
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/crtendS.o
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/crtn.o
  $ nm lib2.so | grep _ZdlPv
  0698 T _ZdlPv

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

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/16100] shared lib exports definition of _ZdlPv even though local per --version-script

2013-10-30 Thread ppluzhnikov at google dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16100

Paul Pluzhnikov ppluzhnikov at google dot com changed:

   What|Removed |Added

 CC||ppluzhnikov at google dot com

--- Comment #1 from Paul Pluzhnikov ppluzhnikov at google dot com ---
Worked fine for me using current gold sources:

GNU gold (GNU Binutils 2.24.51.20131001) 1.11
GNU gold (GNU Binutils 2.24.51.20131021) 1.11

nm lib2.so | grep _ZdlPv
048c t _ZdlPv

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

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils