aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/elf/ChangeLog4
-rw-r--r--include/elf/mips.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog
index 9fc0fd8..9f61982 100644
--- a/include/elf/ChangeLog
+++ b/include/elf/ChangeLog
@@ -1,3 +1,7 @@
+2008-07-10 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * mips.h (ELF_ST_IS_MIPS16, ELF_ST_SET_MIPS16): New macros.
+
2008-06-18 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
* common.h (EM_CR16): Correct value.
diff --git a/include/elf/mips.h b/include/elf/mips.h
index 55ecfb3..474f54f 100644
--- a/include/elf/mips.h
+++ b/include/elf/mips.h
@@ -725,6 +725,8 @@ extern void bfd_mips_elf32_swap_reginfo_out
/* This value is used for a mips16 .text symbol. */
#define STO_MIPS16 0xf0
+#define ELF_ST_IS_MIPS16(OTHER) (((OTHER) & 0xf0) == STO_MIPS16)
+#define ELF_ST_SET_MIPS16(OTHER) (((OTHER) & ~0xf0) | STO_MIPS16)
/* This bit is used on Irix to indicate a symbol whose definition
is optional - if, at final link time, it cannot be found, no