Add support for removing named sections to objcopy and strip.
authorIan Lance Taylor <ian@airs.com>
Thu, 11 Aug 1994 19:00:26 +0000 (19:00 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 11 Aug 1994 19:00:26 +0000 (19:00 +0000)
commit0aca460e7c11225478d0ec4b962f204f0e91857a
treed3181494247ec6276e75ed86cae0403d077e42b0
parent97e7b66f5e80e55d1508778e9e037a4f9af8b9f6
Add support for removing named sections to objcopy and strip.
* objcopy.c (struct section_list): Define.
(remove_sections): New static variable.
(strip_options, copy_options): Add remove-section.
(copy_usage, strip_usage): Mention -R and --remove-section.
(setup_section): If section is in remove_sections list, ignore it.
(copy_section): Likewise.
(strip_main, copy_main): Handle -R.
* binutils.texi, objcopy.1, strip.1: Document new options.
binutils/ChangeLog
binutils/binutils.texi
binutils/objcopy.1
binutils/strip.1