Page MenuHomeFreeBSD

Combined D31538 and D31539 plus some more
ClosedPublic

Authored by kib on Aug 15 2021, 2:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 10:05 AM
Unknown Object (File)
Tue, Apr 2, 12:39 AM
Unknown Object (File)
Sat, Mar 30, 12:39 PM
Unknown Object (File)
Jan 9 2024, 6:46 PM
Unknown Object (File)
Dec 20 2023, 3:45 AM
Unknown Object (File)
Dec 13 2023, 3:12 PM
Unknown Object (File)
Dec 12 2023, 11:37 PM
Unknown Object (File)
Dec 12 2023, 9:56 PM
Subscribers

Details

Summary

This is a diff from the branch where I am preparing listed revisions for the commit.

I do not like TLS_BELOW_TP symbol, instead I moved TLS_VARIANT_I/II from libc into rtld_machdep.h and use that.
Also I fixed style issues and converted libc to use TLS_DTV_OFFSET as well.

Diff Detail

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

Event Timeline

kib requested review of this revision.Aug 15 2021, 2:45 AM

FWIW TLS_BELOW_TP and TLS_ABOVE_TP are more descriptive. VARIANT_I and VARIANT_II are less clear. In addition, technically arm/aarch64 are not strict Variant I because of the 2 reserved words. mips/powerpc are not strict Variant I because of a non-zero DTP offset. FreeBSD doesn't support the strict Variant I architectures (e.g. Alpha, ia64)

FWIW TLS_BELOW_TP and TLS_ABOVE_TP are more descriptive. VARIANT_I and VARIANT_II are less clear. In addition, technically arm/aarch64 are not strict Variant I because of the 2 reserved words. mips/powerpc are not strict Variant I because of a non-zero DTP offset. FreeBSD doesn't support the strict Variant I architectures (e.g. Alpha, ia64)

They should be clear for anybody touching TLS code. Main point is that rtld and static TLS in libc are becoming more aligned.

D31538 is a functional change. I think it'd be good not to fix functional change without unrelated cleanups.

D31538 is a functional change. I think it'd be good not to fix functional change without unrelated cleanups.

This is how the topic branch looks like https://kib.kiev.ua/git/gitweb.cgi?p=deviant3.git;a=shortlog;h=refs/heads/rtld

This revision was not accepted when it landed; it landed in state Needs Review.Aug 16 2021, 10:56 AM
This revision was automatically updated to reflect the committed changes.