From 095152b02d74fcb6d309c7ead2eb55a1cd8cbea3 Mon Sep 17 00:00:00 2001 From: giaf Date: Mon, 18 Nov 2024 22:26:48 +0100 Subject: [PATCH] fix executable stack warning in kernel_align_x{64,86} --- kernel/sse3/kernel_align_x64.S | 9 +++++++++ kernel/sse3_x86/kernel_align_x86.S | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/kernel/sse3/kernel_align_x64.S b/kernel/sse3/kernel_align_x64.S index 73776a80..bf107bb8 100644 --- a/kernel/sse3/kernel_align_x64.S +++ b/kernel/sse3/kernel_align_x64.S @@ -269,3 +269,12 @@ blasfeo_align_64_byte: #endif + + + +#if defined(OS_LINUX) + .section .note.GNU-stack,"",@progbits +#elif defined(OS_MAC) + .subsections_via_symbols +#endif + diff --git a/kernel/sse3_x86/kernel_align_x86.S b/kernel/sse3_x86/kernel_align_x86.S index e9ebc6ea..a1880d1e 100644 --- a/kernel/sse3_x86/kernel_align_x86.S +++ b/kernel/sse3_x86/kernel_align_x86.S @@ -170,3 +170,11 @@ blasfeo_align_64_byte: + + +#if defined(OS_LINUX) + .section .note.GNU-stack,"",@progbits +#elif defined(OS_MAC) + .subsections_via_symbols +#endif +