[lkml]   [2001]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: kernel size
On Tue, Oct 09, 2001 at 10:16:48AM -0400, Richard B. Johnson wrote:
> Compiled, produces this:
> .file "xxx.c"
> .version "01.01"
> gcc2_compiled.:
> .comm foo,4,4
> .ident "GCC: (GNU) egcs-2.91.66 19990314 (egcs-1.1.2 release)"
> It __might__ be possible to link, without linking in ".ident", which
> currently shares space with .rodata. My gcc man pages are not any
> better than the usual Red Hat so I can't find out if there is any way
> to turn OFF these spurious strings.

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 @@
+ *(.ident)
+ *(.comment)
+ *(.note)

/* Stabs debugging sections. */

which puts it into the list of sections to be discarde on i386.


Ingo Oeser
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.120 / U:1.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site