build: suppress GNU ld warning about RWX load segments
authorJan Beulich <jbeulich@suse.com>
Tue, 7 Jun 2022 12:06:51 +0000 (14:06 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jun 2022 12:06:51 +0000 (14:06 +0200)
We cannot really avoid such and we're also not really at risk because of
them, as we control page table permissions ourselves rather than relying
on a loader of some sort. Present GNU ld master started warning about
such, and hence 2.39 is anticipated to have this warning.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <jgrall@amazon.com>
master commit: 68f5aac012b9ae36ce9b65d9ca9cc9f232191ad3
master date: 2022-05-18 11:17:19 +0200

xen/Makefile

index ce4eca3ee4d73e48405e30e523fbd7529335dec0..4d9abe7046287832b0ed92c2ae840d0f820e673f 100644 (file)
@@ -260,6 +260,8 @@ endif
 
 AFLAGS += -D__ASSEMBLY__
 
+LDFLAGS-$(call ld-option,--warn-rwx-segments) += --no-warn-rwx-segments
+
 CFLAGS += $(CFLAGS-y)
 # allow extra CFLAGS externally via EXTRA_CFLAGS_XEN_CORE
 CFLAGS += $(EXTRA_CFLAGS_XEN_CORE)