Linker version script turning weak symbols into strong symbols

Alan Modra amodra@bigpond.net.au
Wed May 27 03:53:00 GMT 2009


On Tue, May 26, 2009 at 12:04:40PM -0500, Kevin P. Fleming wrote:
> However, if test3 *is* loaded, then when test2 gets loaded, the linker
> should override test2's weak definition for that symbol with the strong
> definition from test3.

This won't happen if you have made a symbol local.  Have a look at the
dynamic symbol table to see why.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list