• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂a8d52f9a9b7be90decc6eabae39ec360bda5cd15 (tree)
時間2022-07-14 03:07:07
作者Heinrich Schuchardt <heinrich.schuchardt@cano...>
CommiterHeinrich Schuchardt

Log Message

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

Change Summary

差異

--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -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