* objdump.c (adjust_section_vma): New static variable.

(usage): Mention --adjust-section-vma.
	(OPTION_ADJUST_VMA): Define.
	(long_options): Add "addjust-vma".
	(display_bfd): If adjust_section_vma is not 0, add it to all the
	section addresses.
	(main): Handle OPTION_ADJUST_VMA.
	* binutils.texi, objdump.1: Document --adjust-vma.
This commit is contained in:
Ian Lance Taylor 1997-02-26 02:30:31 +00:00
parent 1f07f797e3
commit ab3a59cf4c
2 changed files with 22 additions and 0 deletions

View File

@ -1051,6 +1051,7 @@ objdump [ -a | --archive-headers ]
[ -w | --wide ] [ --start-address=@var{address} ]
[ --stop-address=@var{address} ]
[ --prefix-addresses] [ --show-raw-insn ]
[ --adjust-vma=@var{offset} ]
[ --version ] [ --help ]
@var{objfile}@dots{}
@end smallexample
@ -1077,6 +1078,15 @@ header information (in a format similar to @samp{ls -l}). Besides the
information you could list with @samp{ar tv}, @samp{objdump -a} shows
the object file format of each archive member.
@item --adjust-vma=@var{offset}
@cindex section addresses in objdump
@cindex VMA in objdump
When dumping information, first add @var{offset} to all the section
addresses. This is useful if the section addresses do not correspond to
the symbol table, which can happen when putting sections at particular
addresses when using a format which can not represent section addresses,
such as a.out.
@item -b @var{bfdname}
@itemx --target=@var{bfdname}
@cindex object code format

View File

@ -59,6 +59,9 @@ objdump \- display information from object files.
.RB "[\|" "\-\-stop\-address="\c
.I address\c
\&\|]
.RB "[\|" "\-\-adjust\-vma="\c
.I offset\c
\&\|]
.RB "[\|" \-\-version "\|]"
.RB "[\|" \-\-help "\|]"
.I objfile\c
@ -103,6 +106,15 @@ information you could list with `\|\c
\|' shows
the object file format of each archive member.
.TP
.BI "\-\-adjust\-vma=" "offset"
When dumping information, first add
.I offset
to all the section addresses. This is useful if the section addresses
do not correspond to the symbol table, which can happen when putting
sections at particular addresses when using a format which can not
represent section addresses, such as a.out.
.TP
.BI "\-b " "bfdname"\c
.TP