This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: static lib drops objects with side-effects
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "Wesley W. Terpstra" <wesley at terpstra dot ca>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 11 Feb 2003 11:41:54 +1030
- Subject: Re: static lib drops objects with side-effects
- References: <20030210160304.GA12232@terpstra.ca>
On Mon, Feb 10, 2003 at 05:03:04PM +0100, Wesley W. Terpstra wrote:
> This is a bug.
No it isn't. Objects are extracted from archives during linking only
if the object contains a symbol satisfying an undefined symbol
reference. If this behaviour is incompatible with your C++ model then
don't use archives.
--
Alan Modra
IBM OzLabs - Linux Technology Centre