summaryrefslogtreecommitdiff
path: root/nuttx/binfmt/nxflat.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-21 13:41:39 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-21 13:41:39 +0000
commit5b829db93423d071a658fa0fca1eeffa21f96bb3 (patch)
treef25f680eb78e04c370ef3a95776631f631de3795 /nuttx/binfmt/nxflat.c
parent6a0ef774560f783c772fb833e8f973d985666a40 (diff)
downloadpx4-nuttx-5b829db93423d071a658fa0fca1eeffa21f96bb3.tar.gz
px4-nuttx-5b829db93423d071a658fa0fca1eeffa21f96bb3.tar.bz2
px4-nuttx-5b829db93423d071a658fa0fca1eeffa21f96bb3.zip
Add NXFLAT dynamic binding logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1919 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/binfmt/nxflat.c')
-rw-r--r--nuttx/binfmt/nxflat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/nuttx/binfmt/nxflat.c b/nuttx/binfmt/nxflat.c
index e9c2b9961..53f689a9b 100644
--- a/nuttx/binfmt/nxflat.c
+++ b/nuttx/binfmt/nxflat.c
@@ -173,6 +173,16 @@ static int nxflat_loadbinary(struct binary_s *binp)
return ret;
}
+ /* Bind the program to the exported symbol table */
+
+ ret = nxflat_bind(&loadinfo, binp->exports, binp->nexports);
+ if (ret != 0)
+ {
+ bdbg("Failed to bind symbols program binary: %d\n", ret);
+ nxflat_uninit(&loadinfo);
+ return ret;
+ }
+
/* Return the load information */
binp->entrypt = (main_t)(loadinfo.ispace + loadinfo.entryoffs);