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
{{ message }}
Repository navigation
musl crt[begin,end] are being built for ARMv7 for arm targets #85310
I am unable to build working binaries for arm-unknown-linux-musleabihf targets with an external linker with 1.52.1, but I am able to with 1.51.0. Specifically, what should be ARMv6 binaries are ARMv7, and those binaries will exit after eventually executing an illegal instruction.
cargo-bisect-rustc narrowed the problem down to 130b2ab, and the only thing that looked like it could affect this was #82534. readelf confirms the problem:
This is a rustbuild issue, in -C link-self-contained=yes mode (which is on by default for some musl targets until rust-lang/compiler-team#422 is implemented) rustc will link whatever crt objects are found in lib/rustlib/<target>/lib/self-contained, and rustbuild is responsible for putting the crt object files there.
Activity
petrochenkov commentedon May 15, 2021
This is a rustbuild issue, in
-C link-self-contained=yesmode (which is on by default for some musl targets until rust-lang/compiler-team#422 is implemented)rustcwill link whatever crt objects are found inlib/rustlib/<target>/lib/self-contained, and rustbuild is responsible for putting the crt object files there.