From cd9c36518a0084e2d89b88e6ba26e821d35ee487 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 8 Sep 2026 19:47:53 +0200 Subject: [PATCH] Add .note.GNU-stack to the assembly sources --- src/cpu_rv64.S | 4 ++++ src/jit_compiler_a64_static.S | 4 ++++ src/jit_compiler_rv64_static.S | 4 ++++ src/jit_compiler_rv64_vector_static.S | 4 ++++ src/jit_compiler_x86_static.S | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/src/cpu_rv64.S b/src/cpu_rv64.S index fd0e0b6a..41647c90 100644 --- a/src/cpu_rv64.S +++ b/src/cpu_rv64.S @@ -45,3 +45,7 @@ rv64_test_vector_aes: vaesdm.vv v0, v0 li x10, 0 ret + +#if defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif diff --git a/src/jit_compiler_a64_static.S b/src/jit_compiler_a64_static.S index 2bf74cc6..2082643e 100644 --- a/src/jit_compiler_a64_static.S +++ b/src/jit_compiler_a64_static.S @@ -911,3 +911,7 @@ DECL(randomx_calc_dataset_item_aarch64_store_result): ret DECL(randomx_calc_dataset_item_aarch64_end): + +#if defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif diff --git a/src/jit_compiler_rv64_static.S b/src/jit_compiler_rv64_static.S index 68cdb272..89724c88 100644 --- a/src/jit_compiler_rv64_static.S +++ b/src/jit_compiler_rv64_static.S @@ -1243,3 +1243,7 @@ DECL(randomx_riscv64_ssh_prefetch): DECL(randomx_riscv64_ssh_end): nop + +#if defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif diff --git a/src/jit_compiler_rv64_vector_static.S b/src/jit_compiler_rv64_vector_static.S index 0fdc6746..01234658 100644 --- a/src/jit_compiler_rv64_vector_static.S +++ b/src/jit_compiler_rv64_vector_static.S @@ -1087,3 +1087,7 @@ DECL(randomx_riscv64_vector_program_main_loop_fe_mix_v2_soft_aes): DECL(randomx_riscv64_vector_program_end): DECL(randomx_riscv64_vector_code_end): + +#if defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif diff --git a/src/jit_compiler_x86_static.S b/src/jit_compiler_x86_static.S index 4467bd33..23401376 100644 --- a/src/jit_compiler_x86_static.S +++ b/src/jit_compiler_x86_static.S @@ -262,3 +262,7 @@ DECL(randomx_reciprocal_fast): mov rcx, rdi #endif #include "asm/randomx_reciprocal.inc" + +#if defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif