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)
Thu, Nov 14, 2:32 AM
Unknown Object (File)
Tue, Nov 12, 7:41 AM
Unknown Object (File)
Tue, Nov 12, 6:05 AM
Unknown Object (File)
Mon, Nov 11, 7:16 PM
Unknown Object (File)
Sun, Nov 10, 3:52 AM
Unknown Object (File)
Sat, Nov 9, 10:05 PM
Unknown Object (File)
Apr 2 2024, 12:39 AM
Unknown Object (File)
Mar 30 2024, 12:39 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.