Skip to content

Fix shared library build on RISC-V - #354

Merged
SChernykh merged 1 commit into
tevador:masterfrom
thomasbuilds:fix-riscv-shared-lib
Oct 15, 2026
Merged

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

Conversation

@thomasbuilds

Copy link
Copy Markdown
Contributor

Building a shared library (-DBUILD_SHARED_LIBS=ON) fails on riscv64 because jit_compiler_rv64_vector_static.S jumps to, or uses PC-relative addresses of, global labels:

relocation R_RISCV_JAL against `randomx_riscv64_vector_program_main_loop' which may bind externally can not be used when making a shared object

This marks the four labels involved .hidden, as #322 did for aarch64.

@SChernykh
SChernykh merged commit 115f723 into tevador:master Oct 15, 2026
10 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