From 1e91020d5c2fcdd0995713e95c7b2fc02fa0f5af Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Tue, 29 Apr 2025 01:02:33 +0100 Subject: [PATCH] devkitPPC: update binutils to 2.44 --- dkppc/patches/binutils-2.44.patch | 26 ++++++++++++++++++++++++++ select_toolchain.sh | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 dkppc/patches/binutils-2.44.patch diff --git a/dkppc/patches/binutils-2.44.patch b/dkppc/patches/binutils-2.44.patch new file mode 100644 index 0000000..dade09c --- /dev/null +++ b/dkppc/patches/binutils-2.44.patch @@ -0,0 +1,26 @@ +diff --git a/ld/emulparams/elf32ppccommon.sh b/ld/emulparams/elf32ppccommon.sh +index da892988f5d..6b8efb9bbdb 100644 +--- a/ld/emulparams/elf32ppccommon.sh ++++ b/ld/emulparams/elf32ppccommon.sh +@@ -23,7 +23,7 @@ else + unset SBSS_START_SYMBOLS + unset SBSS_END_SYMBOLS + fi +-OTHER_END_SYMBOLS="${CREATE_SHLIB+PROVIDE (}__end = .${CREATE_SHLIB+)};" ++OTHER_END_SYMBOLS="${CREATE_SHLIB+PROVIDE (}__end = .${CREATE_SHLIB+)};${CREATE_SHLIB+PROVIDE (}__end__ = .${CREATE_SHLIB+)};" + OTHER_RELRO_SECTIONS=" + .fixup ${RELOCATING-0} : { *(.fixup) } + .got1 ${RELOCATING-0} : { *(.got1) } +diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c +index e55bfe846cd..f160e290bce 100644 +--- a/opcodes/ppc-opc.c ++++ b/opcodes/ppc-opc.c +@@ -4988,7 +4988,7 @@ const unsigned int num_powerpc_operands = ARRAY_SIZE (powerpc_operands); + #define MFDEC2 (PPC_OPCODE_PPC | PPC_OPCODE_601 | PPC_OPCODE_BOOKE \ + | PPC_OPCODE_TITAN) + #define BOOKE PPC_OPCODE_BOOKE +-#define NO371 PPC_OPCODE_BOOKE | PPC_OPCODE_PPCPS | PPC_OPCODE_EFS ++#define NO371 PPC_OPCODE_BOOKE | PPC_OPCODE_EFS + #define PPCE300 PPC_OPCODE_E300 + #define PPCSPE PPC_OPCODE_SPE + #define PPCSPE2 PPC_OPCODE_SPE2 diff --git a/select_toolchain.sh b/select_toolchain.sh index 531022a..7df0f99 100755 --- a/select_toolchain.sh +++ b/select_toolchain.sh @@ -40,7 +40,7 @@ case "$VERSION" in ;; "2" ) GCC_VER=14.2.0 - BINUTILS_VER=2.43.1 + BINUTILS_VER=2.44 MN_BINUTILS_VER=2.24 NEWLIB_VER=4.4.0.20231231 basedir='dkppc'