[lkml]   [2008]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    SubjectRe: [PATCH 6/6] gcov: architecture specific compile flag adjustments
    On Mon, 02 Jun 2008 15:34:47 +0200
    Peter Oberparleiter <> 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


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

    +CFLAGS_prom_init.o += -fno-profile-arcs -fno-test-coverage

    didn't fix it so I gave up.

     \ /
      Last update: 2008-06-12 02:05    [W:0.019 / U:7.392 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site