bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/15149] Weak reference leads to DT_NEEDED entry


From: hjl.tools at gmail dot com
Subject: [Bug ld/15149] Weak reference leads to DT_NEEDED entry
Date: Mon, 11 Mar 2013 19:45:05 +0000

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

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2013-03-11 19:45:05 
UTC ---
(In reply to comment #4)
> This change is bogus, and breaks lots of packages.
> There is nothing wrong with undef weak references that might sometimes be
> satisfied by some library, but in the next version of the library no longer
> brought in.  DT_NEEDED for undef weak references shouldn't be added, and
> nothing should be diagnosed.  Please revert.

The old linker silently adds the DSO to DT_NEEDED for weak reference.
Even if the next version of the library no longer brings in the DSO,
it is still in DT_NEEDED of executables linked against the current
library.

Gold doesn't add the DSO to DT_NEEDED for weak reference.  But it
leads to different run-time behavior.  See:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56431

for example.

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



reply via email to

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