summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/Makefile6
-rw-r--r--toolchain/binutils/Makefile28
-rw-r--r--toolchain/binutils/Makefile.inc98
-rw-r--r--toolchain/binutils/patches/2.20.1/newer-gcc.patch24
-rw-r--r--toolchain/binutils/patches/2.24/nds32.patch409257
-rw-r--r--toolchain/binutils/patches/2.26/0001-Relax-assertion-in-BFIN-linker-to-allow-for-discard-.patch38
-rw-r--r--toolchain/binutils/patches/2.28/lm32.patch24
-rw-r--r--toolchain/binutils/patches/2.35/crisv32.patch12
-rw-r--r--toolchain/binutils/patches/2.37/0001-i386-Allow-GOT32-relocations-against-ABS-symbols.patch47
-rw-r--r--toolchain/binutils/patches/2.37/nds32-uclibc.patch15
-rw-r--r--toolchain/binutils/patches/2.38/0001-binutils-2.38-vs.-ppc32-linux-kernel.patch55
-rw-r--r--toolchain/binutils/patches/2.38/nds32-uclibc.patch15
-rw-r--r--toolchain/binutils/patches/2.41/lm32.patch24
-rw-r--r--toolchain/binutils/patches/2.42/j2.patch584
-rw-r--r--toolchain/binutils/patches/2.42/kvx.patch29
-rw-r--r--toolchain/binutils/patches/2.44/lm32.patch24
-rw-r--r--toolchain/elf2flt/Makefile44
-rw-r--r--toolchain/elf2flt/Makefile.inc9
-rw-r--r--toolchain/elf2flt/patches/26dfb54a59c8c0106418a0c46ccb4288d9e066fd/0001-riscv32.patch42
-rw-r--r--toolchain/elf2flt/patches/26dfb54a59c8c0106418a0c46ccb4288d9e066fd/0002-lm32.patch (renamed from toolchain/elf2flt/patches/453398f917d167f8c308c8f997270c48ae8f8b12/0001-lm32.patch)52
-rw-r--r--toolchain/elf2flt/patches/26dfb54a59c8c0106418a0c46ccb4288d9e066fd/0003-sh2.patch52
-rw-r--r--toolchain/elf2flt/patches/3051fec89bbd30de6f952dc3100712feff3ca076/0001-.rofixup-fix.patch33
-rw-r--r--toolchain/elf2flt/patches/453398f917d167f8c308c8f997270c48ae8f8b12/0004-elf2flt.c-add-new-relocation-types-for-xtensa.patch188
-rw-r--r--toolchain/elf2flt/patches/453398f917d167f8c308c8f997270c48ae8f8b12/0005-elf2flt-add-riscv-64-bits-support.patch137
-rw-r--r--toolchain/elf2flt/patches/453398f917d167f8c308c8f997270c48ae8f8b12/0006-lm32.patch190
-rw-r--r--toolchain/elf2flt/patches/453398f917d167f8c308c8f997270c48ae8f8b12/0007-dont-waste-space.patch10
-rw-r--r--toolchain/elf2flt/patches/453398f917d167f8c308c8f997270c48ae8f8b12/0008-remove_BFD_VMA_FMT.patch125
-rw-r--r--toolchain/elf2flt/patches/453398f917d167f8c308c8f997270c48ae8f8b12/0009-no-build-date.patch11
-rw-r--r--toolchain/elf2flt/patches/v2021.08/0001-elf2flt-handle-binutils-2.34.patch377
-rw-r--r--toolchain/elf2flt/patches/v2021.08/0002-elf2flt.ld-reinstate-32-byte-alignment-for-.data-sec.patch81
-rw-r--r--toolchain/elf2flt/patches/v2021.08/0003-elf2flt-add-riscv-64-bits-support.patch103
-rw-r--r--toolchain/elf2flt/patches/v2021.08/0004-elf2flt-create-a-common-helper-function.patch76
-rw-r--r--toolchain/elf2flt/patches/v2021.08/0005-elf2flt-fix-fatal-error-regression-on-m68k-xtensa-ri.patch74
-rw-r--r--toolchain/elf2flt/patches/v2021.08/0006-elf2flt-xtensa-fix-text-relocations.patch25
-rw-r--r--toolchain/elf2flt/patches/v2021.08/0007-riscv32.patch56
-rw-r--r--toolchain/elf2flt/patches/v2021.08/0008-remove_BFD_VMA_FMT.patch97
-rw-r--r--toolchain/elf2flt/patches/v2021.08/0009-riscv.patch11
-rw-r--r--toolchain/elf2flt/patches/v2024.02/0001-sh2.patch43
-rw-r--r--toolchain/elf2flt/patches/v2024.02/0002-h8300.patch20
-rw-r--r--toolchain/elf2flt/patches/v2024.02/0003-riscv64-alignment.patch12
-rw-r--r--toolchain/expat/Makefile28
-rw-r--r--toolchain/expat/Makefile.inc9
-rw-r--r--toolchain/gcc/Makefile54
-rw-r--r--toolchain/gcc/Makefile.inc132
-rw-r--r--toolchain/gcc/patches/10.5.0/add-crtreloc.frv (renamed from toolchain/gcc/patches/8.3.0/add-crtreloc.frv)0
-rw-r--r--toolchain/gcc/patches/10.5.0/c6x-disable-multilib.patch (renamed from toolchain/gcc/patches/8.3.0/c6x-disable-multilib.patch)0
-rw-r--r--toolchain/gcc/patches/10.5.0/ia64-fix-libgcc.patch (renamed from toolchain/gcc/patches/7.4.0/ia64-fix-libgcc.patch)0
-rw-r--r--toolchain/gcc/patches/10.5.0/j2.patch346
-rw-r--r--toolchain/gcc/patches/10.5.0/nios2-softfp.patch (renamed from toolchain/gcc/patches/7.4.0/nios2-softfp.patch)0
-rw-r--r--toolchain/gcc/patches/11.4.0/add-crtreloc.frv12
-rw-r--r--toolchain/gcc/patches/11.4.0/c6x-disable-multilib.patch10
-rw-r--r--toolchain/gcc/patches/11.4.0/csky.patch12
-rw-r--r--toolchain/gcc/patches/11.4.0/ia64-fix-libgcc.patch (renamed from toolchain/gcc/patches/8.3.0/ia64-fix-libgcc.patch)0
-rw-r--r--toolchain/gcc/patches/11.4.0/nios2-softfp.patch (renamed from toolchain/gcc/patches/8.3.0/nios2-softfp.patch)0
-rw-r--r--toolchain/gcc/patches/12.3.0/csky.patch12
-rw-r--r--toolchain/gcc/patches/12.3.0/nios2-softfp.patch14
-rw-r--r--toolchain/gcc/patches/13.3.0/csky.patch12
-rw-r--r--toolchain/gcc/patches/13.3.0/nios2-softfp.patch14
-rw-r--r--toolchain/gcc/patches/14.2.0/add-crtreloc.frv12
-rw-r--r--toolchain/gcc/patches/14.2.0/csky.patch12
-rw-r--r--toolchain/gcc/patches/14.2.0/libgcc-fdpic-bfin.patch12
-rw-r--r--toolchain/gcc/patches/14.2.0/nios2-softfp.patch14
-rw-r--r--toolchain/gcc/patches/15.1.0/add-crtreloc.frv12
-rw-r--r--toolchain/gcc/patches/15.1.0/csky.patch12
-rw-r--r--toolchain/gcc/patches/15.1.0/libgcc-fdpic-bfin.patch12
-rw-r--r--toolchain/gcc/patches/4.5.4/gcc.lm322
-rw-r--r--toolchain/gcc/patches/4.9.3/nds32.patch383894
-rw-r--r--toolchain/gcc/patches/7.5.0/add-crtreloc.frv (renamed from toolchain/gcc/patches/7.4.0/add-crtreloc.frv)0
-rw-r--r--toolchain/gcc/patches/7.5.0/c6x-disable-multilib.patch (renamed from toolchain/gcc/patches/7.4.0/c6x-disable-multilib.patch)0
-rw-r--r--toolchain/gcc/patches/7.5.0/disable-split-stack-nothread.patch (renamed from toolchain/gcc/patches/7.4.0/disable-split-stack-nothread.patch)0
-rw-r--r--toolchain/gcc/patches/7.5.0/ia64-fix-libgcc.patch17
-rw-r--r--toolchain/gcc/patches/7.5.0/j2.patch (renamed from toolchain/gcc/patches/7.4.0/j2.patch)0
-rw-r--r--toolchain/gcc/patches/7.5.0/m68k-coldfire-pr68467.patch (renamed from toolchain/gcc/patches/7.4.0/m68k-coldfire-pr68467.patch)0
-rw-r--r--toolchain/gcc/patches/7.5.0/m68k-musl.patch (renamed from toolchain/gcc/patches/7.4.0/m68k-musl.patch)0
-rw-r--r--toolchain/gcc/patches/7.5.0/microblaze.patch (renamed from toolchain/gcc/patches/7.4.0/microblaze.patch)0
-rw-r--r--toolchain/gcc/patches/7.5.0/musl-s390x.patch (renamed from toolchain/gcc/patches/7.4.0/musl-s390x.patch)0
-rw-r--r--toolchain/gcc/patches/7.5.0/nios2-softfp.patch14
-rw-r--r--toolchain/gcc/patches/8.3.0/0001-xtensa-backport-fix-for-PR-target-90922.patch43
-rw-r--r--toolchain/gcc/patches/8.3.0/0002-xtensa-fix-PR-target-91880.patch49
-rw-r--r--toolchain/gcc/patches/8.5.0/add-crtreloc.frv12
-rw-r--r--toolchain/gcc/patches/8.5.0/c6x-disable-multilib.patch10
-rw-r--r--toolchain/gcc/patches/8.5.0/ia64-fix-libgcc.patch17
-rw-r--r--toolchain/gcc/patches/8.5.0/j2.patch (renamed from toolchain/gcc/patches/8.3.0/j2.patch)0
-rw-r--r--toolchain/gcc/patches/8.5.0/m68k-musl.patch (renamed from toolchain/gcc/patches/8.3.0/m68k-musl.patch)0
-rw-r--r--toolchain/gcc/patches/8.5.0/musl-s390x.patch (renamed from toolchain/gcc/patches/8.3.0/musl-s390x.patch)0
-rw-r--r--toolchain/gcc/patches/8.5.0/nios2-softfp.patch14
-rw-r--r--toolchain/gcc/patches/9.4.0/or1k.patch (renamed from toolchain/gcc/patches/9.2.0/or1k.patch)0
-rw-r--r--toolchain/gdb/Makefile4
-rw-r--r--toolchain/gdb/Makefile.inc35
-rw-r--r--toolchain/gdb/patches/ysato-h8300/no_extern_inline.patch32
-rw-r--r--toolchain/glibc/Makefile20
-rw-r--r--toolchain/glibc/Makefile.inc16
-rw-r--r--toolchain/glibc/patches/2.26/0001-Do-not-use-__builtin_types_compatible_p-in-C-mode-bu.patch50
-rw-r--r--toolchain/glibc/patches/2.26/0002-Do-not-use-generic-selection-in-C-mode.patch56
-rw-r--r--toolchain/glibc/patches/2.26/0003-Provide-a-C-version-of-issignaling-that-does-not-use.patch225
-rw-r--r--toolchain/glibc/patches/2.26/0004-Fix-the-C-version-of-issignaling-when-__NO_LONG_DOUB.patch47
-rw-r--r--toolchain/glibc/patches/2.26/0005-Provide-a-C-version-of-iszero-that-does-not-use-__MA.patch210
-rw-r--r--toolchain/glibc/patches/2.26/0006-Let-fpclassify-use-the-builtin-when-optimizing-for-s.patch63
-rw-r--r--toolchain/glibc/patches/2.38/0001-m68k-fix-__mpn_lshift-and-__mpn_rshift-for-non-68020.patch46
-rw-r--r--toolchain/glibc/patches/2.38/0004-ARC-Add-support-for-ARCv3-processors.patch4036
-rw-r--r--toolchain/glibc/patches/2.38/m68k-m68040.patch59
-rw-r--r--toolchain/gmp/Makefile.inc4
-rw-r--r--toolchain/linux-headers/Makefile10
-rw-r--r--toolchain/mpfr/Makefile.inc4
-rw-r--r--toolchain/musl/Makefile.inc6
-rw-r--r--toolchain/newlib/Makefile.inc13
-rw-r--r--toolchain/newlib/patches/3.1.0/fix-tooldir.patch12
-rw-r--r--toolchain/newlib/patches/git/fix-tooldir.patch12
-rw-r--r--toolchain/newlib/patches/newlib-xtensa/fix-tooldir.patch12
-rw-r--r--toolchain/uclibc-ng/Makefile33
-rw-r--r--toolchain/uclibc-ng/Makefile.inc12
-rw-r--r--toolchain/uclibc-ng/patches/1.0.50/warn-instead-of-error.patch10
112 files changed, 801059 insertions, 929 deletions
diff --git a/toolchain/Makefile b/toolchain/Makefile
index a7302bdb2..c9e17c9cc 100644
--- a/toolchain/Makefile
+++ b/toolchain/Makefile
@@ -41,9 +41,9 @@ endif
ifeq ($(ADK_TOOLCHAIN_WITH_GDB),y)
# disable gdb for some architectures
-ifeq ($(ADK_TARGET_ARCH_ARC)$(ADK_TARGET_ARCH_CR16)$(ADK_TARGET_ARCH_EPIPHANY)$(ADK_TARGET_ARCH_METAG)$(ADK_TARGET_ARCH_NDS32)$(ADK_TARGET_ARCH_OR1K),)
-TARGETS+=gdb
-GDB:=gdb-install
+ifeq ($(ADK_TARGET_ARCH_CR16)$(ADK_TARGET_ARCH_EPIPHANY)$(ADK_TARGET_ARCH_METAG)$(ADK_TARGET_ARCH_NDS32),)
+TARGETS+=expat gdb
+GDB:=expat-install gdb-install
endif
endif
diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile
index 64c75e4b5..fdedaeaff 100644
--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -18,14 +18,8 @@ else
CONFOPTS+= --disable-lto --disable-plugins
endif
-ifeq ($(ADK_TOOLCHAIN_WITH_GOLD),y)
-ifeq ($(ADK_TARGET_USE_GOLD),y)
-CONFOPTS+= --enable-gold=default
-else
-CONFOPTS+= --enable-gold
-endif
-else
-CONFOPTS+= --disable-gold
+ifeq ($(ADK_TARGET_ARCH_ARC),y)
+CONFOPTS+= --enable-lto --enable-plugins
endif
ifeq ($(ADK_TARGET_ARCH_X86_64)$(ADK_TARGET_CPU_CF),)
@@ -40,11 +34,15 @@ endif
$(WRKBUILD)/.configured:
ifeq ($(ADK_TARGET_ARCH_XTENSA),y)
+ifeq ($(ADK_TARGET_ABI),)
tar xf $(ADK_TOPDIR)/target/xtensa/overlay/xtensa_$(ADK_TARGET_CPU_TYPE).tar \
--strip-components=1 -C $(WRKSRC) binutils
+else
+ tar xf $(ADK_TOPDIR)/target/xtensa/overlay/xtensa_$(ADK_TARGET_CPU_TYPE)_$(ADK_TARGET_ABI).tar \
+ --strip-components=1 -C $(WRKSRC) binutils
+endif
endif
(cd $(WRKBUILD); PATH='$(HOST_PATH)' \
- LDFLAGS=-ldl \
MAKEINFO=true \
M4='${STAGING_HOST_DIR}/usr/bin/m4' \
$(WRKBUILD)/configure \
@@ -56,7 +54,10 @@ endif
--disable-nls \
--disable-sim \
--disable-gdb \
+ --enable-obsolete \
--disable-werror \
+ --disable-gprof \
+ --enable-gprofng=no \
--disable-install-libiberty \
${CONFOPTS} \
);
@@ -64,24 +65,19 @@ endif
touch $@
$(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
- PATH='$(HOST_PATH)' $(MAKE) ${BINUTILS_MAKEOPTS} MAKEINFO=true -C $(WRKBUILD) all
+ PATH='$(HOST_PATH)' V=1 $(MAKE) ${BINUTILS_MAKEOPTS} LDFLAGS='$(HOST_STATIC_LDFLAGS)' MAKEINFO=true -C $(WRKBUILD) all
touch $@
$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
PATH='$(HOST_PATH)' $(MAKE) MAKEINFO=true -C $(WRKBUILD) install
-ifeq ($(ADK_TARGET_ARCH_H8300)$(ADK_TARGET_ARCH_NDS32)$(ADK_TARGET_ARCH_SH),y)
+ifeq ($(ADK_TARGET_ARCH_KVX)$(ADK_TARGET_ARCH_H8300)$(ADK_TARGET_ARCH_NDS32)$(ADK_TARGET_ARCH_SH),y)
$(INSTALL_DIR) $(STAGING_TARGET_DIR)/usr/lib/ldscripts
$(CP) $(WRKBUILD)/ld/ldscripts/* $(STAGING_TARGET_DIR)/usr/lib/ldscripts/
endif
-ifeq ($(ADK_TARGET_USE_GOLD),y)
- (cd $(TOOLCHAIN_DIR)/usr/bin && \
- ln -sf $(GNU_TARGET_NAME)-ld.gold $(GNU_TARGET_NAME)-ld)
-else
ifeq (ADK_TOOLCHAIN_BINUTILS_AVR32),)
(cd $(TOOLCHAIN_DIR)/usr/bin && \
ln -sf $(GNU_TARGET_NAME)-ld.bfd $(GNU_TARGET_NAME)-ld)
endif
-endif
touch $@
include ${ADK_TOPDIR}/mk/toolchain.mk
diff --git a/toolchain/binutils/Makefile.inc b/toolchain/binutils/Makefile.inc
index 649937f7a..af6479f15 100644
--- a/toolchain/binutils/Makefile.inc
+++ b/toolchain/binutils/Makefile.inc