This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Weak functions not overridden if overriding file contains only overrides of weak functions
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Graeme Russ <graeme dot russ at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 27 Nov 2008 17:54:31 +1030
- Subject: Re: Weak functions not overridden if overriding file contains only overrides of weak functions
- References: <d66caabb0811261800q3ddafbf1p3e4757cea8bc6004@mail.gmail.com>
On Thu, Nov 27, 2008 at 01:00:09PM +1100, Graeme Russ wrote:
> I have heard this is intended behaviour - Is this so? If so, is there an
> option which will force ld to override this behaviour?
You didn't say, but presumably you are using archive libraries. Yes,
object files are only extracted from an archive if they satisfy an
undefined symbol. This is the way archives work and there is no way
to override it short of including the whole archive with
--whole-archive.
--
Alan Modra
Australia Development Lab, IBM