freebsd-dev/stand
Roger Pau Monné 5e4279a8f3 loader: fix multiboot loading on UEFI
The Xen kernel has no symbol tables, so calling lookup_symbol against
it triggers the following Divide by Zero fault:

Loading Xen kernel...
/boot/xen data=0x2809c8+0x149638 |
!!!! X64 Exception Type - 00(#DE - Divide Error)  CPU Apic ID - 00000000 !!!!

Fix lookup_symbol to prevent the #DE fault from happening if the
symbol table is not loaded and also fix loadfile_raw to mark multiboot
kernels as relocatable, since the only multiboot kernel supported is
Xen and was already unconditionally booted as relocatable.

Fixes: f75caed644 ('amd64 UEFI loader: stop copying staging area to 2M physical')
Reviewed by: imp, kib
Differential Revision: https://reviews.freebsd.org/D31507
2021-08-12 09:18:33 +02:00
..
arm
arm64
common loader: fix multiboot loading on UEFI 2021-08-12 09:18:33 +02:00
defaults loader.conf(5): mention "efi" option for "console" parameter 2021-08-01 06:41:49 +08:00
efi amd64 UEFI loader: stop copying staging area to 2M physical 2021-08-08 22:52:29 +03:00
fdt loader: Fix dtb loading 2021-07-05 15:53:08 +02:00
ficl
ficl32
fonts
forth loader: support.4th resets the read buffer incorrectly 2021-07-28 13:50:38 -06:00
i386 type: becauce -> because 2021-07-21 20:03:35 -06:00
images
kshim Fix build of stand/usb . 2021-04-12 16:13:33 +02:00
liblua EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00
liblua32
libofw
libsa loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
libsa32
lua cli.lua.8: make the command match the code 2021-07-28 20:54:14 -06:00
man loader: Create loader_simp(8) to document simple version of loader 2021-07-14 16:59:51 -06:00
mips Disable PIE for MIPS BERI boot loader 2021-02-25 06:41:35 +01:00
powerpc Disable PIE for powerpc bootloaders. 2021-02-25 00:26:11 +01:00
uboot
usb
userboot Fix build of stand/ when building world with ASAN 2021-08-02 14:33:24 +01:00
defs.mk stand: Add MK_PIE=no to defs.mk 2021-08-11 11:03:19 -06:00
fdt.mk
ficl.mk EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00
loader.mk stand/common: Add support for timestamp logging (tslog) 2021-06-20 20:09:43 -07:00
lua.mk
Makefile
Makefile.amd64
Makefile.inc
uboot.mk
veriexec.mk EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00