diff options
author | Nick Clifton <nickc@redhat.com> | 1998-06-03 22:54:50 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1998-06-03 22:54:50 +0000 |
commit | 537b2e5e863af4192aa3e2350df5de67d92baf60 (patch) | |
tree | fca054f454b3f157b5712775d5afcd075a892f18 /binutils/objcopy.1 | |
parent | 77be9a8a19b8abc2b036c2c846e4700539c93a5a (diff) | |
download | gdb-537b2e5e863af4192aa3e2350df5de67d92baf60.zip gdb-537b2e5e863af4192aa3e2350df5de67d92baf60.tar.gz gdb-537b2e5e863af4192aa3e2350df5de67d92baf60.tar.bz2 |
Implemented new command line options: --change-section-vma and --change-section-lma.
Tidied up the code.
Diffstat (limited to 'binutils/objcopy.1')
-rw-r--r-- | binutils/objcopy.1 | 52 |
1 files changed, 35 insertions, 17 deletions
diff --git a/binutils/objcopy.1 b/binutils/objcopy.1 index 6c98df8..de723f3 100644 --- a/binutils/objcopy.1 +++ b/binutils/objcopy.1 @@ -35,11 +35,13 @@ objcopy \- copy and translate object files .RB "[\|" \-\-gap\-fill=\fIval\fR "\|]" .RB "[\|" \-\-pad\-to=\fIaddress\fR "\|]" .RB "[\|" \-\-set\-start=\fIval\fR "\|]" -.RB "[\|" \-\-adjust\-start=\fIincr\fR "\|]" -.RB "[\|" \-\-adjust\-vma=\fIincr\fR "\|]" -.RB "[\|" \-\-adjust\-section\-vma=\fIsection{=,+,-}val\fR "\|]" -.RB "[\|" \-\-adjust\-warnings\fR "\|]" -.RB "[\|" \-\-no\-adjust\-warnings\fR "\|]" +.RB "[\|" \-\-change\-start=\fIincr\fR "\|]" +.RB "[\|" \-\-change\-addresses=\fIincr\fR "\|]" +.RB "[\|" \-\-change\-section\-address=\fIsection{=,+,-}val\fR "\|]" +.RB "[\|" \-\-change\-section\-lma=\fIsection{=,+,-}val\fR "\|]" +.RB "[\|" \-\-change\-section\-vma=\fIsection{=,+,-}val\fR "\|]" +.RB "[\|" \-\-change\-warnings\fR "\|]" +.RB "[\|" \-\-no\-change\-warnings\fR "\|]" .RB "[\|" \-\-set\-section\-flags=\fIsection=flags\fR "\|]" .RB "[\|" \-\-add\-section=\fIsectionname=filename\fR "\|]" .RB "[\|" \-\-change\-leading\-char\fR "\|]" @@ -193,32 +195,48 @@ zero). Set the start address of the new file to \fIval\fP. Not all object file formats support setting the start address. .TP -.B \fB\-\-adjust\-start=\fIincr -Adjust the start address by adding \fIincr\fP. Not all object file +.B \fB\-\-change\-start=\fIincr\fR, \fB\-\-adjust\-start=\fIincr +Changes the start address by adding \fIincr\fP. Not all object file formats support setting the start address. .TP -.B \fB\-\-adjust\-vma=\fIincr -Adjust the address of all sections, as well as the start address, by +.B \fB\-\-change\-addresses=\fIincr\fR, \fB\-\-adjust\-vma=\fIincr +Changes the address of all sections, as well as the start address, by adding \fIincr\fP. Some object file formats do not permit section addresses to be changed arbitrarily. Note that this does not relocate the sections; if the program expects sections to be loaded at a certain address, and this option is used to change the sections such that they are loaded at a different address, the program may fail. .TP -.B \fB\-\-adjust\-section\-vma=\fIsection{=,+,-}val -Set or adjust the address of the named \fIsection\fP. If \fI=\fP is +.B \fB\-\-change\-section\-address=\fIsection{=,+,-}val\fR, \fB\-\-adjust\-section\-vma=\fIsection{=,+,-}val +Set or changes the VMA and LMA addresses of the named \fIsection\fP. +If \fI=\fP is used, the section address is set to \fIval\fP. +Otherwise, \fIval\fP is added to or subtracted from the section +address. See the comments under \fB\-\-change\-addresses\fP, above. If +\fIsection\fP does not exist in the input file, a warning will be +issued, unless \fB\-\-no\-change\-warnings\fP is used. +.TP +.B \fB\-\-change\-section\-lma=\fIsection{=,+,-}val +Set or change the LMA address of the named \fIsection\fP. If \fI=\fP is +used, the section address is set to \fIval\fP. Otherwise, \fIval\fP +is added to or subtracted from the section address. See the comments +under \fB\-\-change\-addresses\fP, above. If \fIsection\fP does not exist +in the input file, a warning will be issued, unless +\fB\-\-no\-change\-warnings\fP is used. +.TP +.B \fB\-\-change\-section\-vma=\fIsection{=,+,-}val +Set or change the VMA address of the named \fIsection\fP. If \fI=\fP is used, the section address is set to \fIval\fP. Otherwise, \fIval\fP is added to or subtracted from the section address. See the comments -under \fB\-\-adjust\-vma\fP, above. If \fIsection\fP does not exist +under \fB\-\-change\-addresses\fP, above. If \fIsection\fP does not exist in the input file, a warning will be issued, unless -\fB\-\-no\-adjust\-warnings\fP is used. +\fB\-\-no\-change\-warnings\fP is used. .TP -.B \fB\-\-adjust\-warnings -If \fB\-\-adjust\-section\-vma\fP is used, and the named section does +.B \fB\-\-change\-warnings\fR, \fB\-\-adjust\-warnings +If \fB\-\-change\-section\-XXX\fP is used, and the named section does not exist, issue a warning. This is the default. .TP -.B \fB\-\-no\-adjust\-warnings -Do not issue a warning if \fB\-\-adjust\-section\-vma\fP is used, even +.B \fB\-\-no\-change\-warnings\fR, \fB\-\-no\-adjust\-warnings +Do not issue a warning if \fB\-\-change\-section\-XXX\fP is used, even if the named section does not exist. .TP .B \fB\-\-set\-section\-flags=\fIsection=flags |