about summary refs log tree commit diff
path: root/library/std/src/sys/process/unix/unix.rs
diff options
context:
space:
mode:
authorBastian Kersting <bkersting@google.com>2025-04-11 10:15:55 +0000
committerBastian Kersting <bkersting@google.com>2025-04-11 10:15:55 +0000
commit068a33245981765c3678434d5bcb71bd63d5598a (patch)
tree579d0ce8fc86dbe6ffe1cc910f49b78877417f6e /library/std/src/sys/process/unix/unix.rs
parente5fefc359bec532134013baaabc92560bfb61578 (diff)
downloadrust-068a33245981765c3678434d5bcb71bd63d5598a.tar.gz
rust-068a33245981765c3678434d5bcb71bd63d5598a.zip
cfi: Remove #[no_sanitize(cfi)] for extern weak functions
Previously (https://github.com/rust-lang/rust/pull/115200,
https://github.com/rust-lang/rust/pull/138002), we
added `#[no_sanitize(cfi)]` to all code paths that call to a weakly
linked function.

In https://github.com/rust-lang/rust/pull/138349 we fixed the root cause
for this issue, which means we can now remove the corresponding
attributes.
Diffstat (limited to 'library/std/src/sys/process/unix/unix.rs')
-rw-r--r--library/std/src/sys/process/unix/unix.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/library/std/src/sys/process/unix/unix.rs b/library/std/src/sys/process/unix/unix.rs
index 191a09c8da9..3b04ec50db3 100644
--- a/library/std/src/sys/process/unix/unix.rs
+++ b/library/std/src/sys/process/unix/unix.rs
@@ -434,9 +434,6 @@ impl Command {
         target_os = "nto",
         target_vendor = "apple",
     ))]
-    // FIXME(#115199): Rust currently omits weak function definitions
-    // and its metadata from LLVM IR.
-    #[cfg_attr(target_os = "linux", no_sanitize(cfi))]
     fn posix_spawn(
         &mut self,
         stdio: &ChildPipes,