diff --git a/amd64/e_fmod.S b/amd64/e_fmod.S index 37cae391..d2c8ecd9 100644 --- a/amd64/e_fmod.S +++ b/amd64/e_fmod.S @@ -49,3 +49,8 @@ ENTRY(fmod) fstp %st ret END(fmod) + +/* Enable stack protection */ +#if defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif diff --git a/amd64/e_fmodf.S b/amd64/e_fmodf.S index 197892e8..b045e735 100644 --- a/amd64/e_fmodf.S +++ b/amd64/e_fmodf.S @@ -19,3 +19,8 @@ ENTRY(fmodf) fstp %st ret END(fmodf) + +/* Enable stack protection */ +#if defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif diff --git a/amd64/e_fmodl.S b/amd64/e_fmodl.S index 64be92f1..cab539d5 100644 --- a/amd64/e_fmodl.S +++ b/amd64/e_fmodl.S @@ -45,3 +45,8 @@ ENTRY(fmodl) fstp %st(1) ret END(fmodl) + +/* Enable stack protection */ +#if defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif