[CRIU] [PATCH 1/3] compel: mv noexecstack from CFLAGS to LDFLAGS

Kir Kolyshkin kir at openvz.org
Thu Oct 20 20:02:26 PDT 2016


In a manner similar to one of commit 9303ed3 ("Makefiles: move
-Wa,--noexecstack out of CFLAGS"), let's move this option to
linker flags (see the abovementioned commit for reasoning).

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 compel/src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compel/src/main.c b/compel/src/main.c
index 6417dcf..a30321b 100644
--- a/compel/src/main.c
+++ b/compel/src/main.c
@@ -16,14 +16,14 @@
 #include "piegen.h"
 
 #define CFLAGS_DEFAULT_SET					\
-	"-Wstrict-prototypes -Wa,--noexecstack "		\
+	"-Wstrict-prototypes "					\
 	"-fno-stack-protector -nostdlib -fomit-frame-pointer "
 
 #define COMPEL_CFLAGS_PIE	CFLAGS_DEFAULT_SET "-fpie -fno-jump-tables"
 #define COMPEL_CFLAGS_PIE_JPT	CFLAGS_DEFAULT_SET "-fpie"
 #define COMPEL_CFLAGS_NOPIC	CFLAGS_DEFAULT_SET "-fno-pic -fno-jump-tables"
 
-#define COMPEL_LDFLAGS_DEFAULT "-r"
+#define COMPEL_LDFLAGS_DEFAULT "-r -z noexecstack"
 
 piegen_opt_t opts = {
 	.input_filename		= NULL,
-- 
2.7.4



More information about the CRIU mailing list