[CRIU] [PATCH 2/6] compel: cli -- Add more flags into cflags report

Cyrill Gorcunov gorcunov at openvz.org
Wed Sep 28 14:34:45 PDT 2016


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 compel/src/main.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/compel/src/main.c b/compel/src/main.c
index ee6ccd53acdd..ca191c768363 100644
--- a/compel/src/main.c
+++ b/compel/src/main.c
@@ -15,8 +15,14 @@
 #include "version.h"
 #include "piegen.h"
 
-static const char compel_cflags_pie[] = "-fpie -Wa,--noexecstack -fno-stack-protector";
-static const char compel_cflags_nopic[] = "-fno-pic -Wa,--noexecstack -fno-stack-protector";
+static const char compel_cflags_pie[] =
+	"-fpie -Wstrict-prototypes -Wa,--noexecstack "
+	"-fno-stack-protector -fno-jump-tables -nostdlib "
+	"-fomit-frame-pointer";
+static const char compel_cflags_nopic[] =
+	"-fno-pic -Wstrict-prototypes -Wa,--noexecstack "
+	"-fno-stack-protector -fno-jump-tables -nostdlib "
+	"-fomit-frame-pointer";
 static const char compel_ldflags[] = "-r";
 
 piegen_opt_t opts = {
-- 
2.7.4



More information about the CRIU mailing list