diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-08-11 19:00:26 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-08-11 19:00:26 +0000 |
commit | 0aca460e7c11225478d0ec4b962f204f0e91857a (patch) | |
tree | d3181494247ec6276e75ed86cae0403d077e42b0 /binutils/objcopy.1 | |
parent | 97e7b66f5e80e55d1508778e9e037a4f9af8b9f6 (diff) | |
download | gdb-0aca460e7c11225478d0ec4b962f204f0e91857a.zip gdb-0aca460e7c11225478d0ec4b962f204f0e91857a.tar.gz gdb-0aca460e7c11225478d0ec4b962f204f0e91857a.tar.bz2 |
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.
Diffstat (limited to 'binutils/objcopy.1')
-rw-r--r-- | binutils/objcopy.1 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/binutils/objcopy.1 b/binutils/objcopy.1 index 4ba1164..78877e6 100644 --- a/binutils/objcopy.1 +++ b/binutils/objcopy.1 @@ -18,6 +18,7 @@ objcopy \- copy and translate object files .RB "[\|" \-F\ \fIbfdname\fB\ |\ \-\-target=\fIbfdname\fR "\|]" .RB "[\|" \-I\ \fIbfdname\fB\ |\ \-\-input\-target=\fIbfdname\fR "\|]" .RB "[\|" \-O\ \fIbfdname\fB\ |\ \-\-output\-target=\fIbfdname\fR "\|]" +.RB "[\|" \-R\ \fIsectionname\fB\ |\ \-\-remove\-section=\fIsectionname\fR "\|]" .RB "[\|" \-S\ |\ \-\-strip\-all\fR "\|]" .RB "[\|" \-g\ |\ \-\-strip\-debug\fR "\|]" .RB "[\|" \-x\ |\ \-\-discard\-all\fR "\|]" @@ -74,6 +75,11 @@ Use as the object format for both the input and the output file; i.e. simply transfer data from source to destination with no translation. .TP +.B \-R \fIsectionname\fR, \fB\-\-remove-section=\fIsectionname +Remove the named section from the file. This option may be given more +than once. Note that using this option inappropriately may make the +output file unusable. +.TP .B \-S\fR, \fB\-\-strip\-all Do not copy relocation and symbol information from the source file. .TP |