Re: [PATCH 6/6] gcov: architecture specific compile flagadjustments

From: Andrew Morton
Date: Wed Jun 11 2008 - 20:03:42 EST


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

This:

--- a/arch/powerpc/kernel/Makefile~a
+++ a/arch/powerpc/kernel/Makefile
@@ -12,6 +12,10 @@ CFLAGS_prom_init.o += -fPIC
CFLAGS_btext.o += -fPIC
endif

+ifdef CONFIG_GCOV_PROFILE
+CFLAGS_prom_init.o += -fno-profile-arcs -fno-test-coverage
+endif
+

didn't fix it so I gave up.
--
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/