From: Jan Beulich Date: Wed, 18 May 2022 09:17:19 +0000 (+0200) Subject: build: suppress GNU ld warning about RWX load segments X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~646 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=68f5aac012b9ae36ce9b65d9ca9cc9f232191ad3;p=xen.git build: suppress GNU ld warning about RWX load segments 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 Acked-by: Andrew Cooper Acked-by: Julien Grall --- diff --git a/xen/Makefile b/xen/Makefile index 735d5f6e45..2ac6ec5adc 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -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)