mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-29 11:54:38 +01:00
rtld: fix allocate_module_tls() variant I fallback to static allocation
Submitted by: Joerg Sonnenberger Fixes: 91880e07f605edb90339685bc934699a4344de3bESC MFC after: 1 week
This commit is contained in:
1 parent
5253d74e46
commit
e9a38ed2fa
1 file changed
+1
-1
@@ -5465,7 +5465,7 @@ allocate_module_tls(int index)
|
||||
|
||||
if (obj->tls_static) {
|
||||
#ifdef TLS_VARIANT_I
|
||||
p = (char *)_tcb_get() + obj->tlsoffset;
|
||||
p = (char *)_tcb_get() + obj->tlsoffset + TLS_TCB_SIZE;
|
||||
#else
|
||||
p = (char *)_tcb_get() - obj->tlsoffset;
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user