bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/2143] Unresolvable reference by DSO to hidden symbol despite --a


From: hjl at lucon dot org
Subject: [Bug ld/2143] Unresolvable reference by DSO to hidden symbol despite --allow-shlib-undefined
Date: 26 Jan 2006 23:32:18 -0000

------- Additional Comments From hjl at lucon dot org  2006-01-26 23:32 -------
address@hidden atexit]$ make
cat foo.c
#include <stdlib.h>
int (*oldlib_ptr) (void (*) (void)) = atexit;
gcc -c -o foo.o -fPIC foo.c
ld -shared -o libfoo.so foo.o
cat x.c
int main (void) { return 0; }
gcc -o x x.c -Wl,--allow-shlib-undefined -L. -lfoo
address@hidden atexit]$
address@hidden atexit]$ readelf -s /lib/libc.so.6| grep address@hidden
  1002: 0037d670    61 FUNC    GLOBAL DEFAULT   11 address@hidden
  6641: 0037d670    61 FUNC    GLOBAL DEFAULT   11 address@hidden



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


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

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




reply via email to

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