You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= note: rust-lld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC
>>> defined in /home/user/projects/rustc_codegen_gcc/test-backend/target/debug/deps/test_rust-48376029011c759c.test_rust.e423519ea9e9089e-cgu.0.rcgu.o
>>> referenced by fake.c
>>> /home/user/projects/rustc_codegen_gcc/test-backend/target/debug/deps/test_rust-48376029011c759c.test_rust.e423519ea9e9089e-cgu.0.rcgu.o:(global.0)
Command:
y cargo rustc --bin test-rust -- -Clink-arg=-fuse-ld=lld
This also happens when using -Clinker-flavor=gnu-lld-cc which is used by Rust for Linux.
It gives the following error:
Command:
This also happens when using
-Clinker-flavor=gnu-lld-cc
which is used by Rust for Linux.Command:
The text was updated successfully, but these errors were encountered: