Message ID | 20230214200932.2354650-2-trini@konsulko.com |
---|---|
State | Accepted |
Commit | d85bc196cbf9b70be203047a3450643f1999fe4c |
Delegated to: | Tom Rini |
Headers | show |
Series | [1/2] Makefile: Link with -z noexectack | expand |
On Tue, Feb 14, 2023 at 03:09:32PM -0500, Tom Rini wrote: > 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> Applied to u-boot/master, thanks!
diff --git a/arch/x86/config.mk b/arch/x86/config.mk index a4a694ddf313..26ec1af2f0b0 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
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> --- arch/x86/config.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)