diff options
author | Richard Sandiford <rsandifo@nildram.co.uk> | 2008-07-10 19:05:28 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@nildram.co.uk> | 2008-07-10 19:05:28 +0000 |
commit | f3baa769683af871e46ae000b6672ed488ac5079 (patch) | |
tree | da0050e9f662215d8d08b2e8eaba800c86dd422e /opcodes | |
parent | 80b4b296d6450364e97580ddccdc21ef84bb4331 (diff) | |
download | gdb-f3baa769683af871e46ae000b6672ed488ac5079.tar.gz |
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/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/mips-dis.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 762c7247ac9..4110c10dfa0 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 35a51191525..744d5a92bcb 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 |