Re: Stripping in module

From: Christopher Allen Wing
Date: Mon Jul 25 2005 - 12:20:20 EST


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:


which is implicitly run on all executable files packaged in the RPM.

If you ensure that the module .ko file is executable, then RPM will strip it for you automatically.

-Chris Wing

Budde, Marco <> wrote:


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.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at