From a6cf9656bb8307408133353c035193bdd567b770 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sun, 8 Feb 2026 12:55:51 +0000 Subject: [PATCH] chore: add mold linker config for aarch64-unknown-linux-gnu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes ARM64 Docker build failure caused by R_AARCH64_CALL26 relocation overflow when linking libv8. mold automatically generates range extension thunks (veneers) to bridge calls exceeding the ±128MB limit. Co-Authored-By: Claude Opus 4.6 --- backend/.cargo/config.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/.cargo/config.toml b/backend/.cargo/config.toml index c44ba92b97..f8b0a5e32a 100644 --- a/backend/.cargo/config.toml +++ b/backend/.cargo/config.toml @@ -5,6 +5,10 @@ incremental = true linker = "clang" rustflags = ["-C", "link-arg=-fuse-ld=mold"] +[target.aarch64-unknown-linux-gnu] +linker = "clang" +rustflags = ["-C", "link-arg=-fuse-ld=mold"] + [target.x86_64-apple-darwin] rustflags = [ "-C", "link-arg=-undefined",