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

Andrew Stormont <andyjstormont at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andyjstormont at googlemail
                   |                            |dot com

--- Comment #15 from Andrew Stormont <andyjstormont at googlemail dot com> 
2011-09-15 21:28:27 UTC ---
There are two issues here.

The original problem (see comment 1)

mozilla/dist/bin/libnspr4.so: undefined reference to `fcntl@SUNW_0.9'
mozilla/dist/bin/libnspr4.so: undefined reference to `dlsym@SUNW_0.7'
mozilla/dist/bin/libnspr4.so: undefined reference to `pthread_join@SUNW_0.9'
mozilla/dist/bin/libnspr4.so: undefined reference to `select@SUNW_1.2'
mozilla/dist/bin/libnspr4.so: undefined reference to `rw_unlock@SUNW_0.9'
mozilla/dist/bin/libnspr4.so: undefined reference to
`pthread_attr_destroy@SUNW_

Was due to the fact that bfd ignored versions on all absolute symbols.  This is
fixed.

The second problem (see comment 12)

/opkg/bin/gcc -shared -Wl,-h,libplds4.so,-z,combreloc,-z,defs -o libplds4.so
-Wl
,--version-script,./pldsmap.sun ./plarena.o ./plhash.o ./plvrsion.o 
-L/u/projec
ts/tmp/opkg/mozilla/dist/lib -lnspr4 -lc
/opkg/bin/ld: /u/projects/tmp/opkg/mozilla/dist/lib/libnspr4.so: open64:
invalid
 version 23 (max 7)
/u/projects/tmp/opkg/mozilla/dist/lib/libnspr4.so: could not read symbols: Bad
v
alue

This is due the the fact that bfd gets confused and writes a duff open64 symbol
to libnspr4.so which causes then next part of the build to fail.  I've tried to
build with and without mapfile and it makes no difference.  And this is with
the lastest binutils from git.

Here is the output from readelf:

# readelf -s ./mozilla/nsprpub/dist/bin/libnspr4.so | grep open64               
   536: 00000000   240 FUNC    GLOBAL DEFAULT  ABS open64@@NSPR_4.8.9
  1352: 00000000   240 FUNC    GLOBAL DEFAULT  ABS open64@@SUNW_1.1

This is what it looks like on Linux:

# readelf -s /usr/lib/libnspr4.so | grep open64
    84: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND open64@GLIBC_2.2.5
(3)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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

Reply via email to