[v3] use --gc-sections if possible
Alan Modra
amodra@bigpond.net.au
Mon Jan 16 06:36:00 GMT 2006
On Wed, Jan 11, 2006 at 08:34:34PM -0600, Benjamin Kosnik wrote:
> Hey Mr. Joy-and-bunnyrabbits:
:-) Actually, that would be Phil Edwards. I just liked the comment so
much I used it as an email subject.
> Here's how the gc-sections bits can be enabled by default. I haven't
> done the instrumentation to the testsuite to see if there is a
> significant advantage or any change to enabling this. I don't think it
> would be to difficult to do more elaborate testing.
>
> However, I'm curious: do you think this is a good idea? Do you think it
> would be a good idea to flip this on for wider testing for this flag?
My testing showed only marginal improvement in the size of libstdc++.so,
but yes, I'd like to see this GNU ld flag used.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Libstdc++
mailing list