-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable non-POSIX TLS usage in libgomp (#1720)
- Loading branch information
Showing
7 changed files
with
155 additions
and
1 deletion.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
0_RootFS/GCCBootstrap@4/bundled/patches/musl_disable_tls.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- a/gcc/libgomp/configure.tgt 2020-09-30 20:53:48.451232161 -0500 | ||
+++ b/gcc/libgomp/configure.tgt 2020-09-30 20:54:49.194468515 -0500 | ||
@@ -10,16 +10,6 @@ | ||
# XCFLAGS Add extra compile flags to use. | ||
# XLDFLAGS Add extra link flags to use. | ||
|
||
-# Optimize TLS usage by avoiding the overhead of dynamic allocation. | ||
-if test $gcc_cv_have_tls = yes ; then | ||
- case "${target}" in | ||
- | ||
- *-*-linux*) | ||
- XCFLAGS="${XCFLAGS} -ftls-model=initial-exec" | ||
- ;; | ||
- esac | ||
-fi | ||
- | ||
# Since we require POSIX threads, assume a POSIX system by default. | ||
config_path="posix" | ||
|
26 changes: 26 additions & 0 deletions
26
0_RootFS/GCCBootstrap@5/bundled/patches/musl_disable_tls.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- a/gcc/libgomp/configure.tgt 2020-09-30 21:05:24.538481160 -0500 | ||
+++ b/gcc/libgomp/configure.tgt 2020-09-30 21:05:34.669353797 -0500 | ||
@@ -10,23 +10,6 @@ | ||
# XCFLAGS Add extra compile flags to use. | ||
# XLDFLAGS Add extra link flags to use. | ||
|
||
-# Optimize TLS usage by avoiding the overhead of dynamic allocation. | ||
-if test $gcc_cv_have_tls = yes ; then | ||
- case "${target}" in | ||
- | ||
- *-*-k*bsd*-gnu*) | ||
- ;; | ||
- | ||
- *-*-linux* | *-*-gnu*) | ||
- XCFLAGS="${XCFLAGS} -ftls-model=initial-exec" | ||
- ;; | ||
- | ||
- *-*-rtems*) | ||
- XCFLAGS="${XCFLAGS} -ftls-model=local-exec" | ||
- ;; | ||
- esac | ||
-fi | ||
- | ||
# Since we require POSIX threads, assume a POSIX system by default. | ||
config_path="posix" | ||
|
26 changes: 26 additions & 0 deletions
26
0_RootFS/GCCBootstrap@6/bundled/patches/musl_disable_tls.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- a/gcc/libgomp/configure.tgt 2020-09-30 21:02:37.562580331 -0500 | ||
+++ b/gcc/libgomp/configure.tgt 2020-09-30 21:02:51.535404669 -0500 | ||
@@ -10,23 +10,6 @@ | ||
# XCFLAGS Add extra compile flags to use. | ||
# XLDFLAGS Add extra link flags to use. | ||
|
||
-# Optimize TLS usage by avoiding the overhead of dynamic allocation. | ||
-if test $gcc_cv_have_tls = yes ; then | ||
- case "${target}" in | ||
- | ||
- *-*-k*bsd*-gnu*) | ||
- ;; | ||
- | ||
- *-*-linux* | *-*-gnu*) | ||
- XCFLAGS="${XCFLAGS} -ftls-model=initial-exec" | ||
- ;; | ||
- | ||
- *-*-rtems*) | ||
- XCFLAGS="${XCFLAGS} -ftls-model=local-exec" | ||
- ;; | ||
- esac | ||
-fi | ||
- | ||
# Since we require POSIX threads, assume a POSIX system by default. | ||
config_path="posix" | ||
|
26 changes: 26 additions & 0 deletions
26
0_RootFS/GCCBootstrap@7/bundled/patches/musl_disable_tls.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- a/gcc/libgomp/configure.tgt 2020-09-30 21:03:36.980833342 -0500 | ||
+++ b/gcc/libgomp/configure.tgt 2020-09-30 21:03:50.471663740 -0500 | ||
@@ -10,23 +10,6 @@ | ||
# XCFLAGS Add extra compile flags to use. | ||
# XLDFLAGS Add extra link flags to use. | ||
|
||
-# Optimize TLS usage by avoiding the overhead of dynamic allocation. | ||
-if test $gcc_cv_have_tls = yes ; then | ||
- case "${target}" in | ||
- | ||
- *-*-k*bsd*-gnu*) | ||
- ;; | ||
- | ||
- *-*-linux* | *-*-gnu*) | ||
- XCFLAGS="${XCFLAGS} -ftls-model=initial-exec" | ||
- ;; | ||
- | ||
- *-*-rtems*) | ||
- XCFLAGS="${XCFLAGS} -ftls-model=local-exec" | ||
- ;; | ||
- esac | ||
-fi | ||
- | ||
# Since we require POSIX threads, assume a POSIX system by default. | ||
config_path="posix" | ||
|
26 changes: 26 additions & 0 deletions
26
0_RootFS/GCCBootstrap@8/bundled/patches/musl_disable_tls.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- a/gcc/libgomp/configure.tgt 2020-09-30 21:06:46.507450670 -0500 | ||
+++ b/gcc/libgomp/configure.tgt 2020-09-30 21:06:56.086330247 -0500 | ||
@@ -10,23 +10,6 @@ | ||
# XCFLAGS Add extra compile flags to use. | ||
# XLDFLAGS Add extra link flags to use. | ||
|
||
-# Optimize TLS usage by avoiding the overhead of dynamic allocation. | ||
-if test $gcc_cv_have_tls = yes ; then | ||
- case "${target}" in | ||
- | ||
- *-*-k*bsd*-gnu*) | ||
- ;; | ||
- | ||
- *-*-linux* | *-*-gnu*) | ||
- XCFLAGS="${XCFLAGS} -ftls-model=initial-exec" | ||
- ;; | ||
- | ||
- *-*-rtems*) | ||
- XCFLAGS="${XCFLAGS} -ftls-model=local-exec" | ||
- ;; | ||
- esac | ||
-fi | ||
- | ||
# Since we require POSIX threads, assume a POSIX system by default. | ||
config_path="posix" | ||
|
26 changes: 26 additions & 0 deletions
26
0_RootFS/GCCBootstrap@9/bundled/patches/musl_disable_tls.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- a/gcc/libgomp/configure.tgt 2020-09-30 21:07:34.427848229 -0500 | ||
+++ b/gcc/libgomp/configure.tgt 2020-09-30 21:07:49.426659669 -0500 | ||
@@ -10,23 +10,6 @@ | ||
# XCFLAGS Add extra compile flags to use. | ||
# XLDFLAGS Add extra link flags to use. | ||
|
||
-# Optimize TLS usage by avoiding the overhead of dynamic allocation. | ||
-if test $gcc_cv_have_tls = yes ; then | ||
- case "${target}" in | ||
- | ||
- *-*-k*bsd*-gnu*) | ||
- ;; | ||
- | ||
- *-*-linux* | *-*-gnu*) | ||
- XCFLAGS="${XCFLAGS} -ftls-model=initial-exec -DUSING_INITIAL_EXEC_TLS" | ||
- ;; | ||
- | ||
- *-*-rtems*) | ||
- XCFLAGS="${XCFLAGS} -ftls-model=local-exec" | ||
- ;; | ||
- esac | ||
-fi | ||
- | ||
# Since we require POSIX threads, assume a POSIX system by default. | ||
config_path="posix" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters