mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 11:28:26 -06:00
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)
This commit is contained in:
@@ -833,7 +833,7 @@ _camellia_setup256:
|
||||
|
||||
ret;
|
||||
|
||||
.ifndef WINABI
|
||||
.ifndef __YASM__
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
.ifndef WINABI
|
||||
.ifndef __YASM__
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
||||
@@ -331,7 +331,7 @@ popq %rsi
|
||||
|
||||
ret;
|
||||
|
||||
.ifndef WINABI
|
||||
.ifndef __YASM__
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
.ifndef WINABI
|
||||
.ifndef __YASM__
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
||||
@@ -26,7 +26,7 @@ extern "C"
|
||||
void sha512_avx(const void* M, void* D, uint_64t l);
|
||||
#endif
|
||||
|
||||
#if CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64
|
||||
#if CRYPTOPP_BOOL_X64 || ((CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32) && !defined (TC_MACOSX))
|
||||
void sha512_compress_nayuki(uint_64t state[8], const uint_8t block[128]);
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
@@ -173,7 +173,7 @@ void SSE4Transform(sha512_ctx* ctx, void* mp, uint_64t num_blks)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64
|
||||
#if CRYPTOPP_BOOL_X64 || ((CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32) && !defined (TC_MACOSX))
|
||||
|
||||
void SSE2Transform(sha512_ctx* ctx, void* mp, uint_64t num_blks)
|
||||
{
|
||||
@@ -216,7 +216,7 @@ void sha512_begin(sha512_ctx* ctx)
|
||||
else
|
||||
#endif
|
||||
|
||||
#if CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64
|
||||
#if CRYPTOPP_BOOL_X64 || ((CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32) && !defined (TC_MACOSX))
|
||||
if (HasSSE2() && HasMMX())
|
||||
transfunc = SSE2Transform;
|
||||
else
|
||||
|
||||
@@ -312,7 +312,7 @@ movq %r8, %rdx;
|
||||
.endif
|
||||
ret;
|
||||
|
||||
.ifndef WINABI
|
||||
.ifndef __YASM__
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
||||
@@ -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
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
.ifndef WINABI
|
||||
.ifndef __YASM__
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
.endif
|
||||
@@ -161,8 +161,8 @@
|
||||
retl
|
||||
.endif
|
||||
|
||||
.ifndef WINABI
|
||||
.ifndef __YASM__
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
.endif
|
||||
@@ -195,8 +195,8 @@ _sha512_compress_nayuki:
|
||||
|
||||
retq
|
||||
|
||||
.ifndef WINABI
|
||||
.ifndef __YASM__
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
.endif
|
||||
|
||||
@@ -173,7 +173,7 @@
|
||||
.quad 0x28DB77F523047D84, 0x32CAAB7B40C72493, 0x3C9EBE0A15C9BEBC, 0x431D67C49C100D4C
|
||||
.quad 0x4CC5D4BECB3E42B6, 0x597F299CFC657E2A, 0x5FCB6FAB3AD6FAEC, 0x6C44198C4A475817
|
||||
|
||||
.ifndef WINABI
|
||||
.ifndef __YASM__
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user