binfmt/libelf/libelf_load.c: Remove the guard(CONFIG_BUILD_KERNEL) for umm_initialize()
This commit is contained in:
parent
39d83375d2
commit
b9c7a9a18f
@ -304,12 +304,10 @@ int elf_load(FAR struct elf_loadinfo_s *loadinfo)
|
|||||||
goto errout_with_buffers;
|
goto errout_with_buffers;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_BUILD_KERNEL
|
|
||||||
/* Initialize the user heap */
|
/* Initialize the user heap */
|
||||||
|
|
||||||
umm_initialize((FAR void *)CONFIG_ARCH_HEAP_VBASE,
|
umm_initialize((FAR void *)CONFIG_ARCH_HEAP_VBASE,
|
||||||
up_addrenv_heapsize(&loadinfo->addrenv));
|
up_addrenv_heapsize(&loadinfo->addrenv));
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Load ELF section data into memory */
|
/* Load ELF section data into memory */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user