elf: Add support for PPC64 ELF V1 ABI in bootelf
authorRob Bracero <robbracero@gmail.com>
Wed, 1 Aug 2018 02:57:42 +0000 (22:57 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 10 Aug 2018 17:50:15 +0000 (13:50 -0400)
commit2846ea81a0295b47dda75111cfef099d5eed85e2
tree10164c8c9b5fc2d1c36123facd234501e6235b13
parent9beb49061031b5b7a59360849a9fdf701a30c071
elf: Add support for PPC64 ELF V1 ABI in bootelf

This update adds PPC64 ELF V1 ABI support to bootelf for both the
program header and section header options. Elf64 support was already
present for the program header option, but it was not handling the
PPC64 ELF V1 ABI case. For the PPC64 ELF V1 ABI, the e_entry field of
the elf header must be treated as function descriptor pointer instead
of a function address. The first doubleword of the function descriptor
is the function's entry address.

Signed-off-by: Rob Bracero <robbracero@gmail.com>
[trini: Fix whitespace issues]
Signed-off-by: Tom Rini <trini@konsulko.com>
cmd/elf.c
include/elf.h