mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
binfmt/, binfmt/libelf: binfmt/elf: Call umm_initialize as soon as possible otherwise elf_loadctors/elf_loaddtors will fail to allocate memory.
This commit is contained in:
@@ -164,11 +164,6 @@ int exec_module(FAR const struct binary_s *binp)
|
||||
berr("ERROR: up_addrenv_select() failed: %d\n", ret);
|
||||
goto errout_with_tcb;
|
||||
}
|
||||
|
||||
/* Initialize the user heap */
|
||||
|
||||
umm_initialize((FAR void *)CONFIG_ARCH_HEAP_VBASE,
|
||||
up_addrenv_heapsize(&binp->addrenv));
|
||||
#endif
|
||||
|
||||
/* Allocate the stack for the new task.
|
||||
|
||||
Reference in New Issue
Block a user