rustc explicitly adds crt1 before passing to the linker, which breaks musl-cross.
for static-pie we need to use rcrt1 instead.
Also i think crt1.o is actually wrong, since that target is supposed to support both dyn and static.
|
base.pre_link_objects_exe_crt.push("crt1.o".to_string()); |
any chance we can at least have a rustc arg that removes the crt? (like -nostartfiles essentially)
or a blank target that lets the user configure the rest of the target via commandline.
rustc explicitly adds crt1 before passing to the linker, which breaks musl-cross.
for static-pie we need to use rcrt1 instead.
Also i think crt1.o is actually wrong, since that target is supposed to support both dyn and static.
rust/src/librustc_target/spec/linux_musl_base.rs
Line 59 in b7c6e8f
any chance we can at least have a rustc arg that removes the crt? (like -nostartfiles essentially)
or a blank target that lets the user configure the rest of the target via commandline.