Skip to content
Snippets Groups Projects
Commit 61a5ced6 authored by Ivan Gorinov's avatar Ivan Gorinov Committed by Alexander Graf
Browse files

efi_loader: Check machine type in the image header


Check FileHeader.Machine to make sure the EFI executable image is built
for the same architecture. For example, 32-bit U-Boot on x86 will print
an error message instead of loading an x86_64 image and crashing.

Signed-off-by: default avatarIvan Gorinov <ivan.gorinov@intel.com>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 0c5d2a3d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment