diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-07-11 12:56:58 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-07-11 12:56:58 +0200 |
commit | 473d1cf4ee623b043790838bcf77e77958840bf2 (patch) | |
tree | e1e582134ac96dbb21bd26c6c3ba5bba341e5e50 /arch/sh/Makefile | |
parent | Merge branches 'sh/ftrace' and 'sh/stable-updates' (diff) | |
download | linux-473d1cf4ee623b043790838bcf77e77958840bf2.tar.xz linux-473d1cf4ee623b043790838bcf77e77958840bf2.zip |
sh: Decouple mcount from ftrace.
This adds a general CONFIG_MCOUNT in order to permit mcount generation
without ftrace support. This is primarily for allowing platforms to
enable aggressive stack overflow checking without having to enable ftrace
support. Based on the sparc64 implementation.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/Makefile')
-rw-r--r-- | arch/sh/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile index 75d049b03f7e..52c34bf56962 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile @@ -186,6 +186,10 @@ KBUILD_CFLAGS += -pipe $(cflags-y) KBUILD_CPPFLAGS += $(cflags-y) KBUILD_AFLAGS += $(cflags-y) +ifeq ($(CONFIG_MCOUNT),y) + KBUILD_CFLAGS += -pg +endif + libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y) libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y) |