How do I strip local symbols from linux kernel module without breaking it?

Posted by Kimvais on Stack Overflow See other posts from Stack Overflow or by Kimvais
Published on 2010-05-24T08:57:18Z Indexed on 2010/05/24 9:01 UTC
Read the original article Hit count: 228

Filed under:
|
|

If I do --strip-debug or --strip-unneeded, I have the .ko that lists all function names with nm, if I do just strip foo.ko I have a kernel module that refuses to load.

Does anyone know a quick shortcut how to remove all symbols that are not needed for module loading so that people cannot reverse engineer the API:s as easily?

PS: For all you open source bigots; this is something that general public will never be using in any case so no need to turn the question into a GPL flame war.

© Stack Overflow or respective owner

Related posts about linux-kernel

Related posts about strip