elf: Add a very simple ELF64 loader
authorBin Meng <bmeng.cn@gmail.com>
Thu, 12 Apr 2018 05:02:14 +0000 (22:02 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 16 Apr 2018 08:54:51 +0000 (16:54 +0800)
commit839c4e9c5bb09ac1ef2c129c7082a15b9cbd3a8a
tree9477374df08c5b5159271a1a3402b9ca4f66f8ad
parent2bce3f595d224fc620b07449d47fa2b08151a890
elf: Add a very simple ELF64 loader

This adds a very simple ELF64 loader via program headers, similar
to load_elf_image_phdr() that we already have.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/elf.c