build: silence GNU ld warning about executable stacks
authorJan Beulich <jbeulich@suse.com>
Tue, 7 Jun 2022 12:07:11 +0000 (14:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jun 2022 12:07:11 +0000 (14:07 +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>
master commit: 62d22296a95d259c934ca2f39ac511d729cfbb68
master date: 2022-05-18 11:18:45 +0200

xen/Makefile

index 4d9abe7046287832b0ed92c2ae840d0f820e673f..971028eda240650967e654bbf452d8a5ee3b1d3a 100644 (file)
@@ -260,6 +260,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)