How should the GNU linker treat weak references?

David O'Brien obrien@FreeBSD.org
Mon Jul 9 17:04:00 GMT 2001


On Thu, Jul 05, 2001 at 05:22:51PM +0930, Alan Modra wrote:
> I've spent the last 10 minutes thinking over this, and can see one
> implication of allowing a strong sym in a dynamic lib to take
> precedence over a weak sym in an executable;  The dynamic linker would
> need to fall back to using the weak definition in the executable if the
> library changes and no longer exports the sym.

If one removes an interface in a shared lib, and does not change the
"version number", they get what they deserve.  This I don't see where
this case needs to be worried about.
 
-- 
-- David  (obrien@FreeBSD.org)



More information about the Binutils mailing list