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

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

Merged
merged 2 commits into from
Dec 1, 2023
Merged

Commits on Nov 30, 2023

  1. rustc_codegen_llvm: remove outdated count in comment

    Signed-off-by: Miguel Ojeda <[email protected]>
    ojeda committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    d3c9964 View commit details
    Browse the repository at this point in the history
  2. Add -Zfunction-return={keep,thunk-extern} option

    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.
    
    Signed-off-by: Miguel Ojeda <[email protected]>
    ojeda committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    2d47622 View commit details
    Browse the repository at this point in the history