This is the mail archive of the libstdc++@gcc.gnu.org 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]

proper use of 'ld -z combreloc' in libstdc++



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


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