Skip to content

Fix building under UML - #881

Merged
ojeda merged 2 commits into
Rust-for-Linux:rustfrom
sulix:rust_uml_fix
Feb 13, 2023
Merged

ojeda merged 2 commits into
Rust-for-Linux:rustfrom
sulix:rust_uml_fix

Conversation

@sulix

@sulix sulix commented Sep 12, 2022

Copy link
Copy Markdown

At some point, UML (arch/um) support got broken.

We were able to work out the two causes of this at Kangrejos:

  • A strange SSE2-related SIGTRAP in rustc.
  • The relocation model needs to be PIE for some reason on UML builds. Maybe this is something better fixed in UML, but it was easier to change here. This is basically a revert of this commit in PR Target specification cleanup #706 — despite the comment there, I couldn't override the command-line version in a per-architecture way.

There's almost definitely a better way of fixing these, and even these fixes would need to be better understood and documented, but I'm putting this out there so we have some documentation of the problems, and something we can apply to test against.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants