]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* objdump.c (adjust_section_vma): New static variable.
authorIan Lance Taylor <ian@airs.com>
Wed, 26 Feb 1997 02:30:31 +0000 (02:30 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 26 Feb 1997 02:30:31 +0000 (02:30 +0000)
(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.

binutils/binutils.texi
binutils/objdump.1

index e3e1db19b924838ea84bb6160681623f5a88ec1e..fac0bb0168cbc7de0ab4eb85ea63e75365b3aa4e 100644 (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
index b74d8256b8f7dfc9b57a5d2ec9e9f1203d9b1c0d..53e0501ece26c153189ac14a231cd5b6a06465c8 100644 (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