diff options
| author | Warner Losh <imp@FreeBSD.org> | 2022-01-10 17:14:12 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2022-01-10 17:15:15 +0000 |
| commit | 479ef15dfd9f0f7934094a05f80d02f44eb046cc (patch) | |
| tree | 2c3161bf06b22e450ccff1abf411373c3f6903b2 /lib | |
| parent | 1866c766d2c520faaedbfe98d2e34a95f54053a5 (diff) | |
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/gen/tls.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/gen/tls.c b/lib/libc/gen/tls.c index d75b883b68db..5ceaf439d839 100644 --- a/lib/libc/gen/tls.c +++ b/lib/libc/gen/tls.c @@ -148,11 +148,11 @@ libc_free_aligned(void *ptr) * Note: for Local Exec TLS Model, the offsets from TP (TCB in this case) to * TLS variables are computed by linker, so we cannot overalign TLS section. * - * - MIPS, PowerPC and RISC-V use modified version of variant I, - * described in [3] where TP points (with bias) to TLS and TCB immediately - * precedes TLS without any alignment gap[4]. Only TLS should be aligned. - * The TCB[0] points to DTV vector and DTV values are biased by constant - * value (TLS_DTV_OFFSET) from real addresses[5]. + * - PowerPC and RISC-V use modified version of variant I, described in [3] + * where TP points (with bias) to TLS and TCB immediately precedes TLS without + * any alignment gap[4]. Only TLS should be aligned. The TCB[0] points to DTV + * vector and DTV values are biased by constant value (TLS_DTV_OFFSET) from + * real addresses[5]. * * [1] Ulrich Drepper: ELF Handling for Thread-Local Storage * www.akkadia.org/drepper/tls.pdf |
