[ Josh, can you see if this allows you to boot on PowerPC? It worked on my powerbook. ]
The early init code in PowerPC is not mapped to their final locations and all jumps and memory references must be done with relative jumps and accesses. The lib files in the powerpc directory are called in early boot, and since mcount will perform direct access to memory, the lib files need not be traced. Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- arch/powerpc/lib/Makefile | 5 +++++ 1 file changed, 5 insertions(+) Index: linux-compile.git/arch/powerpc/lib/Makefile =================================================================== --- linux-compile.git.orig/arch/powerpc/lib/Makefile 2008-10-16 19:26:39.000000000 -0400 +++ linux-compile.git/arch/powerpc/lib/Makefile 2008-10-16 19:26:49.000000000 -0400 @@ -2,6 +2,11 @@ # Makefile for ppc-specific library files.. # +ifdef CONFIG_FTRACE +ORIG_CFLAGS := $(KBUILD_CFLAGS) +KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS)) +endif + ifeq ($(CONFIG_PPC64),y) EXTRA_CFLAGS += -mno-minimal-toc endif _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev