Skip to content

Add -Zfunction-return={keep,thunk-extern} option - #116892

Merged
bors merged 2 commits into
rust-lang:masterfrom
ojeda:rethunk
Dec 1, 2023
Merged

bors merged 2 commits into
rust-lang:masterfrom
ojeda:rethunk

Conversation

@ojeda

@ojeda ojeda commented Oct 18, 2023

Copy link
Copy Markdown
Contributor

This is intended to be used for Linux kernel RETHUNK builds.

With this commit (optionally backported to Rust 1.73.0), plus a patched Linux kernel to pass the flag, I get a RETHUNK build with Rust enabled that is objtool-warning-free and is able to boot in QEMU and load a sample Rust kernel module.

Issue: #116853.

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

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.