git: 8f63fa78e84a - main - rtld: Remove calculate_tls_end

John Baldwin jhb at FreeBSD.org
Mon Aug 16 16:53:38 UTC 2021


On 8/16/21 3:56 AM, Konstantin Belousov wrote:
> The branch main has been updated by kib:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=8f63fa78e84afd23fa68c82eabfe64763c92d4f5
> 
> commit 8f63fa78e84afd23fa68c82eabfe64763c92d4f5
> Author:     Fangrui Song <i at maskray.me>
> AuthorDate: 2021-08-14 17:02:09 +0000
> Commit:     Konstantin Belousov <kib at FreeBSD.org>
> CommitDate: 2021-08-16 10:55:35 +0000
> 
>      rtld: Remove calculate_tls_end
>      
>      Variant I architectures use off and Variant II ones use size + off.
>      Define TLS_VARIANT_I/TLS_VARIANT_II symbols similarly to how libc
>      handles it.
>      
>      Reviewed by:    kib
>      MFC after:      1 week
>      Differential revision:  https://reviews.freebsd.org/D31539
>      Differential revision:  https://reviews.freebsd.org/D31541

Would it make sense to have <machine/tls.h> and move the TLS-related
constants there?  Right now we duplicate them in at least two places
(libthr internal headers and libc/rtld).

-- 
John Baldwin


More information about the dev-commits-src-main mailing list