aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-12-09 21:16:45 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2021-12-09 21:16:45 +0000
commit299617496cc3c525a63833894fd8dbdc4e5de6a7 (patch)
treec11aaeccefaf4d33252ae62c19bd5058a37275a5 /libexec
parent9952b82b398968a243909ee3854b1968c3cc8c12 (diff)
downloadsrc-299617496cc3c525a63833894fd8dbdc4e5de6a7.tar.gz
src-299617496cc3c525a63833894fd8dbdc4e5de6a7.zip
amd64: Allocate TCB with alignment of 16 rather than 8.
This matches the TLS_TCB_ALIGN definition in libc. Reviewed by: kib, jrtc27 Sponsored by: The University of Cambridge, Google Inc. Differential Revision: https://reviews.freebsd.org/D33349
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/amd64/reloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rtld-elf/amd64/reloc.c b/libexec/rtld-elf/amd64/reloc.c
index 1fec863c063b..62547f1bb4a2 100644
--- a/libexec/rtld-elf/amd64/reloc.c
+++ b/libexec/rtld-elf/amd64/reloc.c
@@ -530,7 +530,7 @@ allocate_initial_tls(Obj_Entry *objs)
*/
tls_static_space = tls_last_offset + RTLD_STATIC_TLS_EXTRA;
- addr = allocate_tls(objs, 0, 3 * sizeof(Elf_Addr), sizeof(Elf_Addr));
+ addr = allocate_tls(objs, 0, 3 * sizeof(Elf_Addr), 16);
if (__getosreldate() >= P_OSREL_WRFSBASE &&
(cpu_stdext_feature & CPUID_STDEXT_FSGSBASE) != 0)
wrfsbase((uintptr_t)addr);