-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dracut.sh): add --aggresive-strip option
Dracut currently calls `eu-strip` or `strip` with -g, which only strips out .debug_* sections. symtab and strtab are kept, but are not required for runtime, and people will rarely need to do binary level debugging work in initramfs. So introduce a --aggresive-strip options, try strip out all sections that are not required for runtime. This can help reduce the binary size by a lot. For example, the size of libc.so is reduced by a lot when stripped with no option than with -g. 3014184 libc-2.28.orig.so 2970920 libc-2.28.strip-g.so 1460904 libc-2.28.strip.so Signed-off-by: Kairui Song <[email protected]>
- Loading branch information
Showing
1 changed file
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters