build: silence GNU ld warning about executable stacks
authorJan Beulich <jbeulich@suse.com>
Wed, 18 May 2022 09:18:45 +0000 (11:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 18 May 2022 09:18:45 +0000 (11:18 +0200)
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 <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/Makefile

index 2ac6ec5adc4bc49d7b72f2ee9ca7457a7ad9bee3..30db57cc3c302131935b63e83cec7baf58c888ff 100644 (file)
@@ -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)