]> sourceware.org Git - newlib-cygwin.git/commitdiff
* mips.h (ELF_ST_SET_MIPS_PIC): Clear any STO_MIPS16 setting.
authorMaciej W. Rozycki <macro@codesourcery.com>
Thu, 6 Jun 2013 22:09:07 +0000 (22:09 +0000)
committerMaciej W. Rozycki <macro@codesourcery.com>
Thu, 6 Jun 2013 22:09:07 +0000 (22:09 +0000)
include/elf/ChangeLog
include/elf/mips.h

index 9be3cff6c91cda04319362524c1a65c41686bc32..dcbe68633a27471c9096b61c95975eaf7abeea13 100644 (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.
index b5f7e1a898c99cb80eec01edc84c24597cc0d4f2..44d815e82722bd3ca92babae28351579cd7afd5a 100644 (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
This page took 0.032769 seconds and 5 git commands to generate.