Skip to contentSkip to conversation

perf: Build with stack-protector and with -D_FORTIFY_SOURCE=2

tip:perfcounters/core tip-bot for Ingo Molnar 1 participant 1 message Aug 16, 2009 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  35ba15b737e2cd1d780943189f2138519f81fd42
Gitweb:     http://git.kernel.org/tip/35ba15b737e2cd1d780943189f2138519f81fd42
Author:     Ingo Molnar <[email protected]>
AuthorDate: Sun, 16 Aug 2009 11:09:21 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Sun, 16 Aug 2009 11:09:21 +0200

perf: Build with stack-protector and with -D_FORTIFY_SOURCE=2

Up our defences a bit.

Cc Peter Zijlstra <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Frederic Weisbecker <[email protected]>

LKML-Reference: <new-submission>

---
 tools/perf/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/perf/Makefile +1 -1
index 8608c06..d637aea 100644
@@ -171,7 +171,7 @@ endif
 #
 EXTRA_WARNINGS = -Wcast-align -Wformat=2 -Wshadow -Winit-self -Wpacked -Wredundant-decls -Wstack-protector -Wstrict-aliasing=3 -Wswitch-default -Wswitch-enum -Wno-system-headers -Wundef -Wvolatile-register-var -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -Wdeclaration-after-statement
 
-CFLAGS = $(M64) -ggdb3 -Wall -Wextra -std=gnu99 -Werror -O6 $(EXTRA_WARNINGS)
+CFLAGS = $(M64) -ggdb3 -Wall -Wextra -std=gnu99 -Werror -O6 -fstack-protector-all -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS)
 LDFLAGS = -lpthread -lrt -lelf -lm
 ALL_CFLAGS = $(CFLAGS)
 ALL_LDFLAGS = $(LDFLAGS)