summaryrefslogtreecommitdiff
path: root/Makefile.mk
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2024-07-18 21:39:21 +0200
committerFelix Held <felix-coreboot@felixheld.de>2024-07-22 14:05:53 +0000
commit27d24f21abe70d0376445548a6dd75a5b957aecb (patch)
tree95526a76334512db0d9b82fcaf7e32ccae0a30b7 /Makefile.mk
parentc4b9206a22e123f93d919eb6610eb5d28d30b962 (diff)
Makefile.mk: Mark stack as not executable
Suppress the warning: missing .note.GNU-stack section implies executable stack NOTE: This behaviour is deprecated and will be removed in a future version of the linker Since we don't need an executable stack this is fine. Some newer linkers like LLD even default to this. Change-Id: Ib787cc464e0924ab57575cec9fbfd1d59bdd3481 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83560 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'Makefile.mk')
-rw-r--r--Makefile.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.mk b/Makefile.mk
index 0123bd5544..e9ad2ccbb2 100644
--- a/Makefile.mk
+++ b/Makefile.mk
@@ -603,6 +603,7 @@ LDFLAGS_common := --gc-sections
LDFLAGS_common += -nostdlib
LDFLAGS_common += --nmagic
LDFLAGS_common += -static
+LDFLAGS_common += -z noexecstack
# Disable warning on segments with RWX.
# All loadable sections are placed in the same segment for simplicity.
LDFLAGS_common += --no-warn-rwx-segments