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)
Sat, Nov 8, 6:21 AM
Unknown Object (File)
Fri, Nov 7, 12:08 AM
Unknown Object (File)
Tue, Nov 4, 5:21 AM
Unknown Object (File)
Mon, Nov 3, 5:20 AM
Unknown Object (File)
Sat, Nov 1, 12:47 AM
Unknown Object (File)
Wed, Oct 29, 9:18 AM
Unknown Object (File)
Wed, Oct 29, 8:16 AM
Unknown Object (File)
Wed, Oct 29, 8:00 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