What's new

huge size difference of custom built kernel modules

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.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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