mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
Fix DEBUG-on compilation errors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1940 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -90,7 +90,7 @@ int load_module(FAR struct binary_s *bin)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
if (!filename || !bin)
|
if (!bin || !bin->filename)
|
||||||
{
|
{
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -343,7 +343,7 @@ static inline int nxflat_bindimports(FAR struct nxflat_loadinfo_s *loadinfo,
|
|||||||
{
|
{
|
||||||
/* It does.. make sure that exported symbols are provided */
|
/* 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
|
/* 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
|
* 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;
|
imports[i].i_funcaddress = (uint32)symbol->sym_value;
|
||||||
|
|
||||||
bvdbg("Bound imported function '%s' to address %08x\n",
|
bvdbg("Bound imported function '%s' to address %08x\n",
|
||||||
symname, imports[i].function_address);
|
symname, imports[i].i_funcaddress);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ static const char *g_reloctype[] =
|
|||||||
{
|
{
|
||||||
g_relocrel32i,
|
g_relocrel32i,
|
||||||
g_relocrel32d,
|
g_relocrel32d,
|
||||||
g_relocabs32.
|
g_relocabs32,
|
||||||
g_undefined
|
g_undefined
|
||||||
};
|
};
|
||||||
# define RELONAME(rl) g_reloctype[NXFLAT_RELOC_TYPE(rl)]
|
# define RELONAME(rl) g_reloctype[NXFLAT_RELOC_TYPE(rl)]
|
||||||
|
|||||||
Reference in New Issue
Block a user