From: Jan Beulich Date: Wed, 18 May 2022 09:18:45 +0000 (+0200) Subject: build: silence GNU ld warning about executable stacks X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~645 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=62d22296a95d259c934ca2f39ac511d729cfbb68;p=xen.git build: silence GNU ld warning about executable stacks While for C files the compiler is supposed to arrange for emitting respective information, for assembly sources we're responsible ourselves. 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 2ac6ec5adc..30db57cc3c 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -397,6 +397,8 @@ endif AFLAGS += -D__ASSEMBLY__ +$(call cc-option-add,AFLAGS,CC,-Wa$(comma)--noexecstack) + LDFLAGS-$(call ld-option,--warn-rwx-segments) += --no-warn-rwx-segments CFLAGS += $(CFLAGS-y)