Page MenuHomeFreeBSD

stand: Compile out the extensive superblock diagnostic messages for BIOS loader
ClosedPublic

Authored by imp on Aug 12 2022, 5:12 PM.
Tags
None
Referenced Files
F102730356: D36175.diff
Sat, Nov 16, 11:34 AM
Unknown Object (File)
Mon, Oct 28, 9:56 PM
Unknown Object (File)
Sun, Oct 27, 9:40 PM
Unknown Object (File)
Sat, Oct 19, 1:25 PM
Unknown Object (File)
Oct 17 2024, 11:09 AM
Unknown Object (File)
Oct 8 2024, 3:24 PM
Unknown Object (File)
Sep 30 2024, 2:27 AM
Unknown Object (File)
Sep 21 2024, 4:42 AM
Subscribers

Details

Summary

The BIOS loader operates in a very constrained environment. The messages
for the super block integrity tests take up about 12k of space. Compile
them out for the BIOS loader, while leaving it intact for all other
loaders that aren't space constrained. These aren't used in the 'super
tiny' *boot* programs, so no adjustment is needed there.

We reply on the fact that (a) i386 doesn't support 32-bit UEFI booting
and (b) LIBSA_CPUARCH is "i386" when building on both i386 and when
we're building the 32-bit libsa32 library.

This saves about 12k of space for this constrained envrionment and will
take a bit of the pressure off some machines where the loader has grown
too big for their BIOS (see comments in i386/loader/Makefile for
details).

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable