forked from Imagelibrary/binutils-gdb
* objcopy.c (enum strip_action): Define strip_unneeded.
(OPTION_STRIP_UNNEEDED): Define. (strip_options): Add "strip-unneeded". (copy_options): Likewise. (copy_usage): Mention --strip-unneeded. (strip_usage): Likewise. (is_strip_section): Strip debugging sections if strip_unneeded. (filter_symbols): If strip_unneeded, only keep BSF_KEEP symbols. (copy_object): If strip_all, discard symbols without checking discard_locals. (copy_object): Call filter_symbols if strip_unneeded. (setup_section): Strip debugging sections if strip_unneeded. (copy_section): Likewise. (strip_main): Handle OPTION_STRIP_UNNEEDED. (copy_main): Likewise. * binutils.texi, objcopy.1, strip.1: Document --strip-unneeded. PR 6684.
This commit is contained in:
@@ -825,6 +825,9 @@ Do not copy relocation and symbol information from the source file.
|
||||
@itemx --strip-debug
|
||||
Do not copy debugging symbols from the source file.
|
||||
|
||||
@item --strip-unneeded
|
||||
Strip all symbols that are not needed for relocation processing.
|
||||
|
||||
@item -K @var{symbolname}
|
||||
@itemx --keep-symbol=@var{symbolname}
|
||||
Copy only symbol @var{symbolname} from the source file. This option may
|
||||
@@ -1381,6 +1384,9 @@ Remove all symbols.
|
||||
@itemx --strip-debug
|
||||
Remove debugging symbols only.
|
||||
|
||||
@item --strip-unneeded
|
||||
Remove all symbols that are not needed for relocation processing.
|
||||
|
||||
@item -K @var{symbolname}
|
||||
@itemx --keep-symbol=@var{symbolname}
|
||||
Keep only symbol @var{symbolname} from the source file. This option may
|
||||
|
||||
Reference in New Issue
Block a user