mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-09 01:56:35 -05:00
Linux: fix executable stack in resulting binary which was caused by crypto assembly files missing the GNU-stack note.
This commit is contained in:
5 files changed
+48
No files matched your search
@@ -331,3 +331,14 @@
|
|||||||
|
|
||||||
|
|
||||||
%endif ; __BITS__ != 16
|
%endif ; __BITS__ != 16
|
||||||
|
|
||||||
|
%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
|
||||||
|
%ifidn __OUTPUT_FORMAT__,elf64
|
||||||
|
section .note.GNU-stack noalloc noexec nowrite progbits
|
||||||
|
%endif
|
||||||
|
|
||||||
@@ -905,3 +905,14 @@ end_prologue
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%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
|
||||||
|
%ifidn __OUTPUT_FORMAT__,elf64
|
||||||
|
section .note.GNU-stack noalloc noexec nowrite progbits
|
||||||
|
%endif
|
||||||
|
|
||||||
@@ -644,3 +644,14 @@ stk_spc equ 20 ; stack space
|
|||||||
do_exit
|
do_exit
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%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
|
||||||
|
%ifidn __OUTPUT_FORMAT__,elf64
|
||||||
|
section .note.GNU-stack noalloc noexec nowrite progbits
|
||||||
|
%endif
|
||||||
|
|
||||||
@@ -312,3 +312,8 @@ movq %r8, %rdx;
|
|||||||
.endif
|
.endif
|
||||||
ret;
|
ret;
|
||||||
|
|
||||||
|
#if defined(__linux__) && defined(__ELF__)
|
||||||
|
.section .note.GNU-stack,"",%progbits
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
%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
|
||||||
|
%ifidn __OUTPUT_FORMAT__,elf64
|
||||||
|
section .note.GNU-stack noalloc noexec nowrite progbits
|
||||||
|
%endif
|
||||||
|
|
||||||
Reference in new issue
Block a user