From 46dbbdbf46c65fa1a15875fd12e05061df17ccb3 Mon Sep 17 00:00:00 2001 From: selsta Date: Thu, 24 Sep 2026 00:00:58 +0200 Subject: [PATCH] Fix x86 JIT template reads on execute-only systems --- src/jit_compiler_x86_static.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jit_compiler_x86_static.S b/src/jit_compiler_x86_static.S index 23401376..6150af22 100644 --- a/src/jit_compiler_x86_static.S +++ b/src/jit_compiler_x86_static.S @@ -28,6 +28,9 @@ #if defined(__APPLE__) .text #define DECL(x) _##x +#elif defined(__ELF__) +.section .rodata +#define DECL(x) x #else .section .text #define DECL(x) x @@ -256,6 +259,7 @@ DECL(randomx_program_end): rx_program_end: nop +.text .balign 64 DECL(randomx_reciprocal_fast): #if !defined(WINABI)