1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-09 06:18:06 +00:00

Bugfix: allow no-exec (NX) stack

This commit is contained in:
Luke Dashjr 2012-02-21 18:58:19 -05:00
parent 083c676378
commit b16beb0df8
3 changed files with 21 additions and 0 deletions

View File

@ -250,3 +250,10 @@ LAB_RET:
pop edi pop edi
pop esi pop esi
retn 4 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

View File

@ -256,3 +256,10 @@ LAB_LOOP:
LAB_RET: LAB_RET:
pop rbx pop rbx
ret 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

View File

@ -320,3 +320,10 @@ sha256_sse2_64_new:
LAB_RET: LAB_RET:
pop rbx pop rbx
ret 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