lkml.org 
[lkml]   [2008]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH 6/6] gcov: architecture specific compile flag adjustments
    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.

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