scripts/Makefile.lib: add PLATFORM_LIBGCC to efi linking

Link .efi applications using libgcc

Signed-off-by: Adriano Cordova <adriano.cordova@canonical.com>
This commit is contained in:
Adriano Cordova
2025-05-08 14:30:32 -04:00
committed by Heinrich Schuchardt
parent 5e5ddf79f1
commit 43d43241d1

View File

@@ -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_LIBGCC) -o $@
EFI_LDS_PATH = arch/$(ARCH)/lib/$(EFI_LDS)