[PATCH] 5: Update Newlib

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Oct 24 12:07:47 UTC 2018


Fix posix_memalign() attributes.

Use -fdata-sections and -ffunction-sections to build Newlib.
---
 rtems/config/5/rtems-default.bset                  |  2 +-
 rtems/config/5/rtems-epiphany.bset                 |  2 +-
 rtems/config/5/rtems-m32c.bset                     |  2 +-
 rtems/config/5/rtems-or1k.bset                     |  2 +-
 rtems/config/5/rtems-riscv.bset                    |  2 +-
 ...ib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg | 10 +++++++
 ...ib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg | 10 +++++++
 ...ib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg | 29 ++++++++++++++++++
 ...ib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg | 34 ++++++++++++++++++++++
 9 files changed, 88 insertions(+), 5 deletions(-)
 create mode 100644 rtems/config/tools/rtems-gcc-4.8.3-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg
 create mode 100644 rtems/config/tools/rtems-gcc-4.9.3-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg
 create mode 100644 rtems/config/tools/rtems-gcc-62cab5089882f91865e9040672f7932ae8d09db1-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg
 create mode 100644 rtems/config/tools/rtems-gcc-7.3.0-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg

diff --git a/rtems/config/5/rtems-default.bset b/rtems/config/5/rtems-default.bset
index dd1f2b3..bdd93e9 100644
--- a/rtems/config/5/rtems-default.bset
+++ b/rtems/config/5/rtems-default.bset
@@ -18,6 +18,6 @@ devel/expat-2.1.0-1
 tools/rtems-gdb-8.0.1-1
 
 tools/rtems-binutils-2.31.1
-tools/rtems-gcc-7.3.0-newlib-5835688440fb0b23fe991a04c7e2df54ded87657
+tools/rtems-gcc-7.3.0-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b
 tools/rtems-tools-5-1
 tools/rtems-kernel-5
diff --git a/rtems/config/5/rtems-epiphany.bset b/rtems/config/5/rtems-epiphany.bset
index 249c872..a01a50d 100644
--- a/rtems/config/5/rtems-epiphany.bset
+++ b/rtems/config/5/rtems-epiphany.bset
@@ -34,6 +34,6 @@
 5/rtems-autotools
 devel/expat-2.1.0-1
 tools/rtems-binutils-2.31.1
-tools/rtems-gcc-7.3.0-newlib-5835688440fb0b23fe991a04c7e2df54ded87657
+tools/rtems-gcc-7.3.0-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b
 tools/rtems-gdb-7.8.1-1
 tools/rtems-tools-5-1
diff --git a/rtems/config/5/rtems-m32c.bset b/rtems/config/5/rtems-m32c.bset
index c6a46b7..646b2e2 100644
--- a/rtems/config/5/rtems-m32c.bset
+++ b/rtems/config/5/rtems-m32c.bset
@@ -41,6 +41,6 @@
 5/rtems-autotools
 devel/expat-2.1.0-1
 tools/rtems-binutils-2.31.1
-tools/rtems-gcc-4.8.3-newlib-5835688440fb0b23fe991a04c7e2df54ded87657
+tools/rtems-gcc-4.8.3-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b
 tools/rtems-gdb-8.0.1-1
 tools/rtems-tools-5-1
diff --git a/rtems/config/5/rtems-or1k.bset b/rtems/config/5/rtems-or1k.bset
index e76d66e..47ec7da 100644
--- a/rtems/config/5/rtems-or1k.bset
+++ b/rtems/config/5/rtems-or1k.bset
@@ -33,6 +33,6 @@
 5/rtems-autotools
 devel/expat-2.1.0-1
 tools/rtems-binutils-2.31.1
-tools/rtems-gcc-4.9.3-newlib-5835688440fb0b23fe991a04c7e2df54ded87657
+tools/rtems-gcc-4.9.3-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b
 tools/rtems-tools-5-1
 tools/rtems-gdb-7.11-2
diff --git a/rtems/config/5/rtems-riscv.bset b/rtems/config/5/rtems-riscv.bset
index a4dc87e..f55d021 100644
--- a/rtems/config/5/rtems-riscv.bset
+++ b/rtems/config/5/rtems-riscv.bset
@@ -11,7 +11,7 @@
 
 devel/expat-2.1.0-1
 tools/rtems-binutils-906c6f2c54425f18eccb30e3ae54cbe620f0fe86
