aboutsummaryrefslogtreecommitdiff
path: root/binutils/binutils.texi
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-02-09 21:18:01 +0000
committerIan Lance Taylor <ian@airs.com>1995-02-09 21:18:01 +0000
commitd0130cc88824b1f04ca3f8da768eec6582f7573d (patch)
tree8e3557ae427d68e671ca83c234beaa2394ec5b87 /binutils/binutils.texi
parent6b045866c169c7549c85c86d6036b4abf3f6635b (diff)
downloadgdb-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/binutils.texi')
-rw-r--r--binutils/binutils.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/binutils.texi b/binutils/binutils.texi
index 76d516d..4d50e72 100644
--- a/binutils/binutils.texi
+++ b/binutils/binutils.texi
@@ -753,6 +753,7 @@ objcopy [ -F @var{bfdname} | --target=@var{bfdname} ]
[ --adjust-vma=@var{incr} ]
[ --adjust-section-vma=@var{section}@{=,+,-@}@var{val} ]
[ --adjust-warnings ] [ --no-adjust-warnings ]
+ [ --add-section=@var{sectionname}=@var{filename} ]
[ -v | --verbose ] [ -V | --version ] [ --help ]
@var{infile} [@var{outfile}]
@end smallexample
@@ -896,6 +897,12 @@ exist, issue a warning. This is the default.
Do not issue a warning if @samp{--adjust-section-vma} is used, even if
the named section does not exist.
+@item --add-section @var{sectionname}=@var{filename}
+Add a new section named @var{sectionname} while copying the file. The
+contents of the new section are taken from the file @var{filename}. 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.
+
@item -V
@itemx --version
Show the version number of @code{objcopy}.