summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2024-07-18 21:20:16 +0200
committerFelix Held <felix-coreboot@felixheld.de>2024-07-22 14:05:27 +0000
commitc4b9206a22e123f93d919eb6610eb5d28d30b962 (patch)
tree18e492e85011a5046026adfb46c976784880624e
parentd12f31789335a42aeb2ab1ce3cc8ba90b11cef59 (diff)
Makefile.mk: Remove linker warning on RWX segments
Silence a linker warnings about segments with RWX. Having one segment for all sections is a good design choice as it makes parsing the elf into a loadable binary simpler. Change-Id: I1e0f51c69dabaea314ac45924474d446a9ab68f4 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83559 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>
-rw-r--r--Makefile.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.mk b/Makefile.mk
index b4532c399b..0123bd5544 100644
--- a/Makefile.mk
+++ b/Makefile.mk
@@ -603,6 +603,9 @@ LDFLAGS_common := --gc-sections
LDFLAGS_common += -nostdlib
LDFLAGS_common += --nmagic
LDFLAGS_common += -static
+# Disable warning on segments with RWX.
+# All loadable sections are placed in the same segment for simplicity.
+LDFLAGS_common += --no-warn-rwx-segments
# Workaround for RISC-V linker bug, merge back into above line when fixed.
# https://sourceware.org/bugzilla/show_bug.cgi?id=27180