-tools/rtems-gcc-62cab5089882f91865e9040672f7932ae8d09db1-newlib-5835688440fb0b23fe991a04c7e2df54ded87657
+tools/rtems-gcc-62cab5089882f91865e9040672f7932ae8d09db1-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b
 tools/rtems-gdb-ce73f310150418a9a1625ab60a527d959096a9e2
 tools/rtems-tools-5-1
 tools/rtems-kernel-5
diff --git a/rtems/config/tools/rtems-gcc-4.8.3-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg b/rtems/config/tools/rtems-gcc-4.8.3-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg
new file mode 100644
index 0000000..09e2565
--- /dev/null
+++ b/rtems/config/tools/rtems-gcc-4.8.3-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg
@@ -0,0 +1,10 @@
+%define gcc_version 4.8.3
+%hash sha512 gcc-%{gcc_version}.tar.bz2 2b40d231e8445f9c1654137df509f09ce1187b475138ca7f648f710d922a1718f740b2d8a37c26e16b5e27900c60358be98229ae884a6f1f70e9df44ad24d02b
+
+%define newlib_version 08eab6396f678cf5e5968acaed0bae9fd129983b
+%define newlib_external 1
+%define newlib_expand_name sourceware-mirror-newlib-cygwin-%{newlib_version}
+%source set newlib --rsb-file=newlib-%{newlib_version}.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-newlib-cygwin/tar.gz/%{newlib_version}
+%hash sha512 newlib-%{newlib_version}.tar.gz c156de6e120ffa9f96c0ce9ea6fa84444d4be9ac12a5ce3b14bc9acbae9a882f49b055d1150dfa89fa50d9749e8da608694ca4ce24c43326e274a044ecdbd66c
+
+%include tools/rtems-gcc-4.8-newlib-2.2.0-1.cfg
diff --git a/rtems/config/tools/rtems-gcc-4.9.3-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg b/rtems/config/tools/rtems-gcc-4.9.3-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg
new file mode 100644
index 0000000..9ecd6e2
--- /dev/null
+++ b/rtems/config/tools/rtems-gcc-4.9.3-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg
@@ -0,0 +1,10 @@
+%define gcc_version 4.9.3
+%hash sha512 gcc-%{gcc_version}.tar.bz2 9ac57377a6975fc7adac704ec81355262b9f537def6955576753b87715470a20ee6a2a3144a79cc8fcba3443f7b44c7337d79d704b522d053f54f79aa6b442df
+
+%define newlib_version 08eab6396f678cf5e5968acaed0bae9fd129983b
+%define newlib_external 1
+%define newlib_expand_name sourceware-mirror-newlib-cygwin-%{newlib_version}
+%source set newlib --rsb-file=newlib-%{newlib_version}.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-newlib-cygwin/tar.gz/%{newlib_version}
+%hash sha512 newlib-%{newlib_version}.tar.gz c156de6e120ffa9f96c0ce9ea6fa84444d4be9ac12a5ce3b14bc9acbae9a882f49b055d1150dfa89fa50d9749e8da608694ca4ce24c43326e274a044ecdbd66c
+
+%include tools/rtems-gcc-4.9-newlib-2.2.0-1.cfg
diff --git a/rtems/config/tools/rtems-gcc-62cab5089882f91865e9040672f7932ae8d09db1-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg b/rtems/config/tools/rtems-gcc-62cab5089882f91865e9040672f7932ae8d09db1-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg
new file mode 100644
index 0000000..70967f8
--- /dev/null
+++ b/rtems/config/tools/rtems-gcc-62cab5089882f91865e9040672f7932ae8d09db1-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg
@@ -0,0 +1,29 @@
+%include %{_configdir}/checks.cfg
+%include %{_configdir}/base.cfg
+
+%define gcc_version 62cab5089882f91865e9040672f7932ae8d09db1
+%define gcc_external 1
+%define gcc_expand_name gnu-mirror-gcc-%{gcc_version}
+%source set gcc --rsb-file=%{gcc_expand_name}.tar.gz https://codeload.github.com/RTEMS/gnu-mirror-gcc/tar.gz/%{gcc_version}
+%hash sha512 %{gcc_expand_name}.tar.gz bae48539c8f45f1b8c1876838232b9048d33dd01b321f4159a8321328590c52b343f70559e1549d55cf9ab71fd82ebfda94c42027cbabe9634fe18a1da89b492
+
+%define newlib_version 08eab6396f678cf5e5968acaed0bae9fd129983b
+%define newlib_external 1
+%define newlib_expand_name sourceware-mirror-newlib-cygwin-%{newlib_version}
+%source set newlib --rsb-file=newlib-%{newlib_version}.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-newlib-cygwin/tar.gz/%{newlib_version}
+%hash sha512 newlib-%{newlib_version}.tar.gz c156de6e120ffa9f96c0ce9ea6fa84444d4be9ac12a5ce3b14bc9acbae9a882f49b055d1150dfa89fa50d9749e8da608694ca4ce24c43326e274a044ecdbd66c
+
+%define mpfr_version 3.1.4
+%hash sha512 mpfr-%{mpfr_version}.tar.bz2 51066066ff2c12ed2198605ecf68846b0c96b548adafa5b80e0c786d0df488411a5e8973358fce7192dc977ad4e68414cf14500e3c39746de62465eb145bb819
+
+%define mpc_version 1.0.3
+%hash sha512 mpc-%{mpc_version}.tar.gz 0028b76df130720c1fad7de937a0d041224806ce5ef76589f19c7b49d956071a683e2f20d154c192a231e69756b19e48208f2889b0c13950ceb7b3cfaf059a43
+
+%define gmp_version 6.1.0
+%hash sha512 gmp-%{gmp_version}.tar.bz2 3c82aeab9c1596d4da8afac2eec38e429e84f3211e1a572cf8fd2b546493c44c039b922a1133eaaa48bd7f3e11dbe795a384e21ed95cbe3ecc58d7ac02246117
+
+%define with_threads 1
+%define with_plugin 0
+%define with_iconv 1
+
+%include %{_configdir}/gcc-7.2-1.cfg
diff --git a/rtems/config/tools/rtems-gcc-7.3.0-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg b/rtems/config/tools/rtems-gcc-7.3.0-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg
new file mode 100644
index 0000000..ab0e92c
--- /dev/null
+++ b/rtems/config/tools/rtems-gcc-7.3.0-newlib-08eab6396f678cf5e5968acaed0bae9fd129983b.cfg
@@ -0,0 +1,34 @@
+%include %{_configdir}/checks.cfg
+%include %{_configdir}/base.cfg
+
+#
+# FreeBSD specific fix for MIPS
+#
+%if %{_build_os} == freebsd || %{_build_os} == darwin
+ %patch add gcc --rsb-file=freebsd-libgcc-sed-fix.patch -p0 https://gcc.gnu.org/bugzilla/attachment.cgi?id=41380
+ %hash  sha256 freebsd-libgcc-sed-fix.patch 8a11bd619c2e55466688e328da00b387d02395c1e8ff4a99225152387a1e60a4
+%endif
+
+%define gcc_version 7.3.0
+%hash sha512 gcc-%{gcc_version}.tar.xz ad41a7e4584e40e92cdf860bc0288500fbaf5dfb7e8c3fcabe9eba809c87bcfa85b46c19c19921b0cdf6d05483faede8287bb9ea120c0d1559449a70e602c8d4
+
+%define newlib_version 08eab6396f678cf5e5968acaed0bae9fd129983b
+%define newlib_external 1
+%define newlib_expand_name sourceware-mirror-newlib-cygwin-%{newlib_version}
+%source set newlib --rsb-file=newlib-%{newlib_version}.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-newlib-cygwin/tar.gz/%{newlib_version}
+%hash sha512 newlib-%{newlib_version}.tar.gz c156de6e120ffa9f96c0ce9ea6fa84444d4be9ac12a5ce3b14bc9acbae9a882f49b055d1150dfa89fa50d9749e8da608694ca4ce24c43326e274a044ecdbd66c
+
+%define mpfr_version 3.1.4
+%hash sha512 mpfr-%{mpfr_version}.tar.bz2 51066066ff2c12ed2198605ecf68846b0c96b548adafa5b80e0c786d0df488411a5e8973358fce7192dc977ad4e68414cf14500e3c39746de62465eb145bb819
+
+%define mpc_version 1.0.3
+%hash sha512 mpc-%{mpc_version}.tar.gz 0028b76df130720c1fad7de937a0d041224806ce5ef76589f19c7b49d956071a683e2f20d154c192a231e69756b19e48208f2889b0c13950ceb7b3cfaf059a43
+
+%define gmp_version 6.1.0
+%hash sha512 gmp-%{gmp_version}.tar.bz2 3c82aeab9c1596d4da8afac2eec38e429e84f3211e1a572cf8fd2b546493c44c039b922a1133eaaa48bd7f3e11dbe795a384e21ed95cbe3ecc58d7ac02246117
+
+%define with_threads 1
+%define with_plugin  0
+%define with_iconv   1
+
+%include %{_configdir}/gcc-7.2-1.cfg
-- 
2.16.4




More information about the devel mailing list