This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: stripping symbols needed for relocations
- From: "Jan Beulich" <JBeulich at novell dot com>
- To: <nickc at redhat dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: Thu, 16 Dec 2004 14:18:30 +0100
- Subject: Re: stripping symbols needed for relocations
>> 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.
Done.
> * Please consider creating a new test in the binutils testsuite to
>check the behaviour of this feature.
Not done, primarily because none of the other --strip options seem to
be tested.
Jan