You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of rust-lang#129398 - matthiaskrgr:rollup-50l01ry, r=matthiaskrgr
Rollup of 8 pull requests
Successful merges:
- rust-lang#128432 (WASI: forbid `unsafe_op_in_unsafe_fn` for `std::{os, sys}`)
- rust-lang#129373 (Add missing module flags for CFI and KCFI sanitizers)
- rust-lang#129374 (Use `assert_unsafe_precondition!` in `AsciiChar::digit_unchecked`)
- rust-lang#129376 (Change `assert_unsafe_precondition` docs to refer to `check_language_ub`)
- rust-lang#129382 (Add `const_cell_into_inner` to `OnceCell`)
- rust-lang#129387 (Advise against removing the remaining Python scripts from `tests/run-make`)
- rust-lang#129388 (Do not rely on names to find lifetimes.)
- rust-lang#129395 (Pretty-print own args of existential projections (dyn-Trait w/ GAT constraints))
r? `@ghost`
`@rustbot` modify labels: rollup
// If we're normalizing integers with CFI, ensure LLVM generated functions do the same.
231
+
// See https://github.com/llvm/llvm-project/pull/104826
232
+
if sess.is_sanitizer_cfi_normalize_integers_enabled(){
233
+
let cfi_normalize_integers = c"cfi-normalize-integers".as_ptr().cast();
234
+
unsafe{
235
+
llvm::LLVMRustAddModuleFlagU32(
236
+
llmod,
237
+
llvm::LLVMModFlagBehavior::Override,
238
+
cfi_normalize_integers,
239
+
1,
240
+
);
241
+
}
242
+
}
243
+
229
244
// Enable LTO unit splitting if specified or if CFI is enabled. (See https://reviews.llvm.org/D53891.)
230
245
if sess.is_split_lto_unit_enabled() || sess.is_sanitizer_cfi_enabled(){
231
246
let enable_split_lto_unit = c"EnableSplitLTOUnit".as_ptr();
0 commit comments