Pārlūkot izejas kodu

elf2flt: fix build with binutils 2.47

Waldemar Brodkorb 6 dienas atpakaļ
vecāks
revīzija
bdd74e3861

+ 4 - 0
toolchain/elf2flt/Makefile

@@ -10,6 +10,10 @@ ifeq ($(ADK_TOOLCHAIN_BINUTILS_GIT),y)
 BINUTILS_VERSION:=	git
 BFDLIB:=		.libs/libbfd.a
 endif
+ifeq ($(ADK_TOOLCHAIN_BINUTILS_2_47),y)
+BINUTILS_VERSION:=	2.47
+BFDLIB:=		.libs/libbfd.a
+endif
 ifeq ($(ADK_TOOLCHAIN_BINUTILS_2_46),y)
 BINUTILS_VERSION:=	2.46.1
 BFDLIB:=		.libs/libbfd.a

+ 16 - 0
toolchain/elf2flt/patches/v2024.02/0004-binutils-2.47.patch

@@ -0,0 +1,16 @@
+diff -Nur elf2flt-v2024.02.orig/elf2flt.c elf2flt-v2024.02/elf2flt.c
+--- elf2flt-v2024.02.orig/elf2flt.c	2024-05-08 20:49:03.000000000 +0200
++++ elf2flt-v2024.02/elf2flt.c	2026-07-30 14:50:59.491137400 +0200
+@@ -296,10 +296,10 @@
+ #ifdef DEBUG_BFIN
+ 	    fprintf(stderr, "found weak undefined symbol %s\n", symbol->name);
+ #endif
+-	    return TRUE;
++	    return 1;
+ 	}
+     }
+-    return FALSE;
++    return 0;
+ }
+ 
+ static int