diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-02-09 21:18:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-02-09 21:18:01 +0000 |
commit | d0130cc88824b1f04ca3f8da768eec6582f7573d (patch) | |
tree | 8e3557ae427d68e671ca83c234beaa2394ec5b87 /binutils/objcopy.1 | |
parent | 6b045866c169c7549c85c86d6036b4abf3f6635b (diff) | |
download | gdb-d0130cc88824b1f04ca3f8da768eec6582f7573d.zip gdb-d0130cc88824b1f04ca3f8da768eec6582f7573d.tar.gz gdb-d0130cc88824b1f04ca3f8da768eec6582f7573d.tar.bz2 |
* objcopy.c (copy_usage): Rename parameter to avoid shadowing.
(strip_usage): Likewise.
* objcopy.c (struct section_add): Define.
(add_sections): New static variable.
(copy_options): Accept --add-section.
(copy_usage): Mention --add-section.
(copy_object): Add sections from the add_sections list.
(copy_main): Handle --add-section.
* binutils.texi, objcopy.1: Document --add-section.
Diffstat (limited to 'binutils/objcopy.1')
-rw-r--r-- | binutils/objcopy.1 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/objcopy.1 b/binutils/objcopy.1 index c5b04a9..7a69160 100644 --- a/binutils/objcopy.1 +++ b/binutils/objcopy.1 @@ -34,6 +34,7 @@ objcopy \- copy and translate object files .RB "[\|" \-\-adjust\-section\-vma=\fIsection{=,+,-}val\fR "\|]" .RB "[\|" \-\-adjust\-warnings\fR "\|]" .RB "[\|" \-\-no\-adjust\-warnings\fR "\|]" +.RB "[\|" \-\-add\-section=\fIsectionname=filename\fR "\|]" .RB "[\|" \-v\ |\ \-\-verbose\fR "\|]" .RB "[\|" \-V\ |\ \-\-version\fR "\|]" .RB "[\|" \-\-help\fR "\|]" @@ -187,6 +188,13 @@ not exist, issue a warning. This is the default. Do not issue a warning if \fB\-\-adjust\-section\-vma\fP is used, even if the named section does not exist. .TP +.B \fB\-\-add\-section=\fIsectionname=filename +Add a new section named \fIsectionname\fR while copying the file. The +contents of the new section are taken from the file \fIfilename\fR. +The size of the section will be the size of the file. This option +only works on file formats which can support sections with arbitrary +names. +.TP .B \-v\fR, \fB\-\-verbose Verbose output: list all object files modified. In the case of archives, "\fBobjcopy \-V\fR" lists all members of the archive. |