summaryrefslogtreecommitdiff
path: root/nuttx/binfmt/binfmt_loadmodule.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/binfmt_loadmodule.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/binfmt_loadmodule.c')
-rw-r--r--nuttx/binfmt/binfmt_loadmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/binfmt/binfmt_loadmodule.c b/nuttx/binfmt/binfmt_loadmodule.c
index 1034ad16f..c251f0af7 100644
--- a/nuttx/binfmt/binfmt_loadmodule.c
+++ b/nuttx/binfmt/binfmt_loadmodule.c
@@ -74,7 +74,8 @@
* Name: load_module
*
* Description:
- * Load a module into memory and prep it for execution.
+ * Load a module into memory, bind it to an exported symbol take, and
+ * prep the module for execution.
*
* Returned Value:
* This is an end-user function, so it follows the normal convention:
@@ -83,7 +84,7 @@
*
****************************************************************************/
-int load_module(const char *filename, FAR struct binary_s *bin)
+int load_module(FAR struct binary_s *bin)
{
FAR struct binfmt_s *binfmt;
int ret;
@@ -96,7 +97,7 @@ int load_module(const char *filename, FAR struct binary_s *bin)
else
#endif
{
- bdbg("Loading %s\n", filename);
+ bdbg("Loading %s\n", bin->filename);
/* Disabling pre-emption should be sufficient protection while
* accessing the list of registered binary format handlers.
@@ -116,7 +117,6 @@ int load_module(const char *filename, FAR struct binary_s *bin)
ret = binfmt->load(bin);
if (ret == OK)
{
-
/* Successfully loaded -- break out with ret == 0 */
dump_module(bin);