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.
This commit is contained in:
2026-08-02 22:31:56 -04:00
parent b19981ee3c
commit 5c16b8ee90
+11
View File
@@ -71,4 +71,15 @@ mask_in_range_16:
ret ret
.size mask_in_range_16, .-mask_in_range_16 .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 .section .note.GNU-stack,"",@progbits