* Daniel Walker <dwalker@mvista.com> wrote:
> On Sat, 2006-09-09 at 07:12 +0200, Ingo Molnar wrote:
>
> > The real solution would be to use gcc -ffunction-sections plus ld
> > --gc-sections to automatically get rid of unused global functions, at
> > link time. I'm wondering how hard it would be to enhance kbuild to do
> > that - x86_64 already uses -ffunction-sections (if CONFIG_REORDER), so
> > the big question is how usable is ld --gc-sections. Such a feature would
> > be quite important for embedded systems (and for RAM footprint in
> > general) as it would save a significant amount of .text and .data.
>
> A patch to do this was submitted already by Marcelo Tosatti ..
>
> http://lkml.org/lkml/2006/6/4/169
ah, i missed that patch in the June lock validator frenzy. The results
are astounding:
>> vmlinux shrinks from 1090389 to 983933 bytes, or 106k (~= 10%).
Andrew, Linus, Kai, Sam: a must-have feature! This saves more kernel
kernel image RAM than all the other kernel shrinking efforts of the past
2 years combined - at zero cost.
Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]