Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/83559?usp=email )
Change subject: Makefile.inc: Remove linker warning on RWX segments ......................................................................
Makefile.inc: 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 --- M Makefile.mk 1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/59/83559/1
diff --git a/Makefile.mk b/Makefile.mk index b4532c3..12cd449 100644 --- a/Makefile.mk +++ b/Makefile.mk @@ -603,6 +603,9 @@ LDFLAGS_common += -nostdlib LDFLAGS_common += --nmagic LDFLAGS_common += -static +# Disable warning ons 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