blob: e4d739bcefce084bf7e9e6e68359acf88fec5962 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
From 1bc669a568a9f4bdab9e9ddb95823ba370dc0baf Mon Sep 17 00:00:00 2001
From: Jan Beulich <jbeulich@suse.com>
Date: Tue, 7 Jun 2022 14:07:11 +0200
Subject: [PATCH 19/51] 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@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 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xen/Makefile b/xen/Makefile
index 4d9abe704628..971028eda240 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)
--
2.35.1
|