Size problem compiling kernel modules
Aaron Gaudio
prothonotar at tarnation.dyndns.org
Mon Jun 7 12:50:54 UTC 2004
Behold, Dave Jones <davej at redhat.com> hath decreed:
> On Mon, 2004-06-07 at 10:22, Dave Abbott wrote:
>
> > I am recompiling the 2.6.5-1.358 kernel from
> > the patched source, using gcc 3.3 on Fedora Core2
> >
> > I have made no more than two modifications to the
> > .config (to enable NFS_ROOT and DEVFS).
> >
> > The resulting module object files are enormous.
> >
> > For example, the orginal £com driver as installed:
> >
> > drwxr--r-- 1 root root 40100 May 8 14:46 kernel/drivers/net/3c59x.ko
> >
> > And the same file as compiled:
> >
> > -rw-r--r-- 1 root root 271889 Jun 4 14:16 drivers/net/3c59x.ko
> >
> > All the .ko are like this, increasing the size of /lib/modules/2.6.5-1.358
> > from c. 58MB to 337MB
> >
> > The files are not stripped, in either case.
> >
> > Am I doing something wrong here? Anyone got any ideas?
>
> The ones from the rpm have their debug info stripped
> and put into the aptly named 'debuginfo' rpm.
> When you compile it yourself, it leaves this info
> in the file.
>
> If you don't care about it you can unset CONFIG_DEBUG_INFO
> and it won't generate it.
>
> Dave
Is there a convenient way to manually strip the debug info from
the files after they are compiled? In other words, how does rpm
do it?
--
prothonotar at tarnation.dyndns.org
"Every man is a mob, a chain gang of idiots."
- Jonathan Nolan, /Memento Mori/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040607/314e4f12/attachment-0001.sig>
More information about the fedora-list
mailing list