From 3d8260d3d3243ff5747b846cde296642156f51b0 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 26 Jun 2017 16:53:12 +0200 Subject: MacOSX: various changes for assembly files build. Don't use 32-bit assembly code of SHA-512 since it is not compatible with PIE configuration of OSX compiler (absolute addressing used) --- src/Crypto/Twofish_x86.S | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/Crypto/Twofish_x86.S') diff --git a/src/Crypto/Twofish_x86.S b/src/Crypto/Twofish_x86.S index d4af8cea..46f0e986 100644 --- a/src/Crypto/Twofish_x86.S +++ b/src/Crypto/Twofish_x86.S @@ -1,11 +1,5 @@ - .ifndef WINABI -%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 + .ifndef __YASM__ +#if defined(__linux__) && defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif .endif \ No newline at end of file -- cgit v1.2.3