commit | 749d5c1efe29f964c974002f2813e825b4b71849 | [log] [tgz] |
---|---|---|
author | Ivan Gorinov <ivan.gorinov@intel.com> | Thu Apr 05 18:32:06 2018 -0700 |
committer | Alexander Graf <agraf@suse.de> | Fri Apr 06 09:28:01 2018 +0200 |
tree | 2770f93a3032f95b0e959849209d7e4e231364fb | |
parent | ad4d67cfee50655ac66ac1118b723be1b236cb68 [diff] |
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>