From 68928c49849170e06f3c1f6c01ef0a12cd2385c2 Mon Sep 17 00:00:00 2001 From: cathugger Date: Sat, 14 Jan 2023 14:37:41 +0000 Subject: [PATCH] fix assembler compilation on MacOS --- ed25519/amd64-51-30k/consts.S | 4 ++++ ed25519/amd64-64-24k/consts.S | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ed25519/amd64-51-30k/consts.S b/ed25519/amd64-51-30k/consts.S index b2ca1ab..5713447 100644 --- a/ed25519/amd64-51-30k/consts.S +++ b/ed25519/amd64-51-30k/consts.S @@ -1,4 +1,8 @@ +#ifndef __APPLE__ .section .rodata +#else +.const +#endif .globl CRYPTO_NAMESPACE(batch_REDMASK51) .globl CRYPTO_NAMESPACE(batch_121666_213) diff --git a/ed25519/amd64-64-24k/consts.S b/ed25519/amd64-64-24k/consts.S index ca9896f..db6bad5 100644 --- a/ed25519/amd64-64-24k/consts.S +++ b/ed25519/amd64-64-24k/consts.S @@ -1,4 +1,8 @@ +#ifndef __APPLE__ .section .rodata +#else +.const +#endif .globl CRYPTO_NAMESPACE(121666) .globl CRYPTO_NAMESPACE(MU0)