Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mips-linux-musleab is broken again because it uses the wrong crt for static pie #64547

Closed
aep opened this issue Sep 17, 2019 · 3 comments
Closed
Assignees
Labels
O-MIPS Target: MIPS processors O-musl Target: The musl libc

Comments

@aep
Copy link

aep commented Sep 17, 2019

somewhen between nightly-2019-08-30 and nightly-2019-09-15 the link call was changed to "-static" "-pie" but the crt in mips-linux-musleabi has't changed. it should be rcrt, but instead links the one intended for call via libc via .interpr

result is segv in dlstart

the correct solution is to not ship crt, but since that seems to have no agreement, the intermediate fix would be to either remove -static or use the correct crt

@jonas-schievink jonas-schievink added the O-musl Target: The musl libc label Sep 17, 2019
@mati865
Copy link
Contributor

mati865 commented Sep 17, 2019

It'd be really helpful if you could bisect this issue to the single nightly.

@petrochenkov
Copy link
Contributor

-static -pie is (counter-intuitively) equivalent to -static, i.e. -pie in this case is suppressed, so using rcrt shouldn't be necessary and I'm not sure what causes the issue exactly.

#70740 adds proper support for -static-pie including rcrt, so this issue was likely fixed somewhere on the way.

I'll close this issue in a ~week if an up-to-date reproduction doesn't appear.

@petrochenkov petrochenkov self-assigned this Jun 17, 2020
@aep
Copy link
Author

aep commented Jun 17, 2020

Sorry we no longer use rust. Close sounds good.

@aep aep closed this as completed Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-MIPS Target: MIPS processors O-musl Target: The musl libc
Projects
None yet
Development

No branches or pull requests

5 participants