All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Cc: linux-kernel@vger.kernel.org, ltp-coverage@lists.sourceforge.net,
	oberparleiter@googlemail.com
Subject: Re: [PATCH 6/6] gcov: architecture specific compile flag adjustments
Date: Wed, 11 Jun 2008 17:01:27 -0700	[thread overview]
Message-ID: <20080611170127.46b46d28.akpm@linux-foundation.org> (raw)
In-Reply-To: <4843F6F7.9020000@de.ibm.com>

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

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.

  reply	other threads:[~2008-06-12  0:03 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 [this message]
2008-06-12  9:12   ` Peter Oberparleiter

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=20080611170127.46b46d28.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ltp-coverage@lists.sourceforge.net \
    --cc=oberparleiter@googlemail.com \
    --cc=peter.oberparleiter@de.ibm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.