Messages in this thread |  | | From | Keith Owens <> | Subject | Re: kernel size | Date | Wed, 10 Oct 2001 11:27:49 +1000 |
| |
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/
|  |