Page MenuHomeFreeBSD

libc: Reassociate pointer arithmetic in __libc_tls_get_addr
ClosedPublic

Authored by jrtc27 on Wed, May 7, 2:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 13, 6:38 AM
Unknown Object (File)
Sat, May 10, 9:32 PM
Unknown Object (File)
Fri, May 9, 12:49 PM
Unknown Object (File)
Fri, May 9, 11:36 AM
Unknown Object (File)
Thu, May 8, 10:17 PM
Unknown Object (File)
Thu, May 8, 6:54 PM
Unknown Object (File)
Wed, May 7, 9:00 PM
Subscribers

Details

Summary

Rather than compute a biased pointer only to then un-bias it again, un-bias
the offset before adding it to the DTV entry.

This mirrors rtld-elf commit d71c97026366 ("rtld-elf: Push
TLS_DTV_OFFSET into tls_get_addr_common's arguments")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable