lib: elf: Move the generic elf loading/validating functions to lib
authorKeerthy <j-keerthy@ti.com>
Wed, 12 Feb 2020 08:25:03 +0000 (13:55 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 3 Mar 2020 07:38:14 +0000 (13:08 +0530)
commit805b3cac1e0cae04d16ab893f5cffb446ec74c9c
tree9c1b7780a1a354313d421c7529802eece5c1a19c
parent0900254c8caf0736e4816fd579596989bd6b4eb9
lib: elf: Move the generic elf loading/validating functions to lib

Move the generic elf loading/validating functions to lib/
so that they can be re-used and accessed by code existing
outside cmd.

While at it remove the duplicate static version of load_elf_image_phdr
under arch/arm/mach-imx/imx_bootaux.c.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Suggested-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
arch/arm/mach-imx/imx_bootaux.c
cmd/Kconfig
cmd/elf.c
include/elf.h
lib/Kconfig
lib/Makefile
lib/elf.c [new file with mode: 0644]