Merge pull request #34 from nalimilan/noexecstack

Use --noexecstack for assembly code
This commit is contained in:
Viral B. Shah 2013-12-22 09:43:24 -08:00
commit 8d24a2416e
73 changed files with 298 additions and 0 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -69,3 +69,8 @@ x_not_minus_Inf:
END(exp) END(exp)
// //
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -33,3 +33,8 @@ ENTRY(fma, 3)
br.ret.sptk b0 br.ret.sptk b0
} }
END(fma) END(fma)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -33,3 +33,8 @@ ENTRY(fmaf, 3)
br.ret.sptk b0 br.ret.sptk b0
} }
END(fmaf) END(fmaf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -33,3 +33,8 @@ ENTRY(fmal, 3)
br.ret.sptk b0 br.ret.sptk b0
} }
END(fmal) END(fmal)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -31,3 +31,8 @@ ENTRY(sqrt)
retl retl
fsqrtd %f0, %f0 fsqrtd %f0, %f0
END(sqrt) END(sqrt)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -31,3 +31,8 @@ ENTRY(sqrtf)
retl retl
fsqrts %f1, %f0 fsqrts %f1, %f0
END(sqrtf) END(sqrtf)
/* Enable stack protection */
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif