This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Huge binaries?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]