functexcept.cc draws in everything

Pétur Runólfsson peturr02@ru.is
Fri Mar 12 11:47:00 GMT 2004


Henning Baldersheim wrote:
> However I am still not able to get --gc-sections to do as it should. When
> I
> split up the functexcept.cc file it works fine. Then I only get
> __throw_bad_alloc. I have checked that the library actually has one
> section
> pr. function and that is true. So I wonder what other possible errors
> could
> I have made.

None. It's a problem in libstdc++. Basically, --gc-sections can't GC
anything because it's all marked as used. See:

http://gcc.gnu.org/ml/libstdc++/2003-09/msg00195.html

This was already fixed for 3.4:

http://gcc.gnu.org/ml/libstdc++/2003-09/msg00191.html

Regards,
Petur




More information about the Libstdc++ mailing list