diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2009-06-24 20:49:43 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2009-06-24 20:49:43 +0000 |
commit | 56bf88acd2f567629a35c441034eb904b0e8f51e (patch) | |
tree | 2cf2631940b956446994f95a916d7e6b3fc6f229 /nuttx/binfmt | |
parent | 6f15ccded7744311a7b6d46138e44cda6015419f (diff) |
Fix DEBUG-on compilation errors
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1940 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/binfmt')
-rw-r--r-- | nuttx/binfmt/binfmt_loadmodule.c | 2 | ||||
-rw-r--r-- | nuttx/binfmt/libnxflat/libnxflat_bind.c | 4 | ||||
-rw-r--r-- | nuttx/binfmt/libnxflat/libnxflat_load.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/binfmt/binfmt_loadmodule.c b/nuttx/binfmt/binfmt_loadmodule.c index c251f0af77..bad6ca712d 100644 --- a/nuttx/binfmt/binfmt_loadmodule.c +++ b/nuttx/binfmt/binfmt_loadmodule.c @@ -90,7 +90,7 @@ int load_module(FAR struct binary_s *bin) int ret; #ifdef CONFIG_DEBUG - if (!filename || !bin) + if (!bin || !bin->filename) { ret = -EINVAL; } diff --git a/nuttx/binfmt/libnxflat/libnxflat_bind.c b/nuttx/binfmt/libnxflat/libnxflat_bind.c index 2afb92f123..86d9f9a20c 100644 --- a/nuttx/binfmt/libnxflat/libnxflat_bind.c +++ b/nuttx/binfmt/libnxflat/libnxflat_bind.c @@ -343,7 +343,7 @@ static inline int nxflat_bindimports(FAR struct nxflat_loadinfo_s *loadinfo, { /* It does.. make sure that exported symbols are provided */ - DEBUGASSERT(symtab && nexports > 0); + DEBUGASSERT(exports && nexports > 0); /* If non-zero, the value of the imported symbol list that we get * from the header is a file offset. We will have to convert this @@ -393,7 +393,7 @@ static inline int nxflat_bindimports(FAR struct nxflat_loadinfo_s *loadinfo, imports[i].i_funcaddress = (uint32)symbol->sym_value; bvdbg("Bound imported function '%s' to address %08x\n", - symname, imports[i].function_address); + symname, imports[i].i_funcaddress); } } diff --git a/nuttx/binfmt/libnxflat/libnxflat_load.c b/nuttx/binfmt/libnxflat/libnxflat_load.c index 022ad7f7d2..f0488bae1b 100644 --- a/nuttx/binfmt/libnxflat/libnxflat_load.c +++ b/nuttx/binfmt/libnxflat/libnxflat_load.c @@ -71,7 +71,7 @@ static const char *g_reloctype[] = { g_relocrel32i, g_relocrel32d, - g_relocabs32. + g_relocabs32, g_undefined }; # define RELONAME(rl) g_reloctype[NXFLAT_RELOC_TYPE(rl)] |