------- Additional Comments From drow at false dot org  2006-01-18 14:52 -------
Subject: Re:  New: Unresolvable reference by DSO to hidden symbol despite 
--allow-shlib-undefined

On Thu, Jan 12, 2006 at 11:40:56AM -0000, jan dot echternach at 
group-technologies dot com wrote:
> I'm getting a "hidden symbol is referenced by DSO" error if I link a program 
> with both LSB2's libc.so and an old libnotes.so from Lotus Domino 6.  
> libnotes.so has an undefined reference to atexit, LSB2's libc.so has no 
> definition of that symbol, but there is a hidden atexit symbol in 
> libc_nonshared.a.
> 
> I tried both the preinstalled ld (GNU ld version 2.15.94.0.2.2 20041220 (SuSE 
> Linux)) and the ld from binutils-2.16.91.0.5 (GNU ld version 2.16.91.0.5 
> 20051219).
> 
> I can reproduce the error without libnotes.so by linking with a dummy DSO 
> that 
> has only an undefined 'atexit' reference.  It is possible to work around the 
> problem by removing the hidden atexit symbol from libc_nonshared.a.

Another workaround should be providing a non-hidden definition of
atexit.

In other cases this error is valuable; perhaps it should be conditioned
on --allow-shlib-undefined.



-- 


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