file names embedded in kernel image

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I just noticed that when one build the kernel outside the source tree,
all __FILE__ occurences get replaced with the absolute path (since
that's what is given to gcc, and most -I paths are also absolute). This
ends up wasting quite a lot of space in .rodata, and I suppose most
distro supplied kernels have this issue. For example, my ubuntu kernel
is full of strings like

/build/linux-hFNI9K/linux-3.13.0/arch/x86/platform/sfi/sfi.c
/build/linux-hFNI9K/linux-3.13.0/kernel/fork.c

The /build/linux-hFNI9K/linux-3.13.0/ prefixes add up (and since it's an
artifact of the build process, wouldn't add any value in a bug-report
which one wouldn't also get from uname -a).

Distros could avoid this by building in-tree (maybe some already do) but
I was wondering if we could do something upstream.

Rasmus
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux