]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc/ppc32: static ftrace fixes for PPC32
authorSteven Rostedt <srotedt@redhat.com>
Wed, 26 Nov 2008 20:54:46 +0000 (15:54 -0500)
committerIngo Molnar <mingo@elte.hu>
Fri, 28 Nov 2008 13:08:07 +0000 (14:08 +0100)
Impact: fix for PowerPC 32 code

There were some early init code that was not safe for static
ftrace to boot on my PowerBook. This code must only use relative
addressing, and static mcount performs a compare of the
ftrace_trace_function pointer, and gets that with an absolute address.
In the early init boot up code, this will cause a fault.

This patch removes tracing from the files containing the offending
functions.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/powerpc/kernel/Makefile
arch/powerpc/lib/Makefile

index 92673b43858d067d6ccfab7a1cc083018d4a5c4f..d17edb4a2f9d57490cc8847b881b07fc3f06d7b9 100644 (file)
@@ -17,6 +17,7 @@ ifdef CONFIG_FUNCTION_TRACER
 CFLAGS_REMOVE_cputable.o = -pg -mno-sched-epilog
 CFLAGS_REMOVE_prom_init.o = -pg -mno-sched-epilog
 CFLAGS_REMOVE_btext.o = -pg -mno-sched-epilog
+CFLAGS_REMOVE_prom.o = -pg -mno-sched-epilog
 
 ifdef CONFIG_DYNAMIC_FTRACE
 # dynamic ftrace setup.
index d69912c07ce732c937412dac1286ba0223ded96c..8db35278a4b43643c2cf42b280b79ad9d33be7bc 100644 (file)
@@ -6,6 +6,9 @@ ifeq ($(CONFIG_PPC64),y)
 EXTRA_CFLAGS           += -mno-minimal-toc
 endif
 
+CFLAGS_REMOVE_code-patching.o = -pg
+CFLAGS_REMOVE_feature-fixups.o = -pg
+
 obj-y                  := string.o alloc.o \
                           checksum_$(CONFIG_WORD_SIZE).o
 obj-$(CONFIG_PPC32)    += div64.o copy_32.o crtsavres.o