Skip to content

Commit

Permalink
Improve: Mark non-executable stack
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Jan 25, 2025
1 parent ff4644d commit 65bac92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions less_slow_aarch64.S
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,7 @@ tops_u8_neon_asm_kernel:
mov w0, #320
ret

# ----------------------------------------------------------------------------
# Tell the linker/assembler that we do NOT need an executable stack:
.section .note.GNU-stack, "", @progbits
# ----------------------------------------------------------------------------
5 changes: 5 additions & 0 deletions less_slow_amd64.S
Original file line number Diff line number Diff line change
Expand Up @@ -346,3 +346,8 @@ tops_f32_avx2ma_asm_kernel:
vmulps %ymm12, %ymm13, %ymm14
movabsq $40, %rax
ret

# ----------------------------------------------------------------------------
# Tell the linker/assembler that we do NOT need an executable stack:
.section .note.GNU-stack, "", @progbits
# ----------------------------------------------------------------------------

0 comments on commit 65bac92

Please sign in to comment.