Page MenuHomeFreeBSD

rtld-elf: Push TLS_DTV_OFFSET into tls_get_addr_common's arguments
ClosedPublic

Authored by jrtc27 on May 5 2025, 11:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 4, 4:52 PM
Unknown Object (File)
Fri, Oct 2, 11:56 AM
Unknown Object (File)
Fri, Oct 2, 10:10 AM
Unknown Object (File)
Sun, Sep 20, 11:45 PM
Unknown Object (File)
Fri, Sep 18, 8:59 PM
Unknown Object (File)
Thu, Sep 17, 5:33 AM
Unknown Object (File)
Aug 29 2026, 10:13 AM
Unknown Object (File)
Aug 19 2026, 9:51 PM
Subscribers

Details

Summary

Rather than calling tls_get_addr_common with a biased ti_offset and
un-biasing the return value, we can instead un-bias the offset given in
the first place and not need to adjust the return value. This is in fact
how the MIPS implementation worked, and makes this call tail-recursive.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 63931
Build 60815: arc lint + arc unit