summaryrefslogtreecommitdiff
path: root/nuttx/binfmt/elf.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-24 14:12:45 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-24 14:12:45 -0600
commit54f46fc6998873b204ac161371cb1ae90ea7151d (patch)
tree565efdd20ae50c978dfda2ee4e98d100e09741d0 /nuttx/binfmt/elf.c
parent14f5d59d7bac51278acdcd4db24af4a8624464db (diff)
downloadnuttx-54f46fc6998873b204ac161371cb1ae90ea7151d.tar.gz
nuttx-54f46fc6998873b204ac161371cb1ae90ea7151d.tar.bz2
nuttx-54f46fc6998873b204ac161371cb1ae90ea7151d.zip
After cached related fix, the ELF example is now functional
Diffstat (limited to 'nuttx/binfmt/elf.c')
-rw-r--r--nuttx/binfmt/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/binfmt/elf.c b/nuttx/binfmt/elf.c
index eb0adc702..cff3463a7 100644
--- a/nuttx/binfmt/elf.c
+++ b/nuttx/binfmt/elf.c
@@ -257,7 +257,7 @@ static int elf_loadbinary(struct binary_s *binp)
#endif
elf_dumpbuffer("Entry code", (FAR const uint8_t*)binp->entrypt,
- MIN(loadinfo.elfsize - loadinfo.ehdr.e_entry, 512));
+ MIN(loadinfo.textsize - loadinfo.ehdr.e_entry, 512));
elf_uninit(&loadinfo);
return OK;