static lib drops objects with side-effects

terpstra@bagofholding.com terpstra@bagofholding.com
Tue Feb 11 11:27:00 GMT 2003


On Tue, Feb 11, 2003 at 11:41:54AM +1030, Alan Modra wrote:
> 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.

Erp, sorry the link in my previous email was wrong. *sheepish grin*

Here's a better one:
	http://www.comnets.rwth-aachen.de/doc/c++std/acrobat/body.pdf
	section 3.7.1.2

---
Wes



More information about the Binutils mailing list