lkml.org 
[lkml]   [2004]   [Feb]   [25]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
From(Måns_Rullgård)
SubjectRe: Why are 2.6 modules so huge?
DateWed, 25 Feb 2004 09:56:41 +0100
Harald Dunkel <harald.dunkel@t-online.de> writes:

> Måns Rullgård wrote:
>> My 2.6.3 vfat.ko is 15365 bytes.  Maybe you enabled kernel debugging
>> symbols.
>>
>
> % ll /lib/modules/2.6.3/kernel/fs/vfat/
> total 16
> -rw-r--r--    1 root     root        14232 Feb 19 07:43 vfat.ko
>
> Assuming that you are on i686:
>
> A size difference of 1 KByte (about 7%) is remarkable. Which
> gcc did you use for building 2.6.3?

I used gcc 3.3.2.  Here's an objdump -h of that file:

/lib/modules/2.6.3/kernel/fs/vfat/vfat.ko:     file format elf32-i386

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         0000209c  00000000  00000000  00000034  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
  1 .init.text    00000013  00000000  00000000  000020d0  2**0
                  CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
  2 .exit.text    00000013  00000000  00000000  000020e3  2**0
                  CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
  3 .rodata.str1.1 0000004c  00000000  00000000  000020f6  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .rodata.str1.32 00000073  00000000  00000000  00002160  2**5
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 __ksymtab_strings 00000046  00000000  00000000  000021d3  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  6 __ksymtab     00000030  00000000  00000000  0000221c  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA
  7 .modinfo      00000059  00000000  00000000  00002260  2**5
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  8 .data         00000120  00000000  00000000  000022c0  2**5
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  9 .gnu.linkonce.this_module 00000200  00000000  00000000  00002400  2**7
                  CONTENTS, ALLOC, LOAD, RELOC, DATA, LINK_ONCE_DISCARD
 10 .bss          00000000  00000000  00000000  00002600  2**2
                  ALLOC
 11 .comment      00000036  00000000  00000000  00002600  2**0
                  CONTENTS, READONLY

-- 
Måns Rullgård
mru@kth.se

-
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:01    [from the cache]
©2003-2008