mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
binfmt: Remove filename/exports/nexports from binary_s
to simplify the life cycle management Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
cf78a5b6cf
commit
bebdbc5c87
@@ -86,15 +86,9 @@ int exec_spawn(FAR const char *filename, FAR char * const *argv,
|
||||
goto errout;
|
||||
}
|
||||
|
||||
/* Initialize the binary structure */
|
||||
|
||||
bin->filename = filename;
|
||||
bin->exports = exports;
|
||||
bin->nexports = nexports;
|
||||
|
||||
/* Load the module into memory */
|
||||
|
||||
ret = load_module(bin);
|
||||
ret = load_module(bin, filename, exports, nexports);
|
||||
if (ret < 0)
|
||||
{
|
||||
berr("ERROR: Failed to load program '%s': %d\n", filename, ret);
|
||||
@@ -127,7 +121,7 @@ int exec_spawn(FAR const char *filename, FAR char * const *argv,
|
||||
|
||||
/* Then start the module */
|
||||
|
||||
pid = exec_module(bin, argv);
|
||||
pid = exec_module(bin, filename, argv);
|
||||
if (pid < 0)
|
||||
{
|
||||
ret = pid;
|
||||
|
||||
Reference in New Issue
Block a user