Huge binaries?
Jason Merrill
jason@cygnus.com
Fri Nov 19 11:28:00 GMT 1999
>>>>> 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
More information about the Libstdc++
mailing list