Fix disassembly of arm-elf instructions with relocs associated with them.
This commit is contained in:
parent
34cc70e3ee
commit
6a56ec7ea3
@ -1,3 +1,8 @@
|
|||||||
|
2001-01-09 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* arm-dis.c (print_insn): Set pc to zero for instructions with
|
||||||
|
a reloc associated with them.
|
||||||
|
|
||||||
2001-01-09 Jeff Johnston <jjohnstn@redhat.com>
|
2001-01-09 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
* cgen-asm.in (parse_insn_normal): Changed syn to be
|
* cgen-asm.in (parse_insn_normal): Changed syn to be
|
||||||
|
@ -1043,6 +1043,14 @@ print_insn (pc, info, little)
|
|||||||
given = (b[0] << 24) | (b[1] << 16) | (b[2] << 8) | (b[3]);
|
given = (b[0] << 24) | (b[1] << 16) | (b[2] << 8) | (b[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (info->flags & INSN_HAS_RELOC)
|
||||||
|
/* If the instruction has a reloc associated with it, then
|
||||||
|
the offset field in the instruction will actually be the
|
||||||
|
addend for the reloc. (We are using REL type relocs).
|
||||||
|
In such cases, we can ignore the pc when computing
|
||||||
|
addresses, since the addend is not currently pc-relative. */
|
||||||
|
pc = 0;
|
||||||
|
|
||||||
if (is_thumb)
|
if (is_thumb)
|
||||||
status = print_insn_thumb (pc, info, given);
|
status = print_insn_thumb (pc, info, given);
|
||||||
else
|
else
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"POT-Creation-Date: 2000-12-16 13:55-0800\n"
|
"POT-Creation-Date: 2001-01-09 12:07-0800\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -63,7 +63,7 @@ msgstr ""
|
|||||||
msgid "Unrecognised disassembler option: %s\n"
|
msgid "Unrecognised disassembler option: %s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: arm-dis.c:1075
|
#: arm-dis.c:1083
|
||||||
msgid ""
|
msgid ""
|
||||||
"\n"
|
"\n"
|
||||||
"The following ARM specific disassembler options are supported for use with\n"
|
"The following ARM specific disassembler options are supported for use with\n"
|
||||||
@ -204,7 +204,7 @@ msgstr ""
|
|||||||
msgid "%02x\t\t*unknown*"
|
msgid "%02x\t\t*unknown*"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: i386-dis.c:1949
|
#: i386-dis.c:2624
|
||||||
msgid "<internal disassembler error>"
|
msgid "<internal disassembler error>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user