rust/library/std
Bastian Kersting 02bb2d4410 Disable CFI for weakly linked syscalls
Currently, when enabling CFI via -Zsanitizer=cfi and executing e.g.
std::sys::random::getrandom, we can observe a CFI violation. This is
the case for all consumers of the std::sys::pal::weak::weak macro,
as it is defining weak functions which don't show up in LLVM IR
metadata. CFI fails for all these functions.

Similar to other such cases in
https://github.com/rust-lang/rust/issues/115199, this change stops
emitting the CFI typecheck for consumers of the macro via the
\#[no_sanitize(cfi)] attribute.
2025-03-10 08:51:04 +00:00
..
benches Fix import in bench for wasm 2025-02-12 14:44:30 -08:00
src Disable CFI for weakly linked syscalls 2025-03-10 08:51:04 +00:00
tests std: Apply deprecated_safe_2024 2025-02-13 13:10:28 -08:00
build.rs Rollup merge of #137674 - heiher:enable-f16-loong, r=tgross35 2025-03-07 10:12:43 +01:00
Cargo.toml Rollup merge of #138038 - tgross35:update-builtins, r=tgross35 2025-03-06 12:22:29 -05:00