What's new

huge size difference of custom built kernel modules

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

trx1138

New Around Here
hi, noob question here.
after some trial and errors, I was able to build a few kernel modules I need.

modules were functional as expected but the size of them were huge unlike to stock modules included in merlin's firmware.
for example, in case of xt_HL.ko, stock = 5.6kb vs 305kb = my compilation.

although it seems harmless, i'm still wondering if this is normal.

or is there anyway to reduce already built kmod's binary size?

thanks.
 
Your modules probably contain debug symbols that haven't been stripped.
 
thanks!

was able to stript them down with strip command. :D
Make sure you only strip debug symbols, not relocate symbols.
 
RMerlin is correct. When you strip make sure there is no relocate. Strip works best when initiated in bmw or better environment.
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top