Skip to content

Commit

Permalink
build-configs: rust: disable IBT/Retpoline/Rethunk for the moment
Browse files Browse the repository at this point in the history
Until we have the needed pieces in place in `rustc` and the kernel
to support IBT/Retpoline/Rethunk; disable the relevant configs
for the moment.

This avoids the 2000+ warnings from `objtool` that we currently
generate in the logs.

Link: https://storage.kernelci.org/mainline/master/v6.1-11554-g785d21ba2f44/x86_64/x86_64_defconfig+rust/rustc-1.62/logs/build-warnings.log
Link: Rust-for-Linux/linux#945
Signed-off-by: Miguel Ojeda <[email protected]>
  • Loading branch information
ojeda committed Dec 17, 2022
1 parent daed605 commit 296d90d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/core/build-configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ fragments:
rust:
path: "kernel/configs/rust.config"
configs:
- '# CONFIG_X86_KERNEL_IBT is not set'
- '# CONFIG_RETPOLINE is not set'
- '# CONFIG_RETHUNK is not set'
- 'CONFIG_RUST=y'

rust-for-linux-samples:
Expand Down

0 comments on commit 296d90d

Please sign in to comment.