From 157d8d46102b604c8e6a88c3853f9411c75df840 Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Mon, 10 Mar 2025 06:08:40 -0400 Subject: [PATCH] Eliminate use of gold linker --- cargo-afl/src/main.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cargo-afl/src/main.rs b/cargo-afl/src/main.rs index f54d4e84a..36c01487d 100644 --- a/cargo-afl/src/main.rs +++ b/cargo-afl/src/main.rs @@ -338,13 +338,6 @@ where rustflags.push_str("--cfg fuzzing "); } - if cfg!(target_os = "linux") { - // work around https://github.com/rust-fuzz/afl.rs/issues/141 / - // https://github.com/rust-lang/rust/issues/53945, can be removed once - // those are fixed. - rustflags.push_str("-Clink-arg=-fuse-ld=gold "); - } - // RUSTFLAGS are not used by rustdoc, instead RUSTDOCFLAGS are used. Since // doctests will try to link against afl-llvm-rt, set up RUSTDOCFLAGS to // have doctests built the same as other code to avoid issues with doctests.