Skip to content

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

Closed

Description

@aep

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

Activity

  1. mati865 commented on Sep 17, 2019

    @mati865
    Member

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

  2. petrochenkov commented on Jun 17, 2020

    @petrochenkov
    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.

  3. self-assigned this
    on Jun 17, 2020
  4. aep commented on Jun 17, 2020

    @aep
    Author

    Sorry we no longer use rust. Close sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

O-MIPSTarget: MIPS processorsO-muslTarget: The musl libc

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions