diff mbox series

musl: Fix invalid tls model in libgomp and libitm PR91938

Message ID aa0d5e90-5e77-6ba4-adfa-dc2c7336f083@arm.com
State New
Headers show
Series musl: Fix invalid tls model in libgomp and libitm PR91938 | expand

Commit Message

Szabolcs Nagy Nov. 15, 2019, 9:55 a.m. UTC
Musl does not support initial-exec tls in dynamically loaded shared
libraries.

libgomp/ChangeLog:

2019-11-15  Szabolcs Nagy  <szabolcs.nagy@arm.com>

	* configure.tgt: Avoid IE tls on *-*-musl*.

libitm/ChangeLog:

2019-11-15  Szabolcs Nagy  <szabolcs.nagy@arm.com>

	* configure.tgt: Avoid IE tls on *-*-musl*.

Comments

Szabolcs Nagy Nov. 20, 2019, 2:42 p.m. UTC | #1
On 15/11/2019 09:55, Szabolcs Nagy wrote:
> Musl does not support initial-exec tls in dynamically loaded shared
> libraries.

ping.

> 
> libgomp/ChangeLog:
> 
> 2019-11-15  Szabolcs Nagy  <szabolcs.nagy@arm.com>
> 
> 	* configure.tgt: Avoid IE tls on *-*-musl*.

i should add PR libgomp/91938 here.

> 
> libitm/ChangeLog:
> 
> 2019-11-15  Szabolcs Nagy  <szabolcs.nagy@arm.com>
> 
> 	* configure.tgt: Avoid IE tls on *-*-musl*.
Szabolcs Nagy Dec. 3, 2019, 10:43 a.m. UTC | #2
On 20/11/2019 14:42, Szabolcs Nagy wrote:
> On 15/11/2019 09:55, Szabolcs Nagy wrote:
>> Musl does not support initial-exec tls in dynamically loaded shared
>> libraries.
> 
> ping.

ping.

>>
>> libgomp/ChangeLog:
>>
>> 2019-11-15  Szabolcs Nagy  <szabolcs.nagy@arm.com>
>>
>> 	* configure.tgt: Avoid IE tls on *-*-musl*.
> 
> i should add PR libgomp/91938 here.
> 
>>
>> libitm/ChangeLog:
>>
>> 2019-11-15  Szabolcs Nagy  <szabolcs.nagy@arm.com>
>>
>> 	* configure.tgt: Avoid IE tls on *-*-musl*.
Jakub Jelinek Dec. 3, 2019, 11:04 a.m. UTC | #3
On Fri, Nov 15, 2019 at 09:55:37AM +0000, Szabolcs Nagy wrote:
> Musl does not support initial-exec tls in dynamically loaded shared
> libraries.
> 
> libgomp/ChangeLog:
> 
> 2019-11-15  Szabolcs Nagy  <szabolcs.nagy@arm.com>
> 
> 	* configure.tgt: Avoid IE tls on *-*-musl*.
> 
> libitm/ChangeLog:
> 
> 2019-11-15  Szabolcs Nagy  <szabolcs.nagy@arm.com>
> 
> 	* configure.tgt: Avoid IE tls on *-*-musl*.

Ok.

	Jakub
diff mbox series

Patch

diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt
index b88bf72fe3d..747d0485bf8 100644
--- a/libgomp/configure.tgt
+++ b/libgomp/configure.tgt
@@ -17,6 +17,9 @@  if test $gcc_cv_have_tls = yes ; then
     *-*-k*bsd*-gnu*)
 	;;
 
+    *-*-musl*)
+	;;
+
     *-*-linux* | *-*-gnu*)
 	XCFLAGS="${XCFLAGS} -ftls-model=initial-exec -DUSING_INITIAL_EXEC_TLS"
 	;;
diff --git a/libitm/configure.tgt b/libitm/configure.tgt
index eea865d6aa3..0bdca1123cc 100644
--- a/libitm/configure.tgt
+++ b/libitm/configure.tgt
@@ -31,6 +31,9 @@ 
 if test "$gcc_cv_have_tls" = yes ; then
   case "${target}" in
 
+    *-*-musl*)
+	;;
+
     # For x86, we use slots in the TCB head for most of our TLS.
     # The setup of those slots in beginTransaction can afford to
     # use the global-dynamic model.