diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2013-02-13 17:09:08 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2013-02-13 17:09:08 +0000 |
commit | 33d7321d94668d444bde41387966af38d7f4012d (patch) | |
tree | 5df8ff799599e15d9be8b1f3fe98c2c1bd3f4690 /opcodes/mips-dis.c | |
parent | 89b83d1e001377c41f7ef6eeb61d29c56bd3110a (diff) | |
download | gdb-33d7321d94668d444bde41387966af38d7f4012d.tar.gz |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c index 0bd5fef00d8..9c9112b3f59 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)) |