9
0
Fork 0

ELF: Fix compilation error when CONFIG_ELF_DUMPBUFFER is defined. From Pelle Windestam

This commit is contained in:
Gregory Nutt 2014-06-12 07:53:31 -06:00
parent 3968d8c709
commit dace4cb7b9
1 changed files with 1 additions and 1 deletions

View File

@ -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;