When launching a guest kernel via the bootrom option
(-o bootrom=kernel.bin), bhyve loads the binary at the base of guest
memory and previously placed the Device Tree (FDT) immediately after the
raw file size.
However, a flat kernel binary on disk does not include its runtime BSS
segment. During boot, the kernel claims memory directly following its
data section for BSS, overlapping with the FDT and causing the guest to
panic on boot. Add 2MB of padding after the loaded binary length to
place the FDT safely beyond the BSS segment while preserving the
standard 8-byte alignment.
Signed-off-by: Doongar Singh <doonbsd@gmail.com>