Skip to content

Fix RISC-V JIT template reads on execute-only systems - #368

Merged
SChernykh merged 1 commit into
tevador:masterfrom
thomasbuilds:fix-riscv-xonly
Oct 31, 2026
Merged

SChernykh merged 1 commit into
tevador:masterfrom
thomasbuilds:fix-riscv-xonly

Conversation

@thomasbuilds

Copy link
Copy Markdown
Contributor

The RISC-V JIT copies its templates out of jit_compiler_rv64_static.S and jit_compiler_rv64_vector_static.S which are still in .text. On systems that map code execute-only, which OpenBSD does by default on riscv64, reading them faults so using the JIT crashes.

@SChernykh
SChernykh merged commit daecc16 into tevador:master Oct 31, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants