修訂 | a8d52f9a9b7be90decc6eabae39ec360bda5cd15 (tree) |
---|---|
時間 | 2022-07-14 03:07:07 |
作者 | Heinrich Schuchardt <heinrich.schuchardt@cano...> |
Commiter | Heinrich Schuchardt |
efi_loader: suppress executable stack warning
When linking EFI binaries the linker emits:
Suppress the warning.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
@@ -426,8 +426,8 @@ $(obj)/%.efi: $(obj)/%_efi.so | ||
426 | 426 | $(call cmd,efi_objcopy) |
427 | 427 | |
428 | 428 | 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 $@ | |
431 | 431 | |
432 | 432 | EFI_LDS_PATH = $(srctree)/arch/$(ARCH)/lib/$(EFI_LDS) |
433 | 433 |