Project

General

Profile

Actions

Feature #9991

closed

loader: optimize for size

Added by Toomas Soome almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
2018-11-21
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

The current loader build is using -O2 optimize flag, switch to use -Os instead. The reason is to save space in binary sizes, this is especially important with BIOS version.

Before:

-r-xr-xr-x   1 root     sys       188928 nov 18 16:48 bootia32.efi
-r-xr-xr-x   1 root     sys       165376 nov 18 16:48 bootx64.efi
-r-xr-xr-x   1 root     sys       499200 nov 18 16:48 loader32.efi
-r-xr-xr-x   1 root     sys       530944 nov 18 16:48 loader64.efi
-r--r--r--   1 root     sys       185856 nov 10 13:12 gptzfsboot
-r--r--r--   1 root     sys       417792 nov 18 16:48 loader

and after:

-rwxr-xr-x   1 tsoome   staff     156160 Nov 19 12:19 bootx64.efi
-rwxr-xr-x   1 tsoome   staff     178176 Nov 19 12:18 bootia32.efi
-rwxr-xr-x   1 tsoome   staff     465607 Nov 19 12:19 loader64.efi
-rwxr-xr-x   1 tsoome   staff     447144 Nov 19 12:19 loader32.efi
-rw-r--r--   1 tsoome   staff     167424 Nov 19 12:18 gptzfsboot
-rw-r--r--   1 tsoome   staff     372736 Nov 19 12:18 loader


Subtasks 1 (0 open1 closed)

Bug #10000: loader: stop using ../zfs/libzfs.h but instead use libzfs.hClosedToomas Soome2018-11-21

Actions
Actions

Also available in: Atom PDF