This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Large size of C++ v3 libs
- To: llewelly at dbritsch dot dsl dot xmission dot com
- Subject: Re: Large size of C++ v3 libs
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Fri, 12 May 2000 13:31:52 -0700
- Cc: Ryszard Kabatek <rumcajs at gmx dot net>, gcc at gcc dot gnu dot org,binutils at sourceware dot cygnus dot com
- References: <3274.958122925@www10.gmx.net> <Pine.LNX.4.21.0005121401350.6365-100000@dbritsch.dsl.xmission.com>
On Fri, May 12, 2000 at 02:16:12PM -0600, llewelly@dbritsch.dsl.xmission.com wrote:
> On Fri, 12 May 2000, Ryszard Kabatek wrote:
>
> > I compiled the gcc (egcs-20000501) on Linux (SuSE 6.2) with
> > --enable-libstdcxx-v3.
> > The build was successfull, but the size of the libraries is really large:
> > libstdc++.a - 24584366 bytes,
> > libstdc++.so.3.0.0 - 5718674 bytes.
>
> I believe the libraries are built with -g by default. Since they are
> experimental, and thus probably buggy, this is usually a good
> thing. However, it greatly increases the size of the binaries.
>
> If you decide to strip(1) them, be careful. On my i686-pc-linux-gnu, with
> binutils 2.9.5.0.41, I need to use 'strip --strip-debug foo.a' and *not*
> 'strip --strip-unneeded foo.a'. The --strip-unneeded rips out the stack
> unwinding stuff needed for exceptions, which it seems to consider
> 'unneeded'
This sounds like a bug in strip. Could you please provide a small
testcase? I'd like to fix it.
Thanks.
H.J.