forked from weaselab/conflict-set
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:
@@ -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
|
||||
Reference in New Issue
Block a user