This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Linker version script turning weak symbols into strong symbols
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "Kevin P. Fleming" <kpfleming at digium dot com>
- Cc: Dave Korn <dave dot korn dot cygwin at googlemail dot com>, binutils at sourceware dot org
- Date: Wed, 27 May 2009 13:23:47 +0930
- Subject: Re: Linker version script turning weak symbols into strong symbols
- References: <4A1C17E8.9070602@digium.com> <4A1C2076.6010809@gmail.com> <4A1C2128.70708@digium.com>
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