Messages in this thread | | | Subject | RE: Stripping in module | Date | Mon, 25 Jul 2005 09:14:46 -0700 | From | "Aleksey Gorelov" <> |
| |
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: linux-kernel-owner@vger.kernel.org >[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Budde, Marco >Sent: Sunday, July 24, 2005 11:24 PM >To: linux-kernel@vger.kernel.org >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 majordomo@vger.kernel.org >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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |