Re: [PATCH 6/6] gcov: architecture specific compile flag adjustments

From: Peter Oberparleiter
Date: Thu Jun 12 2008 - 05:13:39 EST


Andrew Morton wrote:
> On Mon, 02 Jun 2008 15:34:47 +0200
> Peter Oberparleiter <peter.oberparleiter@xxxxxxxxxx> wrote:
>
>> Exclude code from profiling which is not linked to the main kernel or
>> which is running in a context not compatible with the assumptions made
>> by gcc's profiling code.
>
> powerpc allmodconfig fails with
>
> Error: External symbol '__gcov_init' referenced from prom_init.c
> Error: External symbol '__gcov_merge_add' referenced from prom_init.c

--
From: Peter Oberparleiter <peter.oberparleiter@xxxxxxxxxx>

Fix for gcov patch fallout:

powerpc allmodconfig fails with

Error: External symbol '__gcov_init' referenced from prom_init.c
Error: External symbol '__gcov_merge_add' referenced from prom_init.c

Signed-off-by: Peter Oberparleiter <peter.oberparleiter@xxxxxxxxxx>
---
arch/powerpc/kernel/Makefile | 1 +
1 files changed, 1 insertion(+)

Index: linux-2.6.26-rc5-mm2/arch/powerpc/kernel/Makefile
===================================================================
--- linux-2.6.26-rc5-mm2.orig/arch/powerpc/kernel/Makefile
+++ linux-2.6.26-rc5-mm2/arch/powerpc/kernel/Makefile
@@ -11,6 +11,7 @@ ifeq ($(CONFIG_PPC32),y)
CFLAGS_prom_init.o += -fPIC
CFLAGS_btext.o += -fPIC
endif
+GCOV_prom_init.o := n

ifdef CONFIG_FTRACE
# Do not trace early boot code
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/