I'm doing something wrong but don't know what. I'm trying to replicate tiny-hello example but get this error:
error: linking with `rust-lld` failed: exit status: 1
= note: rust-lld: error: unknown argument '-nostartfiles'
When I remove the
println!("cargo:rustc-link-arg=-nostartfiles");
from the build.rs, the resulting binary has no .text section at all.
I'm compiling with nightly and use origin = { version = "0.24.0", default-features = false, features = ["origin-start", "nightly"] }.
Thanks for your help :)
I'm doing something wrong but don't know what. I'm trying to replicate
tiny-helloexample but get this error:When I remove the
from the
build.rs, the resulting binary has no .text section at all.I'm compiling with nightly and use
origin = { version = "0.24.0", default-features = false, features = ["origin-start", "nightly"] }.Thanks for your help :)