]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: suppress executable stack warning
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 12 Jul 2022 06:11:53 +0000 (08:11 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 13 Jul 2022 18:07:07 +0000 (20:07 +0200)
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>
scripts/Makefile.lib

index c0a5bb9addc58171fd5d6fc146917b5acfdcddf0..8e13bf2b986da877461159b6fc088e3f61cb8ade 100644 (file)
@@ -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)