From 5417f71edbd69e9ff55516239c6609dd8a0debfa Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Wed, 13 Feb 2013 17:09:09 +0000 Subject: 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. --- opcodes/mips-dis.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'opcodes/mips-dis.c') 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)) -- cgit v1.1