diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2008-07-10 19:05:29 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2008-07-10 19:05:29 +0000 |
commit | 30c090907953c55bb80ec4af160054776d32303e (patch) | |
tree | b16f1fae33fd1f6a46e43a584a64e364853680ae /opcodes/mips-dis.c | |
parent | e0a3ce09eda6da9d3242ec79da937b156bf593fd (diff) | |
download | gdb-30c090907953c55bb80ec4af160054776d32303e.zip gdb-30c090907953c55bb80ec4af160054776d32303e.tar.gz gdb-30c090907953c55bb80ec4af160054776d32303e.tar.bz2 |
include/elf/
* mips.h (ELF_ST_IS_MIPS16, ELF_ST_SET_MIPS16): New macros.
bfd/
* elfxx-mips.c (mips_elf_check_mips16_stubs): Use ELF_ST_IS_MIPS16.
(mips_elf_calculate_relocation): Likewise.
(_bfd_mips_elf_add_symbol_hook): Likewise.
(_bfd_mips_elf_finish_dynamic_symbol): Likewise.
(_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
opcodes/
* mips-dis.c (_print_insn_mips): Use ELF_ST_IS_MIPS16.
gas/
* config/tc-mips.c (mips16_mark_labels): Use ELF_ST_SET_MIPS16.
(mips_fix_adjustable): Likewise.
(mips_frob_file_after_relocs): Likewise.
gas/testsuite/
* gas/mips/mips16-vis-1.d, gas/mips/mips16-vis-1.s: New tests.
* gas/mips/mips.exp: Run them.
Diffstat (limited to 'opcodes/mips-dis.c')
-rw-r--r-- | opcodes/mips-dis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c index 35a5119..744d5a9 100644 --- a/opcodes/mips-dis.c +++ b/opcodes/mips-dis.c @@ -2068,8 +2068,8 @@ _print_insn_mips (bfd_vma memaddr, if (info->mach == bfd_mach_mips16 || (info->symbols != NULL && bfd_asymbol_flavour (*info->symbols) == bfd_target_elf_flavour - && ((*(elf_symbol_type **) info->symbols)->internal_elf_sym.st_other - == STO_MIPS16))) + && ELF_ST_IS_MIPS16 ((*(elf_symbol_type **) info->symbols) + ->internal_elf_sym.st_other))) return print_insn_mips16 (memaddr, info); #endif |