aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-07-12 08:11:53 +0200
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-07-13 20:07:07 +0200
commita8d52f9a9b7be90decc6eabae39ec360bda5cd15 (patch)
treefa42200bcf953f9395c6b2ae71019d8cfdb22d2b
parent868353daa379849953ae30f400536ff61624de54 (diff)
downloadu-boot-a8d52f9a9b7be90decc6eabae39ec360bda5cd15.zip
u-boot-a8d52f9a9b7be90decc6eabae39ec360bda5cd15.tar.gz
u-boot-a8d52f9a9b7be90decc6eabae39ec360bda5cd15.tar.bz2
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>
-rw-r--r--scripts/Makefile.lib4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index c0a5bb9..8e13bf2 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -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)