Size problem compiling kernel modules

Aaron Gaudio prothonotar at tarnation.dyndns.org
Mon Jun 7 19:11:16 UTC 2004


Behold, Dave Jones <davej at redhat.com> hath decreed:
> On Mon, 2004-06-07 at 13:50, Aaron Gaudio wrote:
>  
> > > If you don't care about it you can unset CONFIG_DEBUG_INFO
> > > and it won't generate it.
> > 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?
> 
> You know, I'm not actually sure.
> Taking a peek inside the .spec file, there's this gem..
> 
>     # mark modules executable so that strip-to-file can strip them
>     find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name "*.ko" -type f  |
> xargs chmod u+x
> 
> Which seems to be something magical that rpm invokes.
> 

Not very magical: it is just changing the permissions on all
the kernel modules to be executable by their owner.

The comment is helpful though, because it seems to imply that
rpm is just using some option to or version of the strip command.

-- 

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/903b4e7c/attachment-0001.sig>


More information about the fedora-list mailing list