summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorIvan Gorinov <ivan.gorinov@intel.com>2018-04-06 04:32:06 +0300
committerAlexander Graf <agraf@suse.de>2018-04-06 10:28:01 +0300
commit61a5ced6ad9376a0755ea2a920667e3a9072990c (patch)
tree2770f93a3032f95b0e959849209d7e4e231364fb /cmd
parent0c5d2a3dac01a8d436639ab5b7e44f4218d62b84 (diff)
downloadu-boot-61a5ced6ad9376a0755ea2a920667e3a9072990c.tar.xz
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: Ivan Gorinov <ivan.gorinov@intel.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions