This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
proper use of 'ld -z combreloc' in libstdc++
- To: jakub at redhat dot com, libstdc++ at gcc dot gnu dot org
- Subject: proper use of 'ld -z combreloc' in libstdc++
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Sat, 25 Aug 2001 12:32:01 -0700
Hey Jakub. Uli sent me a link to this:
http://sources.redhat.com/ml/binutils/2001-08/msg00311.html
Looks wicked cool.
I'm interested in trying to modify the libstdc++ makefiles to support
this: do you think it's a good idea?
There is an autoconf macro, GLIBCPP_CHECK_LINKER_FEATURES, in
libstdc++-v3/acincluce.m4 that tried to probe the linker to see if
--gc-sections could be used. For various reasons (documented in the
macro body) the --gc-sections part is turned off right now. I'm
thinking of adding a bit for combreloc.
Besides testing to make sure that ld handles the flag, what else needs
to be done to see if a given (random) architecture supports this?
thanks,
benjamin