diff options
author | Tom Rini <trini@konsulko.com> | 2023-02-14 15:09:32 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-02-23 13:29:20 -0500 |
commit | d85bc196cbf9b70be203047a3450643f1999fe4c (patch) | |
tree | dbb18b3ab1bd5dbb3737cc4c42117ef3d6f940d6 | |
parent | 57450d8661b3ec2e6b6f1d938e59f426cafb06d2 (diff) | |
download | u-boot-d85bc196cbf9b70be203047a3450643f1999fe4c.zip u-boot-d85bc196cbf9b70be203047a3450643f1999fe4c.tar.gz u-boot-d85bc196cbf9b70be203047a3450643f1999fe4c.tar.bz2 |
x86: Pass -z execstack for EFI payload flags
To match how we link EFI executables elsewhere, and to silence a linker
warning, pass -z execstack here as well.
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | arch/x86/config.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/config.mk b/arch/x86/config.mk index a4a694d..26ec1af 100644 --- a/arch/x86/config.mk +++ b/arch/x86/config.mk @@ -37,7 +37,8 @@ KBUILD_LDFLAGS += -m $(if $(IS_32BIT),elf_i386,elf_x86_64) # This is used in the top-level Makefile which does not include # KBUILD_LDFLAGS -LDFLAGS_EFI_PAYLOAD := -Bsymbolic -Bsymbolic-functions -shared --no-undefined -s +LDFLAGS_EFI_PAYLOAD := -Bsymbolic -Bsymbolic-functions -shared --no-undefined \ + -s -zexecstack OBJCOPYFLAGS_EFI := -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .reloc --strip-all |