From: Heinrich Schuchardt Date: Tue, 12 Jul 2022 06:11:53 +0000 (+0200) Subject: efi_loader: suppress executable stack warning X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=a8d52f9a9b7be90decc6eabae39ec360bda5cd15;p=u-boot.git efi_loader: suppress executable stack warning When linking EFI binaries the linker emits: ld.bfd: warning: lib/efi_loader/efi_crt0.o: missing .note.GNU-stack section implies executable stack Suppress the warning. Signed-off-by: Heinrich Schuchardt --- diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index c0a5bb9add..8e13bf2b98 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -426,8 +426,8 @@ $(obj)/%.efi: $(obj)/%_efi.so $(call cmd,efi_objcopy) quiet_cmd_efi_ld = LD $@ -cmd_efi_ld = $(LD) -nostdlib -znocombreloc -T $(EFI_LDS_PATH) -shared \ - -Bsymbolic -znorelro -s $^ -o $@ +cmd_efi_ld = $(LD) -nostdlib -zexecstack -znocombreloc -T $(EFI_LDS_PATH) \ + -shared -Bsymbolic -znorelro -s $^ -o $@ EFI_LDS_PATH = $(srctree)/arch/$(ARCH)/lib/$(EFI_LDS)