mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wakko Warner <wakko@animx.eu.org>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Stripping in module
Date: Mon, 25 Jul 2005 07:26:22 -0400	[thread overview]
Message-ID: <20050725112622.GA1537@animx.eu.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0507250928300.18209@yvahk01.tjqt.qr>

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 actually be stripped, if any.
> Userspace shared libs for example can be `strip -s`'ed and they still work as 
> expected, does not look like this holds for kernel modules.

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.  I wanted to strip out this
information so that modules would be smaller.  I had stripped this section
out in testing a floppy boot and then most modules would not load anymore.

-- 
 Lab tests show that use of micro$oft causes cancer in lab animals

  reply	other threads:[~2005-07-25 11:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-25  6:23 Budde, Marco
2005-07-25  7:29 ` Jan Engelhardt
2005-07-25 11:26   ` Wakko Warner [this message]
2005-07-25 11:23     ` Michael Tokarev
2005-07-25 16:27       ` Wakko Warner
2005-07-25 16:14 Aleksey Gorelov
2005-07-25 17:18 Christopher Allen Wing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050725112622.GA1537@animx.eu.org \
    --to=wakko@animx.eu.org \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®