please consider following testcase:

$ cat bug.cpp
void f() { }

$ g++ -fpic bug.cpp -o libbug.so -shared -z defs \
  -nodefaultlibs -nostartfiles -lsupc++ libc_pic.a

imho it should work fine, but linker produces an error:

/usr/bin/ld: libbug.so: version node not found for symbol 
pthread_cond_destroy@@GLIBC_2.3.2
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status

gcc-4.3.0, glibc-2.7, binutils-2.18.50.0.4

-- 
           Summary: 'version node not found for symbol ...' during linking
                    against libc_pic.a
           Product: binutils
           Version: 2.18
            Status: NEW
          Severity: minor
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: pluto at agmk dot net
                CC: bug-binutils at gnu dot org
GCC target triplet: x86_64-gnu-linux


http://sourceware.org/bugzilla/show_bug.cgi?id=5905

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to