forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user