-
Notifications
You must be signed in to change notification settings - Fork 48
strip kernel modules #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sounds like a good idea to decease size of the image. And I think |
I am looking at the find "$BUILDROOT" -type f -perm -u+w -print0 2>/dev/null | while read -d '' bin; do
case $(file -bi "$bin") in
*application/x-sharedlib*)
# Libraries (.so)
strip --strip-unneeded "$bin"
;;
*application/x-archive*)
# Libraries (.a)
strip --strip-debug "$bin"
;;
*application/x-executable*)
# Binaries
strip --strip-all "$bin"
;;
esac
done |
So for kernel modules and shared libraries we need to use Stripping ELF binaries decreases size of the final image by about 5%. It is because Arch binaries already exclude debug symbols and there is not that much to strip. |
This helps to cut some amount of unneeded information from binaries and reduce the final image size a bit. My tests show ~5% image size reduction. The feature can be either enabled with 'strip' config option or with '-strip' command line flag. Closes #36
The functionality is implemented at |
initramfs size is reduced by stripping kernel modules.
mkinitcpio has strip hook.
The text was updated successfully, but these errors were encountered: