* objcopy.c (copy_usage): Rename parameter to avoid shadowing.
[deliverable/binutils-gdb.git] / binutils / binutils.texi
index 76d516db13785b365ea866b4c3a6696e260653cb..4d50e7274fd1abefc025985a2a425c7451ab4691 100644 (file)
@@ -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}.
This page took 0.023289 seconds and 4 git commands to generate.