I regularly create packages for Slackware Linux and part of the process is stripping binaries so that they take up less space. I find that if I
strip --strip-all (or
strip with no options) kernel modules, they often fail to insert:
FATAL: Error inserting cloop (/lib/modules/188.8.131.52-smp/kernel/fs/cloop/cloop.ko): Invalid module format
What level of stripping is recommended for kernel modules? If I use
--strip-debug, will I remove debugging symbols that will negatively affect system performance and/or error logging?