[RSB 3/3] 6/7: Use TLS in Newlib

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jul 13 09:24:29 UTC 2022


Use the --enable-newlib-reent-thread-local (_REENT_THREAD_LOCAL_STORAGE) Newlib
configuration option on all targets which support thread-local storage.

Update #4560.
---
 rtems/config/6/rtems-aarch64.bset    | 1 +
 rtems/config/6/rtems-arm.bset        | 1 +
 rtems/config/6/rtems-i386.bset       | 1 +
 rtems/config/6/rtems-m68k.bset       | 1 +
 rtems/config/6/rtems-microblaze.bset | 1 +
 rtems/config/6/rtems-nios2.bset      | 1 +
 rtems/config/6/rtems-powerpc.bset    | 1 +
 rtems/config/6/rtems-riscv.bset      | 1 +
 rtems/config/6/rtems-sparc.bset      | 1 +
 rtems/config/6/rtems-x86_64.bset     | 1 +
 rtems/config/7/rtems-aarch64.bset    | 1 +
 rtems/config/7/rtems-arm.bset        | 1 +
 rtems/config/7/rtems-i386.bset       | 1 +
 rtems/config/7/rtems-m68k.bset       | 1 +
 rtems/config/7/rtems-microblaze.bset | 1 +
 rtems/config/7/rtems-nios2.bset      | 1 +
 rtems/config/7/rtems-powerpc.bset    | 1 +
 rtems/config/7/rtems-riscv.bset      | 1 +
 rtems/config/7/rtems-sparc.bset      | 1 +
 rtems/config/7/rtems-x86_64.bset     | 1 +
 20 files changed, 20 insertions(+)

diff --git a/rtems/config/6/rtems-aarch64.bset b/rtems/config/6/rtems-aarch64.bset
index e3c91af..99051eb 100644
--- a/rtems/config/6/rtems-aarch64.bset
+++ b/rtems/config/6/rtems-aarch64.bset
@@ -1,4 +1,5 @@
 %define release 1
 %define rtems_arch aarch64
 %define with_libgomp
+%define with_newlib_tls
 %include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-arm.bset b/rtems/config/6/rtems-arm.bset
index 425d66b..c4e6613 100644
--- a/rtems/config/6/rtems-arm.bset
+++ b/rtems/config/6/rtems-arm.bset
@@ -1,4 +1,5 @@
 %define release 1
 %define rtems_arch arm
 %define with_libgomp
+%define with_newlib_tls
 %include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-i386.bset b/rtems/config/6/rtems-i386.bset
index a27319d..99a6d98 100644
--- a/rtems/config/6/rtems-i386.bset
+++ b/rtems/config/6/rtems-i386.bset
@@ -1,4 +1,5 @@
 %define release 1
 %define rtems_arch i386
 %define with_libgomp
+%define with_newlib_tls
 %include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-m68k.bset b/rtems/config/6/rtems-m68k.bset
index 0932d20..a8e758b 100644
--- a/rtems/config/6/rtems-m68k.bset
+++ b/rtems/config/6/rtems-m68k.bset
@@ -1,3 +1,4 @@
 %define release 1
 %define rtems_arch m68k
+%define with_newlib_tls
 %include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-microblaze.bset b/rtems/config/6/rtems-microblaze.bset
index ea59313..17b674e 100644
--- a/rtems/config/6/rtems-microblaze.bset
+++ b/rtems/config/6/rtems-microblaze.bset
@@ -1,5 +1,6 @@
 %define release 1
 %define rtems_arch microblaze
+%define with_newlib_tls
 
 #
 # Default tools configuration.
diff --git a/rtems/config/6/rtems-nios2.bset b/rtems/config/6/rtems-nios2.bset
index 522eff5..d45024d 100644
--- a/rtems/config/6/rtems-nios2.bset
+++ b/rtems/config/6/rtems-nios2.bset
@@ -1,3 +1,4 @@
 %define release 1
 %define rtems_arch nios2
+%define with_newlib_tls
 %include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-powerpc.bset b/rtems/config/6/rtems-powerpc.bset
index c19327a..3309057 100644
--- a/rtems/config/6/rtems-powerpc.bset
+++ b/rtems/config/6/rtems-powerpc.bset
@@ -1,4 +1,5 @@
 %define release 1
 %define rtems_arch powerpc
 %define with_libgomp
+%define with_newlib_tls
 %include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-riscv.bset b/rtems/config/6/rtems-riscv.bset
index ad7cb5b..ec1ab3a 100644
--- a/rtems/config/6/rtems-riscv.bset
+++ b/rtems/config/6/rtems-riscv.bset
@@ -1,5 +1,6 @@
 %define release 1
 %define rtems_arch riscv
 %define with_libgomp
+%define with_newlib_tls
 %include 6/rtems-default.bset
 devel/sis-2-1
diff --git a/rtems/config/6/rtems-sparc.bset b/rtems/config/6/rtems-sparc.bset
index 48d152d..809d47e 100644
--- a/rtems/config/6/rtems-sparc.bset
+++ b/rtems/config/6/rtems-sparc.bset
@@ -1,6 +1,7 @@
 %define release 1
 %define rtems_arch sparc
 %define with_libgomp
