From 7ef159a0da29d9b42ec81b215cf8c28b4d73a8ca Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 23 Feb 2023 13:48:12 -0500 Subject: [PATCH] MT#55447 always annotate .S for non-exec stack Change-Id: If19f18c84f2450c9ae38472cfa59032c679437f9 --- lib/mvr2s_x64_avx2.S | 6 ++++-- lib/mvr2s_x64_avx512.S | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) 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);