We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7f40d1 commit b6c90ccCopy full SHA for b6c90cc
1 file changed
TSRM/TSRM.h
@@ -155,7 +155,7 @@ TSRM_API bool tsrm_is_managed_thread(void);
155
#if !__has_attribute(tls_model) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__MUSL__) || defined(__HAIKU__)
156
# define TSRM_TLS_MODEL_ATTR
157
# define TSRM_TLS_MODEL_DEFAULT
158
-#elif __PIC__
+#elif defined(__PIC__) && !defined(__PIE__)
159
# define TSRM_TLS_MODEL_ATTR __attribute__((tls_model("initial-exec")))
160
# define TSRM_TLS_MODEL_INITIAL_EXEC
161
#else
0 commit comments