Re: Stripping in module

2005-07-25 Thread Christopher Allen Wing
Marco: FWIW, the Red Hat kernel RPMs effectively do the following when they package kernel modules: strip -g This is done via the script: /usr/lib/rpm/brp-strip which is implicitly run on all executable files packaged in the RPM. If you ensure that the module .ko file

RE: Stripping in module

2005-07-25 Thread 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: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Budde, Marco >Sent: Sunday, July 24, 2005 11:24 PM

Re: Stripping in module

2005-07-25 Thread Wakko Warner
Michael Tokarev wrote: > Wakko Warner wrote: > [] > > I would also be interested in this. For instance the AIC7xxx driver has > > every PCI id in the module I think in the .modinfo section which is not > > truely required once depmod has been run. [] > > The .modinfo section, for example the PCI

Re: Stripping in module

2005-07-25 Thread Michael Tokarev
Wakko Warner wrote: [] > I would also be interested in this. For instance the AIC7xxx driver has > every PCI id in the module I think in the .modinfo section which is not > truely required once depmod has been run. [] The .modinfo section, for example the PCI IDs, IS required for the module to

Re: Stripping in module

2005-07-25 Thread Wakko Warner
Jan Engelhardt wrote: > >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 > > Yes, I'd also be interested in what

Re: Stripping in module

2005-07-25 Thread Jan Engelhardt
>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 Yes, I'd also be interested in what sections can actually be stripped, if

Re: Stripping in module

2005-07-25 Thread Jan Engelhardt
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 Yes, I'd also be interested in what sections can actually be stripped, if any.

Re: Stripping in module

2005-07-25 Thread Wakko Warner
Jan Engelhardt wrote: 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 Yes, I'd also be interested in what sections can

Re: Stripping in module

2005-07-25 Thread Michael Tokarev
Wakko Warner wrote: [] I would also be interested in this. For instance the AIC7xxx driver has every PCI id in the module I think in the .modinfo section which is not truely required once depmod has been run. [] The .modinfo section, for example the PCI IDs, IS required for the module to

Re: Stripping in module

2005-07-25 Thread Wakko Warner
Michael Tokarev wrote: Wakko Warner wrote: [] I would also be interested in this. For instance the AIC7xxx driver has every PCI id in the module I think in the .modinfo section which is not truely required once depmod has been run. [] The .modinfo section, for example the PCI IDs, IS

RE: Stripping in module

2005-07-25 Thread 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Budde, Marco Sent: Sunday, July 24, 2005 11:24 PM To:

Re: Stripping in module

2005-07-25 Thread Christopher Allen Wing
Marco: FWIW, the Red Hat kernel RPMs effectively do the following when they package kernel modules: strip -g module.ko This is done via the script: /usr/lib/rpm/brp-strip which is implicitly run on all executable files packaged in the RPM. If you ensure that the module