ccab79cf | 22-Oct-2024 |
Sergey Zigachev <szi@dragonflybsd.org> |
rtld - do not allow both dynamic DTV index and static TLS offset
* If we are allocating static offset for an object with dynamic index, return failure. In the opposite case, if dynamic index is re
rtld - do not allow both dynamic DTV index and static TLS offset
* If we are allocating static offset for an object with dynamic index, return failure. In the opposite case, if dynamic index is requested for statically allocated TLS area, directly use the offset instead of setting the index. Taken from FreeBSD, commit 91880e07f605edb90339685bc934699a4344de3b.
* While there, fix dtv timing race between threads.
Co-authored-by: Matthew Dillon <dillon@apollo.backplane.com> Reported-by: Stephane Russell <srussell@prodigeinfo.qc.ca>
show more ...
|