From: Michal Marek <mmarek@suse.cz>
To: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: linux-kbuild@vger.kernel.org
Subject: Re: file names embedded in kernel image
Date: Mon, 26 Oct 2015 20:46:36 +0100 [thread overview]
Message-ID: <562E831C.9030204@suse.cz> (raw)
In-Reply-To: <87wpwhhxpi.fsf@rasmusvillemoes.dk>
Dne 27.8.2015 v 11:44 Rasmus Villemoes napsal(a):
> 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
If you build in a subdirectory of the source tree, the filenames will
look like
../arch/x86/platform/sfi/sfi.c
../kernel/fork.c
Michal
prev parent reply other threads:[~2015-10-26 19:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-27 9:44 file names embedded in kernel image Rasmus Villemoes
2015-10-26 19:46 ` Michal Marek [this message]
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=562E831C.9030204@suse.cz \
--to=mmarek@suse.cz \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux@rasmusvillemoes.dk \
/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.