aboutsummaryrefslogtreecommitdiff
path: root/binutils/binutils.texi
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-10-25 20:22:32 +0000
committerIan Lance Taylor <ian@airs.com>1994-10-25 20:22:32 +0000
commit33e0a06df82a6048ebbebed36e7f17f09f1742b4 (patch)
treef8b0829b8a419e38528c381644c5652540806cb9 /binutils/binutils.texi
parentd40d2d30a0eb6b6a3541132ebe2edde7eae971b5 (diff)
downloadgdb-33e0a06df82a6048ebbebed36e7f17f09f1742b4.zip
gdb-33e0a06df82a6048ebbebed36e7f17f09f1742b4.tar.gz
gdb-33e0a06df82a6048ebbebed36e7f17f09f1742b4.tar.bz2
* objcopy.c (gap_fill): Explicitly initialize, for clarity.
(pad_to_set, pad_to): New static variables. (copy_options): Accept --pad-to. (copy_usage): Mention --pad-to. (copy_object): Support --pad-to. (compare_section_vma): Sort non loadable sections to the front. Sort sections with the same VMA by size. (copy_main): Handle --pad-to. * binutils.texi, objcopy.1: Document --pad-to.
Diffstat (limited to 'binutils/binutils.texi')
-rw-r--r--binutils/binutils.texi10
1 files changed, 8 insertions, 2 deletions
diff --git a/binutils/binutils.texi b/binutils/binutils.texi
index 6776520..30ea18b 100644
--- a/binutils/binutils.texi
+++ b/binutils/binutils.texi
@@ -747,8 +747,9 @@ objcopy [ -F @var{bfdname} | --target=@var{bfdname} ]
[ -b @var{byte} | --byte=@var{byte} ]
[ -i @var{interleave} | --interleave=@var{interleave} ]
[ -R @var{sectionname} | --remove-section=@var{sectionname} ]
- [ --gap-fill=@var{val} ] [ --set-start=@var{val} ]
- [ --adjust-start=@var{incr} ] [ --adjust-vma=@var{incr} ]
+ [ --gap-fill=@var{val} ] [ --pad-to=@var{address} ]
+ [ --set-start=@var{val} ] [ --adjust-start=@var{incr} ]
+ [ --adjust-vma=@var{incr} ]
[ --adjust-section-vma=@var{section}@{=,+,-@}@var{val} ]
[ --adjust-warnings ] [ --no-adjust-warnings ]
[ -v | --verbose ] [ -V | --version ] [ --help ]
@@ -851,6 +852,11 @@ Fill gaps between sections with @var{val}. This is done by increasing
the size of the section with the lower address, and filling in the extra
space created with @var{val}.
+@item --pad-to @var{address}
+Pad the output file up to the virtual address @var{address}. This is
+done by increasing the size of the last section. The extra space is
+filled in with the value specified by @samp{--gap-fill} (default zero).
+
@item --set-start @var{val}
Set the address of the new file to @var{val}. Not all object file
formats support setting the start address.