diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-10-20 17:58:23 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-10-20 17:58:23 +0000 |
commit | 596d99ba32f9047945ca227fd5af30d839e6c2d5 (patch) | |
tree | 4f4e944961f9f2d44a04e4bf80fb1c8591a375ae /binutils/objcopy.1 | |
parent | 3066e752a5bfc712615c4f9f60f76ff7d1fec6ad (diff) | |
download | gdb-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/objcopy.1')
-rw-r--r-- | binutils/objcopy.1 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/binutils/objcopy.1 b/binutils/objcopy.1 index e2876d1..652a9d8 100644 --- a/binutils/objcopy.1 +++ b/binutils/objcopy.1 @@ -25,6 +25,7 @@ objcopy \- copy and translate object files .RB "[\|" \-X\ |\ \-\-discard\-locals\fR "\|]" .RB "[\|" \-b\ \fIbyte\fP |\ \-\-byte=\fIbyte\fP "\|]" .RB "[\|" \-i\ \fIinterleave\fP |\ \-\-interleave=\fIinterleave\fP "\|]" +.RB "[\|" \-\-gap\-fill=\fIval\fP "\|]" .RB "[\|" \-\-set\-start=\fIval\fP "\|]" .RB "[\|" \-\-adjust\-start=\fIincr\fP "\|]" .RB "[\|" \-\-adjust\-vma=\fIincr\fP "\|]" @@ -136,6 +137,11 @@ Only copy one out of every \fIinterleave\fP bytes. Which one to copy is selected by the \fB\-b\fP or \fB\-\-byte\fP option. The default is 4. The interleave is ignored if neither \fB\-b\fP nor \fB\-\-byte\fP is given. .TP +.B \-\-gap\-fill=\fIval +Fill gaps between sections with \fIval\fP. This is done by increasing +the size of the section with the lower address, and filling in the extra +space created with \fIval\fP. +.TP .B \fB\-\-set\-start=\fIval Set the start address of the new file to \fIval\fP. Not all object file formats support setting the start address. |