aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2008-07-10 19:05:29 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2008-07-10 19:05:29 +0000
commit30c090907953c55bb80ec4af160054776d32303e (patch)
treeb16f1fae33fd1f6a46e43a584a64e364853680ae /opcodes
parente0a3ce09eda6da9d3242ec79da937b156bf593fd (diff)
downloadgdb-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')
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/mips-dis.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 762c724..4110c10 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2008-07-10 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * mips-dis.c (_print_insn_mips): Use ELF_ST_IS_MIPS16.
+
2008-07-07 Adam Nemet <anemet@caviumnetworks.com>
* mips-opc.c (CP): New macro.
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