rustld 0.1.55

A modern ELF loader (static & dynamic linker + compatible glibc & musl) written in Rust
Documentation
1
2
3
4
5
6
7
8
use crate::arch;

// Keep pthread key management in glibc. Our local stubs were incomplete for
// destructor/teardown semantics and can break Rust TLS on foreign threads.

pub(crate) unsafe fn gettid() -> i32 {
    arch::gettid()
}