[PATCH v2 1/3] scripts/Makefile.lib: add PLATFORM_LIBS to efi linking
Adriano Cordova
adrianox at gmail.com
Thu May 8 20:30:32 CEST 2025
Link .efi applications using libgcc
Signed-off-by: Adriano Cordova <adriano.cordova at canonical.com>
---
changes in v2:
- Address the root of the problem. In v1 I was modifying
printx in initrddump.efi not to generate __lshrdi3 instructions,
but a better fix is to provide those instructions with libgcc
scripts/Makefile.lib | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 83fd5ff6c31..3a86cf375c3 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -497,7 +497,7 @@ KBUILD_EFILDFLAGS = -nostdlib -zexecstack -znocombreloc -znorelro
KBUILD_EFILDFLAGS += $(call ld-option,--no-warn-rwx-segments)
quiet_cmd_efi_ld = LD $@
cmd_efi_ld = $(LD) $(KBUILD_EFILDFLAGS) -L $(srctree) -T $(EFI_LDS_PATH) \
- -shared -Bsymbolic -s $^ -o $@
+ -shared -Bsymbolic -s $^ $(PLATFORM_LIBS) -o $@
EFI_LDS_PATH = arch/$(ARCH)/lib/$(EFI_LDS)
--
2.48.1
More information about the U-Boot
mailing list