* objdump.c (disassemble_bytes): Subtract rel_offset from printed
reloc address. (disassemble_section): Set rel_offset to section->vma instead of pinfo->buffer_vma.
This commit is contained in:
parent
ad50f575f3
commit
68b3b8dc9e
2 changed files with 10 additions and 2 deletions
|
@ -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>
|
2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
|
||||||
|
|
||||||
* readelf.c (guess_is_rela): Changed m32r's default type to RELA.
|
* readelf.c (guess_is_rela): Changed m32r's default type to RELA.
|
||||||
|
|
|
@ -1515,7 +1515,8 @@ disassemble_bytes (struct disassemble_info * info,
|
||||||
else
|
else
|
||||||
printf ("\t\t\t");
|
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);
|
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
|
/* Dynamic reloc addresses are absolute, non-dynamic are section
|
||||||
relative. REL_OFFSET specifies the reloc address corresponding
|
relative. REL_OFFSET specifies the reloc address corresponding
|
||||||
to the start of this section. */
|
to the start of this section. */
|
||||||
rel_offset = pinfo->buffer_vma;
|
rel_offset = section->vma;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue