From d864c38e31983eeb6c92dd9c26d3965be2be6e07 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 12 Jun 2014 07:53:31 -0600 Subject: [PATCH] ELF: Fix compilation error when CONFIG_ELF_DUMPBUFFER is defined. From Pelle Windestam --- binfmt/elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binfmt/elf.c b/binfmt/elf.c index 575b498bbf..2b3c0154fa 100644 --- a/binfmt/elf.c +++ b/binfmt/elf.c @@ -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;