summaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-05-28 10:03:19 +0000
committerNick Clifton <nickc@redhat.com>2001-05-28 10:03:19 +0000
commitd129c4cb7edb19ed6508f70a9bf42ec54788f63e (patch)
tree394f06e1e3a4ff0383b3ea61036059bbf2de1b9b /binutils
parent2e311baa33478bbb49b1e0f21d9d0e77582add76 (diff)
downloadbinutils-redhat-d129c4cb7edb19ed6508f70a9bf42ec54788f63e.tar.gz
Remove section VMA adjustment when computing the address of the line to show.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/objdump.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 5ce9f2c195..714d37f3a8 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
+
+ * objdump.c (disassemble_bytes): Remove section VMA adjustment
+ when computing the address of the line to show.
+
2001-05-16 Richard Henderson <rth@redhat.com>
* readelf.c (do_debug_frames_interp): New.
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 27002ab80f..96b6031588 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -1328,7 +1328,10 @@ disassemble_bytes (info, disassemble_fn, insns, data,
done_dot = false;
if (with_line_numbers || with_source_code)
- show_line (aux->abfd, section, addr_offset);
+ /* The line number tables will refer to unadjusted
+ section VMAs, so we must undo any VMA modifications
+ when calling show_line. */
+ show_line (aux->abfd, section, addr_offset - adjust_section_vma);
if (! prefix_addresses)
{