Skip to content

Commit a8d52f9

Browse files
committed
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 <[email protected]>
1 parent 868353d commit a8d52f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/Makefile.lib

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ $(obj)/%.efi: $(obj)/%_efi.so
426426
$(call cmd,efi_objcopy)
427427

428428
quiet_cmd_efi_ld = LD $@
429-
cmd_efi_ld = $(LD) -nostdlib -znocombreloc -T $(EFI_LDS_PATH) -shared \
430-
-Bsymbolic -znorelro -s $^ -o $@
429+
cmd_efi_ld = $(LD) -nostdlib -zexecstack -znocombreloc -T $(EFI_LDS_PATH) \
430+
-shared -Bsymbolic -znorelro -s $^ -o $@
431431

432432
EFI_LDS_PATH = $(srctree)/arch/$(ARCH)/lib/$(EFI_LDS)
433433

0 commit comments

Comments
 (0)