Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Bugfix: allow no-exec (NX) stack
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Feb 21, 2012
1 parent 083c676 commit b16beb0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions x86_32/sha256_xmm.asm
Expand Up @@ -250,3 +250,10 @@ LAB_RET:
pop edi
pop esi
retn 4

%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
7 changes: 7 additions & 0 deletions x86_64/sha256_sse4_amd64.asm
Expand Up @@ -256,3 +256,10 @@ LAB_LOOP:
LAB_RET:
pop rbx
ret

%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
7 changes: 7 additions & 0 deletions x86_64/sha256_xmm_amd64.asm
Expand Up @@ -320,3 +320,10 @@ sha256_sse2_64_new:
LAB_RET:
pop rbx
ret

%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

0 comments on commit b16beb0

Please sign in to comment.