1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-07 07:55:04 -05:00

Merge pull request #1148 from 00-matt/fix-execstack

Fix linker marking entire executable as having an executable stack
This commit is contained in:
xmrig
2019-08-30 13:47:45 +07:00
committed by GitHub
4 changed files with 16 additions and 0 deletions

View File

@@ -1593,3 +1593,7 @@ FN_PREFIX(CryptonightR_instruction_mov254):
FN_PREFIX(CryptonightR_instruction_mov255):
FN_PREFIX(CryptonightR_instruction_mov256):
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@@ -71,3 +71,7 @@ FN_PREFIX(cnv2_rwz_double_mainloop_asm):
add rsp, 48
ret 0
mov eax, 3735929054
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@@ -43,3 +43,7 @@ cnv2_rwz_double_mainloop_asm:
#include "cn2/cnv2_rwz_double_main_loop.inc"
ret 0
mov eax, 3735929054
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@@ -206,3 +206,7 @@ DECL(randomx_reciprocal_fast):
mov rcx, rdi
#endif
#include "asm/randomx_reciprocal.inc"
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif