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
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