| Newsgroups |
gmane.linux.lfs.book |
| Message-ID |
<[email protected]> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch xry111/mips64el
in repository lfs.
commit e5c36a3456ef665cccd7b1be11d64ab2ab737d40
Author: Xi Ruoyao <[email protected]>
AuthorDate: Fri Feb 21 04:53:40 2025 +0800
mips64el: gcc: Fix an issue causing runtime failures with Glibc >= 2.41
The issue causes some units "requiring executable stack," notably
libgcc_s.so.1. Glibc does not allow dlopen()ing such an unit now.
---
chapter05/gcc-pass1.xml | 8 ++++++++
chapter06/gcc-pass2.xml | 6 ++++++
chapter08/gcc.xml | 5 +++++
3 files changed, 19 insertions(+)
diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml
index cf305fdb0..affb97a1d 100644
--- a/chapter05/gcc-pass1.xml
+++ b/chapter05/gcc-pass1.xml
@@ -43,6 +43,14 @@
<sect2 role="installation">
<title>Installation of Cross GCC</title>
+ <!-- https://gcc.gnu.org/r15-3205
+ If unfixed it'll make libgcc_s.so.1 requiring execstack and
+ blow up Glibc >= 2.41 tests. -->
+ <para>At first, fix an issue causing runtime failures with Glibc-2.41 or
+ newer:</para>
+
+ <screen><userinput remap="pre">sed '/mips16.S/s|^//||' -i libgcc/config/mips/lib1funcs.S</userinput></screen>
+
<para>GCC requires the GMP, MPFR and MPC packages. As these packages may
not be included in your host distribution, they will be built with
GCC. Unpack each package into the GCC source directory and rename the
diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml
index 6ed318bee..f316c8208 100644
--- a/chapter06/gcc-pass2.xml
+++ b/chapter06/gcc-pass2.xml
@@ -47,6 +47,12 @@
<screen><userinput remap="pre">patch -Np1 -i ../&gcc-upstream-fixes-patch;</userinput></screen>
-->
+
+ <para>Again, fix the issue causing runtime failures with Glibc-2.41 or
+ newer:</para>
+
+ <screen><userinput remap="pre">sed '/mips16.S/s|^//||' -i libgcc/config/mips/lib1funcs.S</userinput></screen>
+
<para>As in the first build of GCC, the GMP, MPFR, and MPC packages are
required. Unpack the tarballs and move them into the required directories:</para>
diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml
index d4476aab0..4d86fdf1d 100644
--- a/chapter08/gcc.xml
+++ b/chapter08/gcc.xml
@@ -41,6 +41,11 @@
<sect2 role="installation">
<title>Installation of GCC</title>
+ <para>Again, fix the issue causing runtime failures with Glibc-2.41 or
+ newer:</para>
+
+ <screen><userinput remap="pre">sed '/mips16.S/s|^//||' -i libgcc/config/mips/lib1funcs.S</userinput></screen>
+
<para>For building on 64-bit MIPS, change the default directory name for
64-bit libraries to <quote>lib</quote>:</para>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
--
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page