lkml.org 
[lkml]   [2008]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 6/7] kbuild: make source and include paths absolute
Date
On Mon, 19 May 2008 10:44:56 +0200, Peter Oberparleiter wrote:

> From: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
>
> Change all source and include paths to absolute form when
> CONFIG_GCOV_PROFILE is enabled.
>
> Example:
>
> gcc -Idir1 -c a.c -o a.o
>
> will become
>
> gcc -I/path/to/dir1 -c /path/to/a.c -o a.o
>
> Required by the gcov profiling infrastructure: when compiling with
> option -fprofile-arcs, gcc stores file names inside object files.
> Relative paths prevent the gcov tool from finding corresponding source
> files.

I think it would be good to fix this in the gcov tool. When I think
of distribution kernels the source usually ends up in a different
place in the packages than the kernel was originally compiled. So
it would be good to extend gcov here or let it search in well known
locations first (/usr/src/linux, /usr/src/debug/...).

Cheers,
Jan



\
 
 \ /
  Last update: 2008-05-19 15:49    [W:0.060 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site