mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
perf tools: Remove stackprotector feature check
We use -fstack-protector-all option to enable stack protecting for all available functions. There's no reason for enabling -Wstack-protector to get warning for unprotected functions. Removing stackprotector feature check which was used to enable the -Wstack-protector option. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/1386076182-14484-2-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
906049c827
commit
e6d7cee1ec
3 changed files with 1 additions and 16 deletions
|
@ -141,7 +141,6 @@ CORE_FEATURE_TESTS = \
|
||||||
libslang \
|
libslang \
|
||||||
libunwind \
|
libunwind \
|
||||||
on-exit \
|
on-exit \
|
||||||
stackprotector \
|
|
||||||
stackprotector-all \
|
stackprotector-all \
|
||||||
timerfd
|
timerfd
|
||||||
|
|
||||||
|
@ -209,10 +208,6 @@ ifeq ($(feature-stackprotector-all), 1)
|
||||||
CFLAGS += -fstack-protector-all
|
CFLAGS += -fstack-protector-all
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(feature-stackprotector), 1)
|
|
||||||
CFLAGS += -Wstack-protector
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(DEBUG),0)
|
ifeq ($(DEBUG),0)
|
||||||
ifeq ($(feature-fortify-source), 1)
|
ifeq ($(feature-fortify-source), 1)
|
||||||
CFLAGS += -D_FORTIFY_SOURCE=2
|
CFLAGS += -D_FORTIFY_SOURCE=2
|
||||||
|
|
|
@ -26,7 +26,6 @@ FILES= \
|
||||||
test-libunwind-debug-frame \
|
test-libunwind-debug-frame \
|
||||||
test-on-exit \
|
test-on-exit \
|
||||||
test-stackprotector-all \
|
test-stackprotector-all \
|
||||||
test-stackprotector \
|
|
||||||
test-timerfd
|
test-timerfd
|
||||||
|
|
||||||
CC := $(CC) -MD
|
CC := $(CC) -MD
|
||||||
|
@ -38,7 +37,7 @@ BUILD = $(CC) $(CFLAGS) $(LDFLAGS) -o $(OUTPUT)$@ $@.c
|
||||||
###############################
|
###############################
|
||||||
|
|
||||||
test-all:
|
test-all:
|
||||||
$(BUILD) -Werror -fstack-protector -fstack-protector-all -O2 -Werror -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma $(LIBUNWIND_LIBS) -lelf -laudit -I/usr/include/slang -lslang $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null) $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl
|
$(BUILD) -Werror -fstack-protector-all -O2 -Werror -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma $(LIBUNWIND_LIBS) -lelf -laudit -I/usr/include/slang -lslang $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null) $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl
|
||||||
|
|
||||||
test-hello:
|
test-hello:
|
||||||
$(BUILD)
|
$(BUILD)
|
||||||
|
@ -46,9 +45,6 @@ test-hello:
|
||||||
test-stackprotector-all:
|
test-stackprotector-all:
|
||||||
$(BUILD) -Werror -fstack-protector-all
|
$(BUILD) -Werror -fstack-protector-all
|
||||||
|
|
||||||
test-stackprotector:
|
|
||||||
$(BUILD) -Werror -fstack-protector -Wstack-protector
|
|
||||||
|
|
||||||
test-fortify-source:
|
test-fortify-source:
|
||||||
$(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
|
$(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
|
||||||
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
return puts("hi");
|
|
||||||
}
|
|
Loading…
Reference in a new issue