* objdump.c (disassemble_bytes): Subtract rel_offset from printed
authorJakub Jelinek <jakub@redhat.com>
Mon, 22 Dec 2003 10:49:59 +0000 (10:49 +0000)
committerJakub Jelinek <jakub@redhat.com>
Mon, 22 Dec 2003 10:49:59 +0000 (10:49 +0000)
reloc address.
(disassemble_section): Set rel_offset to section->vma instead of
pinfo->buffer_vma.

binutils/ChangeLog
binutils/objdump.c

index 84ab4766082597b3399af05eb2b7a5e86b71211c..8e6fe752ec3fc3d4857bb2b8ea5b160778230408 100644 (file)
@@ -1,3 +1,10 @@
+2003-12-22  Jakub Jelinek  <jakub@redhat.com>
+
+       * objdump.c (disassemble_bytes): Subtract rel_offset from printed
+       reloc address.
+       (disassemble_section): Set rel_offset to section->vma instead of
+       pinfo->buffer_vma.
+
 2003-12-19  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
 
        * readelf.c (guess_is_rela): Changed m32r's default type to RELA.
index f29ea714f578c1ae2a9c9b1d1749c0af2436f89d..f67aacb8881b89390cdf0c5d105eff814343338c 100644 (file)
@@ -1515,7 +1515,8 @@ disassemble_bytes (struct disassemble_info * info,
              else
                printf ("\t\t\t");
 
-             objdump_print_value (section->vma + q->address, info, TRUE);
+             objdump_print_value (section->vma - rel_offset + q->address,
+                                  info, TRUE);
 
              printf (": %s\t", q->howto->name);
 
@@ -1600,7 +1601,7 @@ disassemble_section (bfd *abfd, asection *section, void *info)
       /* Dynamic reloc addresses are absolute, non-dynamic are section
         relative.  REL_OFFSET specifies the reloc address corresponding
         to the start of this section.  */
-      rel_offset = pinfo->buffer_vma;
+      rel_offset = section->vma;
     }
   else
     {
This page took 0.031921 seconds and 4 git commands to generate.