diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2017-12-13 13:08:50 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-12-13 13:09:59 +0000 |
commit | 024d185c10a48339ae06634d0738dd796a159cd8 (patch) | |
tree | 0861482eadc0fa2a1109d6ca80a23cfab23cf106 /opcodes/disassemble.c | |
parent | 10e7c0457cb7531f8b205e29e88b3e191cfa6037 (diff) | |
download | fsf-binutils-gdb-024d185c10a48339ae06634d0738dd796a159cd8.zip fsf-binutils-gdb-024d185c10a48339ae06634d0738dd796a159cd8.tar.gz fsf-binutils-gdb-024d185c10a48339ae06634d0738dd796a159cd8.tar.bz2 |
This patch enables disassembler_needs_relocs for PRU. It is needed to print correct symbols when disassembling arguments of "call" instructions with a relocation.
opcodes * disassemble.c: Enable disassembler_needs_relocs for PRU.
gas * testsuite/gas/pru/extern.s: New test for print of U16_PMEMM
relocation.
* testsuite/gas/pru/extern.d: New test driver.
Diffstat (limited to 'opcodes/disassemble.c')
-rw-r--r-- | opcodes/disassemble.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c index 11206c6..fa9a765 100644 --- a/opcodes/disassemble.c +++ b/opcodes/disassemble.c @@ -654,6 +654,11 @@ disassemble_init_for_target (struct disassemble_info * info) #ifdef ARCH_powerpc case bfd_arch_powerpc: #endif +#ifdef ARCH_pru + case bfd_arch_pru: + info->disassembler_needs_relocs = TRUE; + break; +#endif #ifdef ARCH_rs6000 case bfd_arch_rs6000: #endif |