Merge pull request #1901 from hrimfaxi/fix-executable-stack

asm: add missing .note.GNU-stack markers
This commit is contained in:
Zhi Guan
2026-06-20 23:41:24 +08:00
committed by GitHub
4 changed files with 12 additions and 1 deletions

View File

@@ -99,4 +99,6 @@ func(gf128_mul):
ret ret
#ifdef __ELF__
.section .note.GNU-stack,"",@progbits
#endif

View File

@@ -2139,3 +2139,6 @@ func(sm2_z256_point_add_affine):
popq %rbp popq %rbp
.byte 0xf3,0xc3 .byte 0xf3,0xc3
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",@progbits
#endif

View File

@@ -2210,3 +2210,6 @@ func(sm2_z256_modn_mont_sqr):
ldp x29,x30,[sp],#64 ldp x29,x30,[sp],#64
ret ret
#ifdef __ELF__
.section .note.GNU-stack,"",@progbits
#endif

View File

@@ -895,3 +895,6 @@ func(sm9_z256_modp_mont_sqr):
ldp x29,x30,[sp],#64 ldp x29,x30,[sp],#64
ret ret
#ifdef __ELF__
.section .note.GNU-stack,"",@progbits
#endif