From: "Aleksey Gorelov" <Aleksey_Gorelov@Phoenix.com>
To: "Budde, Marco" <budde@telos.de>, <linux-kernel@vger.kernel.org>
Subject: RE: Stripping in module
Date: Mon, 25 Jul 2005 09:14:46 -0700 [thread overview]
Message-ID: <0EF82802ABAA22479BC1CE8E2F60E8C33D2880@scl-exch2k3.phoenix.com> (raw)
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/
>
next reply other threads:[~2005-07-25 16:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-25 16:14 Aleksey Gorelov [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-07-25 17:18 Christopher Allen Wing
2005-07-25 6:23 Budde, Marco
2005-07-25 7:29 ` Jan Engelhardt
2005-07-25 11:26 ` Wakko Warner
2005-07-25 11:23 ` Michael Tokarev
2005-07-25 16:27 ` Wakko Warner
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=0EF82802ABAA22479BC1CE8E2F60E8C33D2880@scl-exch2k3.phoenix.com \
--to=aleksey_gorelov@phoenix.com \
--cc=budde@telos.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®