diff options
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/binutils/patches/2.44/lm32.patch | 24 | ||||
-rw-r--r-- | toolchain/elf2flt/Makefile | 4 | ||||
-rw-r--r-- | toolchain/expat/Makefile | 1 | ||||
-rw-r--r-- | toolchain/gcc/Makefile | 2 | ||||
-rw-r--r-- | toolchain/gcc/patches/14.2.0/add-crtreloc.frv | 12 |
5 files changed, 42 insertions, 1 deletions
diff --git a/toolchain/binutils/patches/2.44/lm32.patch b/toolchain/binutils/patches/2.44/lm32.patch new file mode 100644 index 000000000..dcbb0d541 --- /dev/null +++ b/toolchain/binutils/patches/2.44/lm32.patch @@ -0,0 +1,24 @@ +diff -Nur binutils-2.41.orig/bfd/config.bfd binutils-2.41/bfd/config.bfd +--- binutils-2.41.orig/bfd/config.bfd 2023-07-03 01:00:00.000000000 +0200 ++++ binutils-2.41/bfd/config.bfd 2023-09-07 17:03:12.853045008 +0200 +@@ -803,7 +803,7 @@ + ;; + + lm32-*-*linux*) +- targ_defvec=lm32_elf32_fdpic_vec ++ targ_defvec=lm32_elf32_vec + targ_selvecs=lm32_elf32_vec + ;; + +diff -Nur binutils-2.41.orig/ld/configure.tgt binutils-2.41/ld/configure.tgt +--- binutils-2.41.orig/ld/configure.tgt 2023-07-03 01:00:00.000000000 +0200 ++++ binutils-2.41/ld/configure.tgt 2023-09-07 17:03:44.364298973 +0200 +@@ -468,7 +468,7 @@ + targ_extra_emuls="elf32iq10" + targ_extra_ofiles=ldelfgen.o + ;; +-lm32-*-*linux*) targ_emul=elf32lm32fd ++lm32-*-*linux*) targ_emul=elf32lm32 + ;; + lm32-*-*) targ_emul=elf32lm32 + targ_extra_emuls="elf32lm32fd" diff --git a/toolchain/elf2flt/Makefile b/toolchain/elf2flt/Makefile index 4177d54d7..369827404 100644 --- a/toolchain/elf2flt/Makefile +++ b/toolchain/elf2flt/Makefile @@ -46,6 +46,10 @@ ifeq ($(ADK_TOOLCHAIN_BINUTILS_2_28),y) BINUTILS_VERSION:= 2.28 BFDLIB:= libbfd.a endif +ifeq ($(ADK_TOOLCHAIN_BINUTILS_2_26),y) +BINUTILS_VERSION:= 2.26 +BFDLIB:= libbfd.a +endif $(WRKBUILD)/.configured: (cd $(WRKBUILD); PATH='${HOST_PATH}' autoreconf -vif;) diff --git a/toolchain/expat/Makefile b/toolchain/expat/Makefile index 6d1c6215b..1affc7b28 100644 --- a/toolchain/expat/Makefile +++ b/toolchain/expat/Makefile @@ -17,6 +17,7 @@ $(WRKBUILD)/.configured: --enable-static \ --disable-shared \ --without-docbook \ + --without-tests \ ); touch $@ diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index fb03e9633..af036de1a 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -399,7 +399,7 @@ $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled # remove duplicate tools, convert hardlinks to symlinks set -e; \ cd $(TOOLCHAIN_DIR)/usr/$(GNU_TARGET_NAME)/bin; \ - for app in ar as c++ g++ gcc ld ld.gold ld.bfd nm objcopy objdump ranlib strip; do \ + for app in ar as c++ g++ gcc ld ld.bfd nm objcopy objdump ranlib strip; do \ ln -sf ../../bin/$(GNU_TARGET_NAME)-$${app} $${app}; \ done; (cd $(TOOLCHAIN_DIR)/usr/bin && \ diff --git a/toolchain/gcc/patches/14.2.0/add-crtreloc.frv b/toolchain/gcc/patches/14.2.0/add-crtreloc.frv new file mode 100644 index 000000000..30de24cdc --- /dev/null +++ b/toolchain/gcc/patches/14.2.0/add-crtreloc.frv @@ -0,0 +1,12 @@ +diff -Nur gcc-8.3.0.orig/gcc/config/frv/linux.h gcc-8.3.0/gcc/config/frv/linux.h +--- gcc-8.3.0.orig/gcc/config/frv/linux.h 2018-01-03 11:03:58.000000000 +0100 ++++ gcc-8.3.0/gcc/config/frv/linux.h 2019-10-08 10:52:00.176295821 +0200 +@@ -27,7 +27,7 @@ + + #undef STARTFILE_SPEC + #define STARTFILE_SPEC \ +- "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \ ++ "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} crtreloc.o%s \ + crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}" + + #undef ENDFILE_SPEC |