ELF: Fix compilation error when CONFIG_ELF_DUMPBUFFER is defined. From Pelle Windestam
This commit is contained in:
parent
3968d8c709
commit
dace4cb7b9
|
@ -255,7 +255,7 @@ static int elf_loadbinary(struct binary_s *binp)
|
|||
#endif
|
||||
|
||||
elf_dumpbuffer("Entry code", (FAR const uint8_t*)binp->entrypt,
|
||||
MIN(loadinfo.allocsize - loadinfo.ehdr.e_entry, 512));
|
||||
MIN(loadinfo.elfsize - loadinfo.ehdr.e_entry, 512));
|
||||
|
||||
elf_uninit(&loadinfo);
|
||||
return OK;
|
||||
|
|
Loading…
Reference in New Issue