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/boot | |
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/boot')
-rw-r--r-- | arch/sh/boot/compressed/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/boot/compressed/Makefile b/arch/sh/boot/compressed/Makefile index 9531bf1b7c2f..3af239cb9b0d 100644 --- a/arch/sh/boot/compressed/Makefile +++ b/arch/sh/boot/compressed/Makefile @@ -23,7 +23,7 @@ IMAGE_OFFSET := $(shell /bin/bash -c 'printf "0x%08x" \ LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) -ifeq ($(CONFIG_FUNCTION_TRACER),y) +ifeq ($(CONFIG_MCOUNT),y) ORIG_CFLAGS := $(KBUILD_CFLAGS) KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS)) endif |