build: suppress GNU ld warning about RWX load segments
authorJan Beulich <jbeulich@suse.com>
Wed, 18 May 2022 09:17:19 +0000 (11:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 18 May 2022 09:17:19 +0000 (11:17 +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>
xen/Makefile

index 735d5f6e45bbef65fa1e872c4d9133e1b474b392..2ac6ec5adc4bc49d7b72f2ee9ca7457a7ad9bee3 100644 (file)
@@ -397,6 +397,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)