aboutsummaryrefslogtreecommitdiffstats
path: root/include/elf.h
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2020-02-12 13:55:03 +0530
committerLokesh Vutla <lokeshvutla@ti.com>2020-03-03 13:08:14 +0530
commit805b3cac1e0cae04d16ab893f5cffb446ec74c9c (patch)
tree9c1b7780a1a354313d421c7529802eece5c1a19c /include/elf.h
parent0900254c8caf0736e4816fd579596989bd6b4eb9 (diff)
downloadplatform_external_u-boot-805b3cac1e0cae04d16ab893f5cffb446ec74c9c.tar.gz
platform_external_u-boot-805b3cac1e0cae04d16ab893f5cffb446ec74c9c.tar.bz2
platform_external_u-boot-805b3cac1e0cae04d16ab893f5cffb446ec74c9c.zip
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>
Diffstat (limited to 'include/elf.h')
-rw-r--r--include/elf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/elf.h b/include/elf.h
index 81f40191d7..e7c51986df 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -692,6 +692,10 @@ unsigned long elf_hash(const unsigned char *name);
#ifndef __ASSEMBLER__
int valid_elf_image(unsigned long addr);
+unsigned long load_elf64_image_phdr(unsigned long addr);
+unsigned long load_elf64_image_shdr(unsigned long addr);
+unsigned long load_elf_image_phdr(unsigned long addr);
+unsigned long load_elf_image_shdr(unsigned long addr);
#endif
#endif /* _ELF_H */