Charlie Brady wrote:
On Fri, 27 Oct 2006, Sun Zongjun-E5739C wrote:
I stripped the ipv6.ko and insert it. System reports.
Ipv6: module has no symbols(stripped?)
Insmod: error inserting 'ipv6.ko': -1 Invalid module format
Why system doesno't allow me to strip kernel module?
The symbols are required for the module to be linked to the running kernel.
Why do you want to strip the module?
probably to make it smaller?
/*
-g -S -d --strip-debug Remove all debugging symbols & sections
--strip-unneeded Remove all symbols not needed by relocations
*/
try some of these flags to strip, and see if that works. The result will not be shocking:
$ ls -l e1000.ko
-rw-r--r-- 1 ahkok ahkok 139827 2006-10-27 07:49 e1000.ko
$ strip -g -S -d --strip-debug e1000.ko
$ ls -l e1000.ko
-rw-r--r-- 1 ahkok ahkok 139480 2006-10-27 07:50 e1000.ko
that wasn't really worth it :)
Auke
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html