aboutsummaryrefslogtreecommitdiff
path: root/binutils/binutils.texi
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-10-20 17:58:23 +0000
committerIan Lance Taylor <ian@airs.com>1994-10-20 17:58:23 +0000
commit596d99ba32f9047945ca227fd5af30d839e6c2d5 (patch)
tree4f4e944961f9f2d44a04e4bf80fb1c8591a375ae /binutils/binutils.texi
parent3066e752a5bfc712615c4f9f60f76ff7d1fec6ad (diff)
downloadgdb-596d99ba32f9047945ca227fd5af30d839e6c2d5.zip
gdb-596d99ba32f9047945ca227fd5af30d839e6c2d5.tar.gz
gdb-596d99ba32f9047945ca227fd5af30d839e6c2d5.tar.bz2
* objcopy.c (gap_fill_set, gap_fill): New static variables.
(copy_options): Accept --gap-fill. (copy_usage): Mention --gap-fill. (copy_object): Support --gap-fill. (get_sections, compare_section_vma): New static functions. (copy_main): Handle --gap-fill. * binutils.texi, objcopy.1: Document --gap-fill.
Diffstat (limited to 'binutils/binutils.texi')
-rw-r--r--binutils/binutils.texi9
1 files changed, 7 insertions, 2 deletions
diff --git a/binutils/binutils.texi b/binutils/binutils.texi
index 3c078f8..6776520 100644
--- a/binutils/binutils.texi
+++ b/binutils/binutils.texi
@@ -747,8 +747,8 @@ 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} ]
- [ --set-start=@var{val} ] [ --adjust-start=@var{incr} ]
- [ --adjust-vma=@var{incr} ]
+ [ --gap-fill=@var{val} ] [ --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 ]
@@ -846,6 +846,11 @@ copy with the @var{-b} or @samp{--byte} option. The default is 4.
@code{objcopy} ignores this option if you do not specify either @samp{-b} or
@samp{--byte}.
+@item --gap-fill @var{val}
+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 --set-start @var{val}
Set the address of the new file to @var{val}. Not all object file
formats support setting the start address.