[PATCH] asm-common-aarch64: fix read-only section for Windows target

Jussi Kivilinna jussi.kivilinna at iki.fi
Sat Jan 21 13:27:43 CET 2023


* cipher/asm-common-aarch64.h (SECTION_RODATA): Use .rdata for
_WIN32.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
 cipher/asm-common-aarch64.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/cipher/asm-common-aarch64.h b/cipher/asm-common-aarch64.h
index 8e8bf8e7..3a72d7c4 100644
--- a/cipher/asm-common-aarch64.h
+++ b/cipher/asm-common-aarch64.h
@@ -29,7 +29,11 @@
 # define ELF(...) /*_*/
 #endif
 
-#define SECTION_RODATA .section .rodata
+#ifdef _WIN32
+# define SECTION_RODATA .section .rdata
+#else
+# define SECTION_RODATA .section .rodata
+#endif
 
 #ifdef __APPLE__
 #define GET_DATA_POINTER(reg, name) \
-- 
2.37.2




More information about the Gcrypt-devel mailing list