From 5c16b8ee9091f95467f2bc9928b27d120aca038f Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Sun, 2 Aug 2026 22:31:56 -0400 Subject: [PATCH] Add .note.gnu.property section for CET/CFI to simd_x86_64.S The assembly file was missing the GNU property note that records control-flow integrity (CET) support, causing hardening-check to report 'Control flow integrity: no, not found!'. Add the note matching what clang emits with -fcf-protection. --- simd_x86_64.S | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/simd_x86_64.S b/simd_x86_64.S index 38ed58b..cd6c0f5 100644 --- a/simd_x86_64.S +++ b/simd_x86_64.S @@ -71,4 +71,15 @@ mask_in_range_16: ret .size mask_in_range_16, .-mask_in_range_16 + .section .note.gnu.property,"a",@note + .p2align 3, 0x0 + .long 4 + .long 16 + .long 5 + .asciz "GNU" + .long 0xc0000002 + .long 4 + .long 0x3 + .p2align 3, 0x0 + .section .note.GNU-stack,"",@progbits \ No newline at end of file