Support DJGPP COFF targets in bfd_get_sign_extend_vma()
[deliverable/binutils-gdb.git] / binutils / objdump.c
index 27002ab80ff748a91c230fe55428ec7bb697de1b..96b6031588ec23b28757b0a193691fc0b9a1b0ba 100644 (file)
@@ -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)
            {
This page took 0.022993 seconds and 4 git commands to generate.