static lib drops objects with side-effects
Alan Modra
amodra@bigpond.net.au
Tue Feb 11 01:11:00 GMT 2003
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
More information about the Binutils
mailing list