[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging-4.16] build: silence GNU ld warning about executable stacks



commit 1bc669a568a9f4bdab9e9ddb95823ba370dc0baf
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Tue Jun 7 14:07:11 2022 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Jun 7 14:07:11 2022 +0200

    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 <jbeulich@xxxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Acked-by: Julien Grall <jgrall@xxxxxxxxxx>
    master commit: 62d22296a95d259c934ca2f39ac511d729cfbb68
    master date: 2022-05-18 11:18:45 +0200
---
 xen/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/Makefile b/xen/Makefile
index 4d9abe7046..971028eda2 100644
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -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)
--
generated by git-patchbot for /home/xen/git/xen.git#staging-4.16



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.