Use the proper dynamic tls block to calculate the tls variable address
in case tls data generation was updated. PR: misc/160721 Submitted by: "Thinker K.F. Li" <thinker codemud net> Tested by: flo Approved by: re (bz) MFC after: 1 week
This commit is contained in:
parent
20aee906b4
commit
f785588713
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=225582
@ -3370,7 +3370,7 @@ tls_get_addr_common(Elf_Addr** dtvp, int index, size_t offset)
|
||||
newdtv[1] = tls_max_index;
|
||||
free(dtv);
|
||||
lock_release(rtld_bind_lock, &lockstate);
|
||||
*dtvp = newdtv;
|
||||
dtv = *dtvp = newdtv;
|
||||
}
|
||||
|
||||
/* Dynamically allocate module TLS if necessary */
|
||||
|
Loading…
Reference in New Issue
Block a user