Files
gentoo/sys-boot/gnu-efi/files/gnu-efi-3.0.19-fix-binutils-2.46.patch
Viorel Munteanu 3e778afebb sys-boot/gnu-efi: backport binutils-2.46 fix
Building with binutils 2.46 has been fixed by upstream in 4.x; backport
the fix to 3.0.19 because it is still needed for sys-boot/refind.

The patch is trivial, apply direct to stable.

Closes: https://bugs.gentoo.org/970040
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
2026-02-14 11:04:50 +02:00

20 lines
480 B
Diff

Backport the fix from gnu-efi 4.0.4 to build with binutils-2.46.
https://bugs.gentoo.org/970040
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -66,9 +66,9 @@
ifneq ($(HAVE_EFI_OBJCOPY),)
-FORMAT := --target efi-app-$(ARCH)
-$(TARGET_BSDRIVERS): FORMAT=--target efi-bsdrv-$(ARCH)
-$(TARGET_RTDRIVERS): FORMAT=--target efi-rtdrv-$(ARCH)
+FORMAT := -O efi-app-$(ARCH)
+$(TARGET_BSDRIVERS): FORMAT=-O efi-bsdrv-$(ARCH)
+$(TARGET_RTDRIVERS): FORMAT=-O efi-rtdrv-$(ARCH)
else