aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.c
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
commit76a406e5b04a4faff4569dea49cd6b565a5dfa2f (patch)
treed2ce5e0c9848572e30a12961fd296c64468f3647 /binutils/objdump.c
parent0f2712edc99c8717cd41a05b6fede5ba9ff8b35d (diff)
downloadgdb-76a406e5b04a4faff4569dea49cd6b565a5dfa2f.zip
gdb-76a406e5b04a4faff4569dea49cd6b565a5dfa2f.tar.gz
gdb-76a406e5b04a4faff4569dea49cd6b565a5dfa2f.tar.bz2
Remove section VMA adjustment when computing the address of the line to show.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r--binutils/objdump.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 27002ab..96b6031 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)
{