From 91dd381715e3451b599d45827eda0016c181e3bc Mon Sep 17 00:00:00 2001 From: Thomas Oltmann Date: Wed, 14 Jan 2026 20:54:40 +0100 Subject: [PATCH] Some fixes to make patched GCC+binutils build cleanly --- binutils-karlos-target-2.37.diff | 11 +++++++++++ build-binutils.sh | 4 ++-- build-gcc.sh | 5 +++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/binutils-karlos-target-2.37.diff b/binutils-karlos-target-2.37.diff index 416110e..cf2898e 100644 --- a/binutils-karlos-target-2.37.diff +++ b/binutils-karlos-target-2.37.diff @@ -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 @@ -0,0 +1 @@ +. ${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 \ diff --git a/build-binutils.sh b/build-binutils.sh index c57f196..9e8c781 100755 --- a/build-binutils.sh +++ b/build-binutils.sh @@ -6,5 +6,5 @@ cd binutils-2.37-build --target="$TARGET" --prefix="$PREFIX" \ --disable-nls --disable-werror \ --with-sysroot="$SYSROOT" -make "$MAKEFLAGS" -make install +make +#make install diff --git a/build-gcc.sh b/build-gcc.sh index 7c17b5f..6564aac 100755 --- a/build-gcc.sh +++ b/build-gcc.sh @@ -6,8 +6,9 @@ cd gcc-11.2.0-build --target="$TARGET" --prefix="$PREFIX" \ --disable-nls \ --enable-languages=c \ + --disable-gcov \ --with-sysroot="$SYSROOT" make "$MAKEFLAGS" all-gcc make "$MAKEFLAGS" all-target-libgcc -make install-gcc -make install-target-libgcc +#make install-gcc +#make install-target-libgcc