]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Setting up TLS block for the main thread must be done after the
authorkib <kib@FreeBSD.org>
Sat, 8 Oct 2011 12:39:47 +0000 (12:39 +0000)
committerkib <kib@FreeBSD.org>
Sat, 8 Oct 2011 12:39:47 +0000 (12:39 +0000)
commit85d4378ca8b2ee0b3c911448dbf9ef0978cbe1d7
treeb03c113a0ed9438171ad08f452c83fd80bdbb10f
parent07ac74d257832436e5d62b6a367e914e7b885db8
Setting up TLS block for the main thread must be done after the
relocations are processed, since tls initialization section might be
itself subject for relocations. Only set up of the block is postponed,
the tls block offsets are allocated before relocation processing, since
TLS-related relocations may need offsets ready.

Reported by: ale
PR: threads/161344
Reviewed by: kan
MFC after: 1 week
libexec/rtld-elf/rtld.c