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 <heinrich.schuchardt@canonical.com>
$(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)