This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Huge binaries?
- To: Benjamin Kosnik <bkoz at cygnus dot com>
- Subject: Re: Huge binaries?
- From: Jason Merrill <jason at cygnus dot com>
- Date: 19 Nov 1999 11:28:43 -0800
- Cc: Gerald Gutierrez <gutier at intergate dot bc dot ca>, libstdc++ at sourceware dot cygnus dot com
- References: <Pine.LNX.4.04.9911191011150.9125-100000@decepticon.cygnus.com>
>>>>> Benjamin Kosnik <bkoz@cygnus.com> writes:
>> You'd also need '-Wl,--gc-sections'. Unfortunately, this has problems with
>> dynamic linking last I heard, and is quietly disabled.
>>
>> > I don't think the bugs with -fPIC have been worked out, so the v-3
>> > Makefiles don't turn it on by default.
>>
>> Huh?
> -fPIC is enabled, don't worry. The v-3 makefiles create a shared and
> static library by default. What I was trying to say was that I haven't
> gone through the work of automating the use of
> -ffunction-sections -fvtable-gc -Wl,--gc-sections
> on hosts that can deal with this because the last time I tried to use
> these flags with -O2 and -fPIC, I got a less than silent failure.
Yep. Would be nice if someone in binutils-land would fix these problems so
that --gc-sections could be useful on native targets...
Jason