diff --git a/lib/mvr2s_x64_avx2.S b/lib/mvr2s_x64_avx2.S index 1e5c7b9ba..0cfe8aebd 100644 --- a/lib/mvr2s_x64_avx2.S +++ b/lib/mvr2s_x64_avx2.S @@ -1,9 +1,11 @@ +#if defined(__linux__) && defined(__ELF__) +.section .note.GNU-stack,"",@progbits +#endif + #if defined(__x86_64__) .global mvr2s_avx2 -.section .note.GNU-stack,"",@progbits - .text # void mvr2s_avx2(float *in, const uint16_t len, int16_t *out); diff --git a/lib/mvr2s_x64_avx512.S b/lib/mvr2s_x64_avx512.S index fa9a54a60..04d0a5cf5 100644 --- a/lib/mvr2s_x64_avx512.S +++ b/lib/mvr2s_x64_avx512.S @@ -1,9 +1,11 @@ +#if defined(__linux__) && defined(__ELF__) +.section .note.GNU-stack,"",@progbits +#endif + #if defined(__x86_64__) .global mvr2s_avx512 -.section .note.GNU-stack,"",@progbits - .text # void mvr2s_avx512(float *in, const uint16_t len, int16_t *out);