lkml.org 
[lkml]   [2001]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: kernel size
Date
On Tue, 9 Oct 2001 16:43:48 +0200, 
Ingo Oeser <ingo.oeser@informatik.tu-chemnitz.de> 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/vmlinux.lds Tue Oct 9 16:36:06 2001
>+++ linux/arch/i386/vmlinux.lds 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 vmlinux.lds, 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 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/

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