------- Additional Comments From hjl at lucon dot org  2006-01-26 23:32 -------
[EMAIL PROTECTED] 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
[EMAIL PROTECTED] atexit]$
[EMAIL PROTECTED] atexit]$ readelf -s /lib/libc.so.6| grep [EMAIL PROTECTED]
  1002: 0037d670    61 FUNC    GLOBAL DEFAULT   11 [EMAIL PROTECTED]
  6641: 0037d670    61 FUNC    GLOBAL DEFAULT   11 [EMAIL PROTECTED]



-- 
           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.


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

Reply via email to