Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/83560?usp=email )
Change subject: Makefile.mk: Mark stack as not executable ......................................................................
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 --- M Makefile.mk 1 file changed, 1 insertion(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Felix Singer: Looks good to me, approved Nico Huber: Looks good to me, approved
diff --git a/Makefile.mk b/Makefile.mk index 0123bd5..e9ad2cc 100644 --- a/Makefile.mk +++ b/Makefile.mk @@ -603,6 +603,7 @@ 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