Enable stack protection for all ELFs, not only __linux__

This commit is contained in:
Graham Inggs 2015-11-07 11:28:48 +02:00
parent ebe1db3ce4
commit e3336dd022
67 changed files with 67 additions and 67 deletions

View File

@ -62,7 +62,7 @@
#define _START_ENTRY .p2align 4,0x90
#if defined(__linux__) || defined(__FreeBSD__) || defined(__ELF__)
#if defined(__ELF__)
#define _ENTRY(x) .text; _START_ENTRY; \
.globl CNAME(x); .type CNAME(x),@function; CNAME(x):
#define END(x) .size x, . - x

View File

@ -25,6 +25,6 @@ ENTRY(remainder)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -24,6 +24,6 @@ ENTRY(remainderf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -30,6 +30,6 @@ ENTRY(remainderl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -35,6 +35,6 @@ END(sqrt)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -34,6 +34,6 @@ END(sqrtf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -41,6 +41,6 @@ ENTRY(sqrtl)
ret
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -7,6 +7,6 @@ ENTRY(llrint)
END(llrint)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -7,6 +7,6 @@ ENTRY(llrintf)
END(llrintf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -40,6 +40,6 @@ ENTRY(llrintl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -24,6 +24,6 @@ ENTRY(logbl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -39,6 +39,6 @@ END(lrint)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -39,6 +39,6 @@ END(lrintf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -40,6 +40,6 @@ ENTRY(lrintl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -71,6 +71,6 @@ END(remquo)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -71,6 +71,6 @@ END(remquof)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -76,6 +76,6 @@ ENTRY(remquol)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -21,6 +21,6 @@ ENTRY(rintl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -50,6 +50,6 @@ END(scalbn)
.set CNAME(ldexp),CNAME(scalbn)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -50,6 +50,6 @@ END(scalbnf)
.set CNAME(ldexpf),CNAME(scalbnf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -35,6 +35,6 @@ END(scalbnl)
.set CNAME(ldexpl),CNAME(scalbnl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -72,7 +72,7 @@
/* XXX should use .p2align 4,0x90 for -m486. */
#define _START_ENTRY .p2align 2,0x90
#if defined(__linux__) || defined(__FreeBSD__) || defined(__ELF__)
#if defined(__ELF__)
#define CNAME(csym) csym
#define HIDENAME(asmsym) .asmsym
#define _ENTRY(x) .text; _START_ENTRY; \

View File

@ -71,6 +71,6 @@ END(exp)
//
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -20,6 +20,6 @@ END(fmod)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -16,6 +16,6 @@ END(log)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -16,6 +16,6 @@ END(log10)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -17,6 +17,6 @@ END(log10f)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -16,6 +16,6 @@ ENTRY(logf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -20,6 +20,6 @@ END(remainder)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -21,6 +21,6 @@ END(remainderf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -20,6 +20,6 @@ ENTRY(remainderl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -15,6 +15,6 @@ END(sqrt)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -16,6 +16,6 @@ END(sqrtf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -14,6 +14,6 @@ ENTRY(sqrtl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -29,6 +29,6 @@ END(ceil)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -31,6 +31,6 @@ END(ceilf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -29,6 +29,6 @@ END(ceill)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -20,6 +20,6 @@ END(copysign)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -21,6 +21,6 @@ END(copysignf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -19,6 +19,6 @@ END(copysignl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -28,6 +28,6 @@ END(cos)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -30,6 +30,6 @@ END(floor)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -31,6 +31,6 @@ END(floorf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -29,6 +29,6 @@ END(floorl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -38,6 +38,6 @@ END(llrint)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -38,6 +38,6 @@ END(llrintf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -37,6 +37,6 @@ ENTRY(llrintl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -16,6 +16,6 @@ END(logb)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -17,6 +17,6 @@ END(logbf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -15,6 +15,6 @@ ENTRY(logbl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -37,6 +37,6 @@ END(lrint)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -37,6 +37,6 @@ END(lrintf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -36,6 +36,6 @@ ENTRY(lrintl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -64,6 +64,6 @@ END(remquo)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -64,6 +64,6 @@ END(remquof)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -64,6 +64,6 @@ ENTRY(remquol)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -15,6 +15,6 @@ END(rint)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -16,6 +16,6 @@ END(rintf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -14,6 +14,6 @@ ENTRY(rintl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -18,6 +18,6 @@ END(scalbn)
.globl CNAME(ldexp)
.set CNAME(ldexp),CNAME(scalbn)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -21,6 +21,6 @@ END(scalbnf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -21,6 +21,6 @@ END(scalbnl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -28,6 +28,6 @@ END(sin)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -30,6 +30,6 @@ END(tan)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -28,6 +28,6 @@ END(trunc)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -28,6 +28,6 @@ END(truncf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -28,6 +28,6 @@ END(truncl)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif