From 219a99c74e4bd77f2d8481c3380e8c294cfe2e3e Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 29 Sep 2016 00:34:00 +0300 Subject: [PATCH] compel: cli -- Add more flags into cflags report Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov Signed-off-by: Andrei Vagin --- 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 ee6ccd53a..ca191c768 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 = {