[lkml]   [2001]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: kernel size
On Tue, 9 Oct 2001 16:43:48 +0200, 
Ingo Oeser <> wrote:
>strip -R .ident -R .comment -R .note
>is your friend.
>Or if we would like to solve it more elegant:
>--- linux-2.4.10/arch/i386/ Tue Oct 9 16:36:06 2001
>+++ linux/arch/i386/ Tue Oct 9 16:36:28 2001
>@@ -70,6 +70,9 @@
> *(.text.exit)
> *(.data.exit)
> *(.exitcall.exit)
>+ *(.ident)
>+ *(.comment)
>+ *(.note)
> }
> /* Stabs debugging sections. */
>which puts it into the list of sections to be discarde on i386.

Already done. When vmlinux is converted to [b]Zimage kbuild runs
objcopy -O binary -R .note -R .comment -S
The comments are stripped out at that stage. Before you start fiddling
with, try this:

objcopy -O binary -R .note -R .comment -S vmlinux vmlinux.stripped

Look at vmlinux.stripped, it is what actually gets loaded. If there
are any offending strings from gcc then we can look at them but I
really doubt that there are any.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:05    [W:0.048 / U:1.720 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site