bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/16100] shared lib exports definition of _ZdlPv even though loc


From: sbergman at redhat dot com
Subject: [Bug gold/16100] shared lib exports definition of _ZdlPv even though local per --version-script
Date: Thu, 31 Oct 2013 08:28:52 +0000

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
  0000000000000698 T _ZdlPv

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]