+%define with_newlib_tls
 %define gdb-disable-sim 1
 %include 6/rtems-default.bset
 devel/sis-2-1
diff --git a/rtems/config/6/rtems-x86_64.bset b/rtems/config/6/rtems-x86_64.bset
index 088c9f5..1f2cefb 100644
--- a/rtems/config/6/rtems-x86_64.bset
+++ b/rtems/config/6/rtems-x86_64.bset
@@ -1,6 +1,7 @@
 %define release 1
 %define rtems_arch x86_64
 %define with_libgomp
+%define with_newlib_tls
 %define grub2_platform efi
 %define grub2_target x86_64
 
diff --git a/rtems/config/7/rtems-aarch64.bset b/rtems/config/7/rtems-aarch64.bset
index fc794aa..d899dc7 100644
--- a/rtems/config/7/rtems-aarch64.bset
+++ b/rtems/config/7/rtems-aarch64.bset
@@ -1,4 +1,5 @@
 %define release 1
 %define rtems_arch aarch64
 %define with_libgomp
+%define with_newlib_tls
 %include 7/rtems-default.bset
diff --git a/rtems/config/7/rtems-arm.bset b/rtems/config/7/rtems-arm.bset
index 7518812..a9bd612 100644
--- a/rtems/config/7/rtems-arm.bset
+++ b/rtems/config/7/rtems-arm.bset
@@ -1,4 +1,5 @@
 %define release 1
 %define rtems_arch arm
 %define with_libgomp
+%define with_newlib_tls
 %include 7/rtems-default.bset
diff --git a/rtems/config/7/rtems-i386.bset b/rtems/config/7/rtems-i386.bset
index ae5340a..9538e69 100644
--- a/rtems/config/7/rtems-i386.bset
+++ b/rtems/config/7/rtems-i386.bset
@@ -1,4 +1,5 @@
 %define release 1
 %define rtems_arch i386
 %define with_libgomp
+%define with_newlib_tls
 %include 7/rtems-default.bset
diff --git a/rtems/config/7/rtems-m68k.bset b/rtems/config/7/rtems-m68k.bset
index c628971..497f42a 100644
--- a/rtems/config/7/rtems-m68k.bset
+++ b/rtems/config/7/rtems-m68k.bset
@@ -1,3 +1,4 @@
 %define release 1
 %define rtems_arch m68k
+%define with_newlib_tls
 %include 7/rtems-default.bset
diff --git a/rtems/config/7/rtems-microblaze.bset b/rtems/config/7/rtems-microblaze.bset
index c8751e6..bc8d8be 100644
--- a/rtems/config/7/rtems-microblaze.bset
+++ b/rtems/config/7/rtems-microblaze.bset
@@ -1,3 +1,4 @@
 %define release 1
 %define rtems_arch microblaze
+%define with_newlib_tls
 %include 7/rtems-default.bset
diff --git a/rtems/config/7/rtems-nios2.bset b/rtems/config/7/rtems-nios2.bset
index 735497f..a56aaeb 100644
--- a/rtems/config/7/rtems-nios2.bset
+++ b/rtems/config/7/rtems-nios2.bset
@@ -1,3 +1,4 @@
 %define release 1
 %define rtems_arch nios2
+%define with_newlib_tls
 %include 7/rtems-default.bset
diff --git a/rtems/config/7/rtems-powerpc.bset b/rtems/config/7/rtems-powerpc.bset
index 3da8841..4438550 100644
--- a/rtems/config/7/rtems-powerpc.bset
+++ b/rtems/config/7/rtems-powerpc.bset
@@ -1,4 +1,5 @@
 %define release 1
 %define rtems_arch powerpc
 %define with_libgomp
+%define with_newlib_tls
 %include 7/rtems-default.bset
diff --git a/rtems/config/7/rtems-riscv.bset b/rtems/config/7/rtems-riscv.bset
index 441203e..3f81152 100644
--- a/rtems/config/7/rtems-riscv.bset
+++ b/rtems/config/7/rtems-riscv.bset
@@ -1,4 +1,5 @@
 %define release 1
 %define rtems_arch riscv
 %define with_libgomp
+%define with_newlib_tls
 %include 7/rtems-default.bset
diff --git a/rtems/config/7/rtems-sparc.bset b/rtems/config/7/rtems-sparc.bset
index a147b8f..3c0d8f0 100644
--- a/rtems/config/7/rtems-sparc.bset
+++ b/rtems/config/7/rtems-sparc.bset
@@ -1,6 +1,7 @@
 %define release 1
 %define rtems_arch sparc
 %define with_libgomp
+%define with_newlib_tls
 %define gdb-disable-sim 1
 %include 7/rtems-default.bset
 devel/sis-2-1
diff --git a/rtems/config/7/rtems-x86_64.bset b/rtems/config/7/rtems-x86_64.bset
index 6bfe7fe..1b930b8 100644
--- a/rtems/config/7/rtems-x86_64.bset
+++ b/rtems/config/7/rtems-x86_64.bset
@@ -1,4 +1,5 @@
 %define release 1
 %define rtems_arch x86_64
 %define with_libgomp
+%define with_newlib_tls
 %include 7/rtems-default.bset
-- 
2.35.3



More information about the devel mailing list