Fix TSD stubs for non-initial-exec case (fixes #5667).
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>
Tue, 23 Nov 2021 20:24:38 +0000 (15:24 -0500)
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>
Wed, 8 Dec 2021 05:10:29 +0000 (00:10 -0500)
commit3aab34171d464f907ed4488ab87c48270381ecde
treefdfe73a31c7c74cea3627377ee0f8f5ae39d6751
parentb713fca4957982ab24a93ae13d58d98fccfe44ac
Fix TSD stubs for non-initial-exec case (fixes #5667).

ppc64le TSD disabled for now since I am insufficiently familiar with ppc
asm. x86 pthread stubs deleted because adding USE_ELF_TLS to the #if is
isn't worth the effort since it only saves a single function call on
initial entry (TSD stubs are not used for read-only text now). also
potentially fix non-pthread TSD builds (_glapi_Dispatch was undefined),
but untested (could still be broken).

Tested-by: Jesse Natalie <jenatali@microsoft.com>
Tested-by: Jan Beich <jbeich@freebsd.org>
Signed-off-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13935>
src/mapi/entry.c
src/mapi/entry_x86_tsd.h
src/mapi/glapi/gen/gl_x86_asm.py