Actions
Feature #9991
closedloader: optimize for size
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
Updated by Electric Monk over 3 years ago
- Status changed from In Progress to Closed
git commit 6daabf26a113f7ed649c4995afca2ddad12c662b
commit 6daabf26a113f7ed649c4995afca2ddad12c662b Author: Toomas Soome <tsoome@me.com> Date: 2018-11-26T02:13:16.000Z 9991 loader: optimize for size Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Peter Tribble <peter.tribble@gmail.com> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Dan McDonald <danmcd@joyent.com>
Actions