-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.O-muslTarget: The musl libcTarget: The musl libcT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
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.
mati865 and gz
Metadata
Metadata
Assignees
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.O-muslTarget: The musl libcTarget: The musl libcT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.