aboutsummaryrefslogtreecommitdiff
path: root/binutils/binutils.texi
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-02-26 02:30:31 +0000
committerIan Lance Taylor <ian@airs.com>1997-02-26 02:30:31 +0000
commitab3a59cf4c54c8f92f2e30f855684193c7ecb3d7 (patch)
tree6d670377e0e9d6c73bc11dd97285357d7a8ff7da /binutils/binutils.texi
parent1f07f797e3ef2f2b239ae3c7420e8bbe9ce69e46 (diff)
downloadgdb-ab3a59cf4c54c8f92f2e30f855684193c7ecb3d7.zip
gdb-ab3a59cf4c54c8f92f2e30f855684193c7ecb3d7.tar.gz
gdb-ab3a59cf4c54c8f92f2e30f855684193c7ecb3d7.tar.bz2
* 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.
Diffstat (limited to 'binutils/binutils.texi')
-rw-r--r--binutils/binutils.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/binutils/binutils.texi b/binutils/binutils.texi
index e3e1db1..fac0bb0 100644
--- a/binutils/binutils.texi
+++ b/binutils/binutils.texi
@@ -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