From 1ba327bd1c3e895675e7ab504af1064635fdf282 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 27 Oct 2012 00:04:47 +0000 Subject: The ELF loader is basically functional (needs more testing) git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5265 42af7a65-404d-4744-a932-0658087f49c3 --- apps/examples/elf/elf_main.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'apps/examples/elf/elf_main.c') diff --git a/apps/examples/elf/elf_main.c b/apps/examples/elf/elf_main.c index 3a6eae9d9..23a6b2d21 100644 --- a/apps/examples/elf/elf_main.c +++ b/apps/examples/elf/elf_main.c @@ -52,10 +52,10 @@ #include #include #include +#include #include "tests/romfs.h" #include "tests/dirlist.h" -#include "tests/symtab.h" /**************************************************************************** * Definitions @@ -134,6 +134,13 @@ static const char delimiter[] = static char path[128]; +/**************************************************************************** + * Symbols from Auto-Generated Code + ****************************************************************************/ + +extern const struct symtab_s exports[]; +extern const int nexports; + /**************************************************************************** * Private Functions ****************************************************************************/ @@ -207,7 +214,7 @@ int elf_main(int argc, char *argv[]) bin.filename = path; bin.exports = exports; - bin.nexports = NEXPORTS; + bin.nexports = nexports; ret = load_module(&bin); if (ret < 0) -- cgit v1.2.3