Skip to content

Commit 46371c3

Browse files
authored
Fix fuzzer build by using mold (#9909)
Instrumented binaries had jump offsets that exceed default linker support. Mold should handle this just fine Signed-off-by: Robert Kruszewski <github@robertk.io>
1 parent 824dee1 commit 46371c3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/scripts/build-fuzzers.sh‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ set -euo pipefail
66

77
mkdir -p fuzz-binaries
88

9+
if [[ "$(uname -s)" == Linux ]]; then
10+
# Use mold to handle long-range calls in the instrumented ARM64 binaries.
11+
export RUSTFLAGS="${RUSTFLAGS:-} -C link-arg=-fuse-ld=mold"
12+
fi
13+
914
cargo "+$NIGHTLY_TOOLCHAIN" fuzz build --release --debug-assertions
1015

1116
copy_fuzzer() {

0 commit comments

Comments
 (0)