diff options
| author | Bastian Kersting <bkersting@google.com> | 2025-04-11 10:15:55 +0000 |
|---|---|---|
| committer | Bastian Kersting <bkersting@google.com> | 2025-04-11 10:15:55 +0000 |
| commit | 068a33245981765c3678434d5bcb71bd63d5598a (patch) | |
| tree | 579d0ce8fc86dbe6ffe1cc910f49b78877417f6e /library/std/src/sys/thread_local | |
| parent | e5fefc359bec532134013baaabc92560bfb61578 (diff) | |
| download | rust-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/thread_local')
| -rw-r--r-- | library/std/src/sys/thread_local/destructors/linux_like.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/library/std/src/sys/thread_local/destructors/linux_like.rs b/library/std/src/sys/thread_local/destructors/linux_like.rs index 817941229ee..d7cbaeb89f4 100644 --- a/library/std/src/sys/thread_local/destructors/linux_like.rs +++ b/library/std/src/sys/thread_local/destructors/linux_like.rs @@ -12,9 +12,6 @@ use crate::mem::transmute; -// FIXME: The Rust compiler currently omits weakly function definitions (i.e., -// __cxa_thread_atexit_impl) and its metadata from LLVM IR. -#[no_sanitize(cfi, kcfi)] pub unsafe fn register(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) { /// This is necessary because the __cxa_thread_atexit_impl implementation /// std links to by default may be a C or C++ implementation that was not |
