static lib drops objects with side-effects

Alan Modra amodra@bigpond.net.au
Tue Feb 11 01:59:00 GMT 2003


On Mon, Feb 10, 2003 at 08:48:21PM -0500, Daniel Jacobowitz wrote:
> Every time this "bug" comes up, I wonder - why not have a feature which
> says "always include an object that contains .ctors/.dtors"?
> 
> Yes, I can think of situations where you wouldn't want this.  I can
> also see where it might be useful.

Always extracting an object with a special magic symbol would be
workable.  You wouldn't want to trigger on section name as that
would involve a lot more work than just looking at the archive map.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list