aboutsummaryrefslogtreecommitdiff
path: root/opcodes/mips-dis.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2013-02-13 17:09:09 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2013-02-13 17:09:09 +0000
commit5417f71edbd69e9ff55516239c6609dd8a0debfa (patch)
treed2e950c2143f5a905fb725e86eb24cd948610136 /opcodes/mips-dis.c
parenta8256ea1e4762413307952e6bcb60cb2fb97da2a (diff)
downloadgdb-5417f71edbd69e9ff55516239c6609dd8a0debfa.zip
gdb-5417f71edbd69e9ff55516239c6609dd8a0debfa.tar.gz
gdb-5417f71edbd69e9ff55516239c6609dd8a0debfa.tar.bz2
opcodes/
* mips-dis.c (is_compressed_mode_p): Only match symbols from the section disassembled. binutils/testsuite/ * binutils-all/mips/mixed-micromips.d: New test. * binutils-all/mips/mixed-mips16.d: New test. * binutils-all/mips/mixed-micromips.s: New test source. * binutils-all/mips/mixed-mips16.s: New test source. * binutils-all/mips/mips.exp: New file.
Diffstat (limited to 'opcodes/mips-dis.c')
-rw-r--r--opcodes/mips-dis.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c
index 0bd5fef..9c9112b 100644
--- a/opcodes/mips-dis.c
+++ b/opcodes/mips-dis.c
@@ -2940,6 +2940,9 @@ is_compressed_mode_p (struct disassemble_info *info)
if (bfd_asymbol_flavour (info->symtab[pos]) != bfd_target_elf_flavour)
continue;
+ if (info->symtab[pos]->section != info->section)
+ continue;
+
symbol = (elf_symbol_type *) info->symtab[pos];
if ((!micromips_ase
&& ELF_ST_IS_MIPS16 (symbol->internal_elf_sym.st_other))