aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-08-04 02:47:15 +0000
committerMichał Górny <mgorny@gentoo.org>2023-08-04 04:51:04 +0200
commitf0f2cabff0fa9df71191ef2c0446975bec29209e (patch)
tree71586e9da849f0b4a575eea6a534e604269f05e7
parent[3.12] gh-106669: Revert "gh-102988: Detect email address parsing errors ... ... (diff)
downloadcpython-gentoo-3.12.0b4_p2.tar.gz
cpython-gentoo-3.12.0b4_p2.tar.bz2
cpython-gentoo-3.12.0b4_p2.zip
pystate: workaround binutils TLS bug on ppcgentoo-3.12.0b4_p2
Specify the global-dynamic TLS module to workaround a bfd bug on ppc32 which breaks Python 3.12 which switches to always using TLS. Bug: https://bugs.gentoo.org/909544 Bug: https://sourceware.org/PR30697 Thanks-to: Alexander Monakov
-rw-r--r--Python/pystate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index da0e1c42d72..e8698c5c748 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -62,6 +62,7 @@ extern "C" {
#ifdef HAVE_THREAD_LOCAL
+__attribute__((tls_model("global-dynamic")))
_Py_thread_local PyThreadState *_Py_tss_tstate = NULL;
#endif