Skip to content

Commit

Permalink
yasm: No executable stack
Browse files Browse the repository at this point in the history
Closes #5588
  • Loading branch information
magnumripper committed Nov 28, 2024
1 parent 7df682c commit 2fce717
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/aes/aesni/asm/x64/do_rdtsc.s
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
[bits 64]
[CPU intelnop]

%ifidn __OUTPUT_FORMAT__,elf
section .note.GNU-stack noalloc noexec nowrite progbits
%endif
%ifidn __OUTPUT_FORMAT__,elf64
section .note.GNU-stack noalloc noexec nowrite progbits
%endif

; Copyright (c) 2010, Intel Corporation
; All rights reserved.
;
Expand Down
7 changes: 7 additions & 0 deletions src/aes/aesni/asm/x64/iaesx64.s
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
[bits 64]
[CPU intelnop]

%ifidn __OUTPUT_FORMAT__,elf
section .note.GNU-stack noalloc noexec nowrite progbits
%endif
%ifidn __OUTPUT_FORMAT__,elf64
section .note.GNU-stack noalloc noexec nowrite progbits
%endif

; Copyright (c) 2010, Intel Corporation
; All rights reserved.
;
Expand Down
7 changes: 7 additions & 0 deletions src/aes/aesni/asm/x86/do_rdtsc.s
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
[bits 32]
[CPU intelnop]

%ifidn __OUTPUT_FORMAT__,elf
section .note.GNU-stack noalloc noexec nowrite progbits
%endif
%ifidn __OUTPUT_FORMAT__,elf32
section .note.GNU-stack noalloc noexec nowrite progbits
%endif

; Copyright (c) 2010, Intel Corporation
; All rights reserved.
;
Expand Down
7 changes: 7 additions & 0 deletions src/aes/aesni/asm/x86/iaesx86.s
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
[bits 32]
[CPU intelnop]

%ifidn __OUTPUT_FORMAT__,elf
section .note.GNU-stack noalloc noexec nowrite progbits
%endif
%ifidn __OUTPUT_FORMAT__,elf32
section .note.GNU-stack noalloc noexec nowrite progbits
%endif

; Copyright (c) 2010, Intel Corporation
; All rights reserved.
;
Expand Down

0 comments on commit 2fce717

Please sign in to comment.