Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163503792
D50181.id154910.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
595 B
Referenced Files
None
Subscribers
None
D50181.id154910.diff
View Options
diff --git a/lib/libc/gen/tls.c b/lib/libc/gen/tls.c
--- a/lib/libc/gen/tls.c
+++ b/lib/libc/gen/tls.c
@@ -272,7 +272,7 @@
/* Adjust the DTV. */
dtv = tcb[0];
- dtv[2] = (Elf_Addr)(tls + TLS_DTV_OFFSET);
+ dtv[2] = (Elf_Addr)tls;
} else {
dtv = __je_bootstrap_malloc(3 * sizeof(Elf_Addr));
if (dtv == NULL) {
@@ -283,7 +283,7 @@
tcb[0] = dtv;
dtv[0] = 1; /* Generation. */
dtv[1] = 1; /* Segments count. */
- dtv[2] = (Elf_Addr)(tls + TLS_DTV_OFFSET);
+ dtv[2] = (Elf_Addr)tls;
if (libc_tls_init_size > 0)
memcpy(tls, libc_tls_init, libc_tls_init_size);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 24, 9:38 PM (15 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35426593
Default Alt Text
D50181.id154910.diff (595 B)
Attached To
Mode
D50181: libc: Don't bias DTV entries by TLS_DTV_OFFSET
Attached
Detach File
Event Timeline
Log In to Comment