-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Revert relax_elf_relocations default change #115267
Conversation
This reverts commit 4410868, reversing changes made to 249595b. This causes linker failures with the binutils version used by cross (rust-lang#115239), as well as miscompilations when using the mold linker.
r? @TaKO8Ki (rustbot has picked a reviewer for you, use r? to override) |
These commits modify compiler targets. |
@bors r+ |
…piler-errors Revert relax_elf_relocations default change This reverts commit 4410868 (rust-lang#106511). The change caused linker failures with the binutils version used by cross (rust-lang#115239), as well as miscompilations when using the mold linker (https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/SIGILL.20in.20build-script-build.20with.20nightly-2023-08-25/near/387506479).
☀️ Test successful - checks-actions |
Finished benchmarking commit (f7dd70c): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Bootstrap: 631.903s -> 632.239s (0.05%) |
Migrate from `actions-rs/toolchain@v1` to `dtolnay/rust-toolchain@master` and remove `Cross.toml` This PR replace the usage of [actions-rs/toolchain@v1](https://github.com/actions-rs/toolchain) with [dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain) as it is no longer maintained and uses the deprecated GitHub Actions API. The [dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain) provides similar functionality and also provides some additional features such as colored output. Regarding the `Cross.toml` file, it is no longer needed after merging rust-lang/rust#115267.
As of rust-lang/rust#115267, the call from `rustix::param::init` to `backend::param::auxv::init` goes through the GOT, which is not yet relocated when the `relocate` code runs. Change the `relocate` code to read the AUX values itself instead of using rustix, and make it avoid using any other calls, and move the `relocate` call before the `rustix::param::init` call.
* Update to the latest Rust nightly. * Change the relocation code to avoid making any calls. As of rust-lang/rust#115267, the call from `rustix::param::init` to `backend::param::auxv::init` goes through the GOT, which is not yet relocated when the `relocate` code runs. Change the `relocate` code to read the AUX values itself instead of using rustix, and make it avoid using any other calls, and move the `relocate` call before the `rustix::param::init` call.
This reverts commit 4410868 (#106511).
The change caused linker failures with the binutils version used by cross (#115239), as well as miscompilations when using the mold linker (https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/SIGILL.20in.20build-script-build.20with.20nightly-2023-08-25/near/387506479).