ELF: Fix compilation error when CONFIG_ELF_DUMPBUFFER is defined. From Pelle Windestam
This commit is contained in:
parent
3bfc1effaf
commit
d864c38e31
@ -255,7 +255,7 @@ static int elf_loadbinary(struct binary_s *binp)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
elf_dumpbuffer("Entry code", (FAR const uint8_t*)binp->entrypt,
|
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);
|
elf_uninit(&loadinfo);
|
||||||
return OK;
|
return OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user