2005-01-21 18:24:12

by Aleksey Gorelov

[permalink] [raw]
Subject: modules strip

Hi,

I'm trying to strip modules a bit (2.6, x86) using

strip -R .not -R .comment --strip-unneeded module.ko

It seems to keep intact relocation & ksymtab symbols, tested on my
configuration and seems to reduce the overall size for about 10-15%
(usefull for embedded). Does anybody know if there is any pitfalls with
that ?

Thanks,
Aleks.


2005-01-21 21:23:51

by Matthias-Christian Ott

[permalink] [raw]
Subject: Re: modules strip

Aleksey Gorelov wrote:

>Hi,
>
> I'm trying to strip modules a bit (2.6, x86) using
>
>strip -R .not -R .comment --strip-unneeded module.ko
>
> It seems to keep intact relocation & ksymtab symbols, tested on my
>configuration and seems to reduce the overall size for about 10-15%
>(usefull for embedded). Does anybody know if there is any pitfalls with
>that ?
>
>Thanks,
>Aleks.
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to [email protected]
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
>
>
>
Hi!
Why should there be a pitfall, you just strip some usualy not needed
information. But maybe this causes problems with functions or parts of
the Kernel which need this information.

Matthias-Christian Ott