stripping symbols needed for relocations
Nick Clifton
nickc@redhat.com
Thu Dec 16 12:07:00 GMT 2004
Hi Jan,
> binutils/
> 2004-12-15 Jan Beulich <jbeulich@novell.com>
>
> * doc/binutils.texi: Document --strip-unneeded-symbol and
> --strip-unneeded-symbols.
> * objcopy.c (strip_unneeded_list): New.
> (enum command_line_switch): Add OPTION_STRIP_UNNEEDED_SYMBOL
> and OPTION_STRIP_UNNEEDED_SYMBOLS.
> (copy_options): Add --strip-unneeded-symbol and
> --strip-unneeded-symbols.
> (copy_usage): Likewise.
> (filter_symbols): Suppress copying of symbol if in
> strip_unneeded_list
> and the symbol is not needed.
> (copy_main): Handle OPTION_STRIP_UNNEEDED_SYMBOL and
> OPTION_STRIP_UNNEEDED_SYMBOLS.
Approved - please apply, but ...
* Please also add an entry to binutils/NEWS mentioning this new feature.
* Please consider creating a new test in the binutils testsuite to
check the behaviour of this feature.
Cheers
Nick
More information about the Binutils
mailing list