Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161317094
D33350.id99738.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
856 B
Referenced Files
None
Subscribers
None
D33350.id99738.diff
View Options
Index: lib/libc/gen/tls.c
===================================================================
--- lib/libc/gen/tls.c
+++ lib/libc/gen/tls.c
@@ -72,11 +72,14 @@
void *__libc_allocate_tls(void *oldtls, size_t tcbsize, size_t tcbalign);
void __libc_free_tls(void *tls, size_t tcbsize, size_t tcbalign);
-#if defined(__amd64__)
+#if defined(__amd64__) || defined(__aarch64__) || defined(__riscv)
#define TLS_TCB_ALIGN 16
-#elif defined(__aarch64__) || defined(__arm__) || defined(__i386__) || \
- defined(__mips__) || defined(__powerpc__) || defined(__riscv)
-#define TLS_TCB_ALIGN sizeof(void *)
+#elif defined(__arm__) || defined(__mips__)
+#define TLS_TCB_ALIGN 8
+#elif defined(__powerpc__)
+#define TLS_TCB_ALIGN TLS_TCB_SIZE
+#elif defined(__i386__)
+#define TLS_TCB_ALIGN 4
#else
#error TLS_TCB_ALIGN undefined for target architecture
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 3, 6:07 PM (17 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34632938
Default Alt Text
D33350.id99738.diff (856 B)
Attached To
Mode
D33350: libc: Fix the alignment of the TCB to match rtld for several architectures.
Attached
Detach File
Event Timeline
Log In to Comment