summaryrefslogtreecommitdiff
path: root/nuttx/binfmt/elf.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-25 22:10:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-25 22:10:56 +0000
commitd6b30f6e49779b31617fad8e8daa06470145f909 (patch)
tree7123939c22af75fef3c7ace3aaa486afdaf4b6d7 /nuttx/binfmt/elf.c
parent5ae419f6845ff28bcbdb339cdfb66f6b2e46f9ab (diff)
downloadpx4-nuttx-d6b30f6e49779b31617fad8e8daa06470145f909.tar.gz
px4-nuttx-d6b30f6e49779b31617fad8e8daa06470145f909.tar.bz2
px4-nuttx-d6b30f6e49779b31617fad8e8daa06470145f909.zip
More ELF loader changes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5261 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/binfmt/elf.c')
-rw-r--r--nuttx/binfmt/elf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/binfmt/elf.c b/nuttx/binfmt/elf.c
index ba12a22ea..d9c3d0b9c 100644
--- a/nuttx/binfmt/elf.c
+++ b/nuttx/binfmt/elf.c
@@ -139,11 +139,11 @@ static void elf_dumploadinfo(FAR struct elf_loadinfo_s *loadinfo)
bdbg(" e_shnum: %d\n", loadinfo->ehdr.e_shnum);
bdbg(" e_shstrndx: %d\n", loadinfo->ehdr.e_shstrndx);
- if (loadinfo->shdr && loadinfo->ehdr.e_shum > 0)
+ if (loadinfo->shdr && loadinfo->ehdr.e_shnum > 0)
{
- for (i = 0; i < loadinfo->ehdr.e_shum; i++)
+ for (i = 0; i < loadinfo->ehdr.e_shnum; i++)
{
- FAR ELF32_Shdr *shdr = &loadinfo->shdr[i];
+ FAR Elf32_Shdr *shdr = &loadinfo->shdr[i];
bdbg("Sections %d:\n", i);
bdbg(" sh_name: %08x\n", shdr->sh_name);
bdbg(" sh_type: %08x\n", shdr->sh_type);
@@ -184,7 +184,7 @@ static int elf_loadbinary(struct binary_s *binp)
elf_dumploadinfo(&loadinfo);
if (ret != 0)
{
- bdbg("Failed to initialize for load of NXFLT program: %d\n", ret);
+ bdbg("Failed to initialize for load of ELF program: %d\n", ret);
goto errout;
}
@@ -194,7 +194,7 @@ static int elf_loadbinary(struct binary_s *binp)
elf_dumploadinfo(&loadinfo);
if (ret != 0)
{
- bdbg("Failed to load NXFLT program binary: %d\n", ret);
+ bdbg("Failed to load ELF program binary: %d\n", ret);
goto errout_with_init;
}