Some fixes to make patched GCC+binutils build cleanly

This commit is contained in:
Thomas Oltmann 2026-01-14 20:54:40 +01:00
parent e19eecf647
commit 91dd381715
3 changed files with 16 additions and 4 deletions

View file

@ -85,3 +85,14 @@ diff -Naur -x Makefile.in -x aclocal.m4 binutils-2.37-orig/ld/emulparams/elf_x86
+++ binutils-2.37/ld/emulparams/elf_x86_64_karlos.sh 2021-09-17 21:50:15.081410176 +0200 +++ binutils-2.37/ld/emulparams/elf_x86_64_karlos.sh 2021-09-17 21:50:15.081410176 +0200
@@ -0,0 +1 @@ @@ -0,0 +1 @@
+. ${srcdir}/emulparams/elf_x86_64.sh +. ${srcdir}/emulparams/elf_x86_64.sh
diff -Naur -x aclocal.m4 binutils-2.37-orig/ld/Makefile.in binutils-2.37/ld/Makefile.in
--- binutils-2.37-orig/ld/Makefile.in 1970-01-01 01:00:00.000000000 +0100
+++ binutils-2.37/ld/Makefile.in 2021-09-17 21:50:15.081410176 +0200
@@ -944,6 +944,7 @@
eelf_x86_64.c \
eelf_x86_64_cloudabi.c \
eelf_x86_64_fbsd.c \
+ eelf_x86_64_karlos.c \
eelf_x86_64_sol2.c \
ehppa64linux.c \
ei386pep.c \

View file

@ -6,5 +6,5 @@ cd binutils-2.37-build
--target="$TARGET" --prefix="$PREFIX" \ --target="$TARGET" --prefix="$PREFIX" \
--disable-nls --disable-werror \ --disable-nls --disable-werror \
--with-sysroot="$SYSROOT" --with-sysroot="$SYSROOT"
make "$MAKEFLAGS" make
make install #make install

View file

@ -6,8 +6,9 @@ cd gcc-11.2.0-build
--target="$TARGET" --prefix="$PREFIX" \ --target="$TARGET" --prefix="$PREFIX" \
--disable-nls \ --disable-nls \
--enable-languages=c \ --enable-languages=c \
--disable-gcov \
--with-sysroot="$SYSROOT" --with-sysroot="$SYSROOT"
make "$MAKEFLAGS" all-gcc make "$MAKEFLAGS" all-gcc
make "$MAKEFLAGS" all-target-libgcc make "$MAKEFLAGS" all-target-libgcc
make install-gcc #make install-gcc
make install-target-libgcc #make install-target-libgcc