Inflated modules result from compiling custom 2.6.0-0.test11.1.99 kernel

Willem Riede wrrhdev at riede.org
Wed Dec 17 22:34:14 UTC 2003


On 2003.12.17 10:48, Jeremy Katz wrote:
> On Sat, 2003-12-13 at 19:55, Willem Riede wrote:
> > To my surprise, the result of compilation is wildly bloated modules:
> [snip]
> > Does anybody understand why that may be, and how I can put them on a diet?
> 
> The modules aren't being stripped by the kernel makefiles so that you
> have debugging information.  In the RPM, they then get stripped off into
> .debug files for the -debuginfo package.  
> 
> To put them on a diet,  just `find /lib/modules/$(uname -r)/ -name
> '*.ko' |xargs strip`

Hmm...

[root at fallguy linux-2.6.0-0.test11.1.99]# uname -r
2.6.0-0.test11.1.99wr0
[root at fallguy linux-2.6.0-0.test11.1.99]# ls -l /lib/modules/2.6.0-0.test11.1.99wr0/kernel/drivers/block/loop.ko
-rw-r--r--    1 root     root       221718 Dec 17 17:26 /lib/modules/2.6.0-0.test11.1.99wr0/kernel/drivers/block/loop.ko
[root at fallguy linux-2.6.0-0.test11.1.99]# modprobe loop
[root at fallguy linux-2.6.0-0.test11.1.99]# lsmod | grep loop
loop                   17416  0
[root at fallguy linux-2.6.0-0.test11.1.99]# rmmod loop
[root at fallguy linux-2.6.0-0.test11.1.99]# find /lib/modules/2.6.0-0.test11.1.99wr0 -name '*.ko' | xargs strip
[root at fallguy linux-2.6.0-0.test11.1.99]# ls -l /lib/modules/2.6.0-0.test11.1.99wr0/kernel/drivers/block/loop.ko
-rw-r--r--    1 root     root        15444 Dec 17 17:30 /lib/modules/2.6.0-0.test11.1.99wr0/kernel/drivers/block/loop.ko
[root at fallguy linux-2.6.0-0.test11.1.99]# modprobe loop
FATAL: Error inserting loop (/lib/modules/2.6.0-0.test11.1.99wr0/kernel/drivers/block/loop.ko): Invalid argument
[root at fallguy linux-2.6.0-0.test11.1.99]#


What gives?

Thanks, Willem Riede.





More information about the fedora-devel-list mailing list