Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147889354
D50183.1784694428.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
449 B
Referenced Files
None
Subscribers
None
D50183.1784694428.diff
View Options
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -4135,7 +4135,7 @@
sym = rtld_resolve_ifunc(defobj, def);
else if (ELF_ST_TYPE(def->st_info) == STT_TLS) {
ti.ti_module = defobj->tlsindex;
- ti.ti_offset = def->st_value;
+ ti.ti_offset = def->st_value - TLS_DTV_OFFSET;
sym = __tls_get_addr(&ti);
} else
sym = defobj->relocbase + def->st_value;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 4:27 AM (10 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29224556
Default Alt Text
D50183.1784694428.diff (449 B)
Attached To
Mode
D50183: rtld-elf: Fix dlsym(3) for TLS symbols on PowerPC and RISC-V
Attached
Detach File
Event Timeline
Log In to Comment