* 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.
This commit is contained in:
Maciej W. Rozycki
2013-02-13 17:09:09 +00:00
parent a8256ea1e4
commit 5417f71edb
8 changed files with 168 additions and 0 deletions

View File

@@ -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))