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
005 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

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

Stripping in module

2005-07-25 Thread Budde, Marco
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

Stripping in module

2005-07-25 Thread Budde, Marco
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

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
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

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