mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
0900254c8c
commit
805b3cac1e
7 changed files with 258 additions and 293 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue