Re: Size problem compiling kernel modules

From: Aaron Gaudio (prothonotar_at_tarnation.dyndns.org)
Date: 06/07/04

  • Next message: Aaron Gaudio: "Re: (no subject)"
    Date: Mon, 7 Jun 2004 08:50:54 -0400
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    
    
    

    Behold, Dave Jones <davej@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/
      
    
    

    
    

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    


  • Next message: Aaron Gaudio: "Re: (no subject)"

    Relevant Pages

    • Re: Size problem compiling kernel modules
      ... On Mon, 2004-06-07 at 10:22, Dave Abbott wrote: ... > The resulting module object files are enormous. ... The ones from the rpm have their debug info stripped ... When you compile it yourself, ...
      (Fedora)
    • Re: ATI Graphics Driver
      ... an RPM package but the RPM was unable to compile the required kernel ... module in the postinstall script but now I find that I can neither ... compile this myself ... ... Software] to be able to compile kernel stuff. ...
      (alt.os.linux.suse)
    • Re: netkit-telnet compile fail. `exit undeclared in main.cc ?
      ... and in what order to run the patches and what is done to compile, install, ... or remove the package. ... patch prior to actual compilation and this patch process fails ... or just the materials that come in the source rpm? ...
      (comp.os.linux.misc)
    • Re: GIB on Linux
      ... I uninstalled the RPM and went to the WxWidgets web site, ... and installed it, and it did have a wx-config command, but "make" now ... it will compile and run fine. ... Most are supplied as source tarballs, ...
      (rec.games.bridge)
    • Re: [SLE] hostap
      ... I'd like to learn how to compile this from source if anyone could point me ... If you're new enough to SUSE that you're not familiar with installing rpm ... packages, which is pretty basic, you really ought to shy away from... ...
      (SuSE)