Remove section VMA adjustment when computing the address of the line to show.

This commit is contained in:
Nick Clifton 2001-05-28 10:03:19 +00:00
parent 0f2712edc9
commit 76a406e5b0
2 changed files with 9 additions and 1 deletions

View file

@ -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> 2001-05-16 Richard Henderson <rth@redhat.com>
* readelf.c (do_debug_frames_interp): New. * readelf.c (do_debug_frames_interp): New.

View file

@ -1328,7 +1328,10 @@ disassemble_bytes (info, disassemble_fn, insns, data,
done_dot = false; done_dot = false;
if (with_line_numbers || with_source_code) 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) if (! prefix_addresses)
{ {