* mips.h (ELF_ST_SET_MIPS_PIC): Clear any STO_MIPS16 setting.

This commit is contained in:
Maciej W. Rozycki 2013-06-06 22:09:07 +00:00
parent 8b7f83e68f
commit fc316f3a8e
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2013-06-06 Maciej W. Rozycki <macro@codesourcery.com>
* mips.h (ELF_ST_SET_MIPS_PIC): Clear any STO_MIPS16 setting.
2013-05-30 Paul Brook <paul@codesourcery.com>
* mips.h (R_MIPS_EH): New.

View File

@ -811,7 +811,10 @@ extern void bfd_mips_elf32_swap_reginfo_out
although MIPS16 symbols are never considered to be MIPS_PIC. */
#define STO_MIPS_PIC 0x20
#define ELF_ST_IS_MIPS_PIC(other) (((other) & STO_MIPS_FLAGS) == STO_MIPS_PIC)
#define ELF_ST_SET_MIPS_PIC(other) (((other) & ~STO_MIPS_FLAGS) | STO_MIPS_PIC)
#define ELF_ST_SET_MIPS_PIC(other) \
((ELF_ST_IS_MIPS16 (other) \
? ((other) & ~(STO_MIPS16 | STO_MIPS_FLAGS)) \
: ((other) & ~STO_MIPS_FLAGS)) | STO_MIPS_PIC)
/* This value is used for a mips16 .text symbol. */
#define STO_MIPS16 0xf0