1
0
Fork 0
forked from len0rd/rockbox

sbtools: add helper to determine if a file is a valid ELF image

Change-Id: Ie0e9c05569ca9b02fd36f31fd7323f02b14e1b60
This commit is contained in:
Amaury Pouly 2013-08-04 15:03:29 +02:00
parent 76446dda45
commit e4c9eaa7e8
2 changed files with 15 additions and 0 deletions

View file

@ -94,6 +94,8 @@ bool elf_get_start_addr(struct elf_params_t *params, uint32_t *addr);
int elf_get_nr_sections(struct elf_params_t *params);
void elf_release(struct elf_params_t *params);
bool elf_guess(elf_read_fn_t read, void *user);
/* standard implementation of read/write/printf functions
* with user being a FILE* pointer */
void elf_std_printf(void *user, bool error, const char *fmt, ...);