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)
Thu, Aug 6, 2:32 PM
Unknown Object (File)
Wed, Aug 5, 3:47 AM
Unknown Object (File)
Thu, Jul 30, 8:49 AM
Unknown Object (File)
Fri, Jul 24, 4:23 PM
Unknown Object (File)
Thu, Jul 23, 7:27 AM
Unknown Object (File)
Tue, Jul 21, 2:09 PM
Unknown Object (File)
Mon, Jul 20, 8:51 PM
Unknown Object (File)
Sun, Jul 19, 11:22 AM
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 Not Applicable
Unit
Tests Not Applicable