From: Nick Clifton Date: Mon, 28 May 2001 10:03:19 +0000 (+0000) Subject: Remove section VMA adjustment when computing the address of the line to show. X-Git-Tag: dberlin-typesystem-branchpoint~420 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76a406e5b04a4faff4569dea49cd6b565a5dfa2f;p=external%2Fbinutils.git Remove section VMA adjustment when computing the address of the line to show. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 5ce9f2c..714d37f 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2001-05-28 Nick Clifton + + * objdump.c (disassemble_bytes): Remove section VMA adjustment + when computing the address of the line to show. + 2001-05-16 Richard Henderson * readelf.c (do_debug_frames_interp): New. 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) {