diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index 9fc0fd836..9f6198255 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,7 @@ +2008-07-10 Richard Sandiford + + * mips.h (ELF_ST_IS_MIPS16, ELF_ST_SET_MIPS16): New macros. + 2008-06-18 M R Swami Reddy * common.h (EM_CR16): Correct value. diff --git a/include/elf/mips.h b/include/elf/mips.h index 55ecfb3c0..474f54ff4 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