]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[multiboot] Remove userptr_t from Multiboot and ELF image parsing
authorMichael Brown <mcb30@ipxe.org>
Mon, 28 Apr 2025 10:20:16 +0000 (11:20 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 28 Apr 2025 12:06:18 +0000 (13:06 +0100)
commitba2135d0fd6052501d18917ca316e2a01eef10d7
tree40c0efb39c11f054457c02168266b944dd497e64
parentc8c5cd685fa86ffd65c5e5b1e0ce2e58902666e6
[multiboot] Remove userptr_t from Multiboot and ELF image parsing

Simplify Multiboot and ELF image parsing by assuming that the
Multiboot and ELF headers are directly accessible via pointer
dereferences, and add some missing header validations.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/image/elfboot.c
src/arch/x86/image/multiboot.c
src/image/elf.c
src/include/ipxe/elf.h