From 8f4535f5eb3b73e29be5cc95538f2605a4c2a46f Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Fri, 3 Feb 2023 19:07:53 +0100 Subject: [PATCH] genprotimg/boot: use `--no-warn-rwx-segments` linker flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This disables the following warning `ld: warning: stag3a.elf has a LOAD segment with RWX permissions` for newer linker. This changes nothing in functionality for the bootloaders, since only the binaries and not the ELF files are actually used. Reviewed-by: Steffen Eiden Signed-off-by: Marc Hartmayer Signed-off-by: Jan Höppner --- genprotimg/boot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genprotimg/boot/Makefile b/genprotimg/boot/Makefile index 1ccc8b26..10149338 100644 --- a/genprotimg/boot/Makefile +++ b/genprotimg/boot/Makefile @@ -79,7 +79,7 @@ stage3b_reloc.elf: stage3b) SFLAGS="-Wl,-T,stage3b.lds";; \ stage3b_reloc) SFLAGS="-Wl,-estage3b_reloc_start,-Ttext,0";; \ esac; \ - $(LINK) $$SFLAGS $(NO_PIE_LDFLAGS) -m64 -static -nostdlib $(filter %.o, $^) -o $@ + $(LINK) $$SFLAGS $(NO_PIE_LDFLAGS) $(NO_WARN_RWX_SEGMENTS_LDFLAGS) -m64 -static -nostdlib $(filter %.o, $^) -o $@ @chmod a-x $@ %.bin: %.elf