While for C files the compiler is supposed to arrange for emitting
respective information, for assembly sources we're responsible ourselves.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
--- 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)