mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 06:28:39 +00:00
Stock 580.178.04 nv-kernel.o_binary unconditionally emits endbr64 (f3 0f 1e fa) prologues so CONFIG_X86_KERNEL_IBT=y kernels do not raise #CP on indirect calls. utils.mk already enables -Z cf-protection=branch -C jump-tables=no on IBT kernels, but stable/distro rustc (including rust-toolchain.toml 1.100.0, Arch rust, Gentoo dev-lang/rust) rejected -Z without RUSTC_BOOTSTRAP=1. Exporting RUSTC_BOOTSTRAP=1 inside the NV_RS_KERNEL_IBT=1 block allows stable rustc to emit ENDBR64 prologues directly (verified on stable rustc 1.100.0: check_kernel_module.py passed=true, largest_stack=1000, data_relocation_targets_without_endbr=0, data_relocations_pointing_inside_a_function=0).
6 lines
282 B
TOML
6 lines
282 B
TOML
[toolchain]
|
|
channel = "1.100.0" # Stable toolchain; utils.mk exports RUSTC_BOOTSTRAP=1 automatically for -Z cf-protection=branch on CONFIG_X86_KERNEL_IBT=y kernels. See docs/KERNEL_COMPAT.md.
|
|
profile = "minimal"
|
|
components = ["rustfmt", "clippy"]
|
|
targets = ["x86_64-unknown-none"]
|