Well, the best you can do is
strip -R .note -R .comment --strip-unneeded.
If you go for more, module might not be loaded/initialized properlly
Aleks.
>-----Original Message-----
>From: [email protected]
>[mailto:[email protected]] On Behalf Of Budde, Marco
>Sent: Sunday, July 24, 2005 11:24 PM
>To: [email protected]
>Subject: Stripping in module
>
>Hi,
>
>at the moment I am packaging a Linux module as an RPM archive.
>
>Therefor I would like to remove some of the not exported/needed
>symbols (like e.g. static functions or constants) from the
>Linux module.
>
>What is the best way to do this with v2.6.
>
>I have tried e.g. to remove all symbols starting with "telos"
>from the module like this (after kbuild):
>
> strip -w -K '!telos*' -K 'telosi2c_usb_driver' telosi2c_linux.ko
>
>When I try to load such a module, insmod dies with a segmentation
>fault or the complete kernel dies (with "invalid operand: 0000").
>What is the reason for this problem?
>
>What is the correct way using kbuild to remove some symbols?
>
>cu, Marco
>
>-
>To unsubscribe from this list: send the line "unsubscribe
>linux-kernel" in
>the body of a message to [email protected]
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
|
|