public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Oberparleiter <oberparleiter@googlemail.com>,
	linux-kernel@vger.kernel.org, ltp-coverage@lists.sourceforge.net
Subject: Re: [PATCH 6/6] gcov: architecture specific compile flag adjustments
Date: Thu, 12 Jun 2008 11:12:21 +0200	[thread overview]
Message-ID: <4850E875.8060506@de.ibm.com> (raw)
In-Reply-To: <20080611170127.46b46d28.akpm@linux-foundation.org>

Andrew Morton wrote:
> On Mon, 02 Jun 2008 15:34:47 +0200
> Peter Oberparleiter <peter.oberparleiter@de.ibm.com> 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@de.ibm.com>

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@de.ibm.com>
---
 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

      reply	other threads:[~2008-06-12  9:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-02 13:34 [PATCH 6/6] gcov: architecture specific compile flag adjustments Peter Oberparleiter
2008-06-12  0:01 ` Andrew Morton
2008-06-12  9:12   ` Peter Oberparleiter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4850E875.8060506@de.ibm.com \
    --to=peter.oberparleiter@de.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ltp-coverage@lists.sourceforge.net \
    --cc=oberparleiter@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox