This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch(?): binutils-2.11.90.0.6/ld/ldlang.c fix to resolve undefined DT_NEEDED symbols


On Tue, May 01, 2001 at 12:49:42AM -0700, Adam J. Richter wrote:
> 
> 	Oops!  I spoke too soon.  When I tried your gcc patch, I rebuilt
> ld (without my change), gcc (with your change), gpm and bash (failed to
> link as before), but I did not rebuild ncurses (since the undefined
> symbol was in libgpm).  However, now I have rebuilt ncurses with the
> modified gcc and that seems to have made the problem go away.  I
> don't know why, but I notice that the undefined reference to
> atexit in ncurses no longer has version information in it.
> 
> 	Before, objdump --dynamic-sym /usr/lib/libcurses.so had this line:
> 
> 00000000      DF *UND*  00000048  GLIBC_2.1.3 __cxa_atexit
> 
> 	After your change, it had this line:
> 
> 00000000      D  *UND*  00000000              atexit
> 

It doesn't look right. I got

# objdump --dynamic-sym /usr/lib/libcurses.so | grep atexit
0000000000000000      DF *UND*  0000000000000034  GLIBC_2.0   atexit

You need to find out why the reference to atexit is not versioned.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]