mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
binfmt: Remove umm_initialize from elf_load
since umm_try_initialize will do it automatically Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Gustavo Henrique Nihei
parent
5ff4e33e3f
commit
9e60c33d4d
@@ -37,7 +37,6 @@
|
|||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
#include <nuttx/addrenv.h>
|
#include <nuttx/addrenv.h>
|
||||||
#include <nuttx/elf.h>
|
#include <nuttx/elf.h>
|
||||||
#include <nuttx/mm/mm.h>
|
|
||||||
#include <nuttx/binfmt/elf.h>
|
#include <nuttx/binfmt/elf.h>
|
||||||
|
|
||||||
#include "libelf.h"
|
#include "libelf.h"
|
||||||
@@ -291,13 +290,6 @@ int elf_load(FAR struct elf_loadinfo_s *loadinfo)
|
|||||||
berr("ERROR: elf_addrenv_select() failed: %d\n", ret);
|
berr("ERROR: elf_addrenv_select() failed: %d\n", ret);
|
||||||
goto errout_with_buffers;
|
goto errout_with_buffers;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_BUILD_KERNEL
|
|
||||||
/* Initialize the user heap */
|
|
||||||
|
|
||||||
umm_initialize((FAR void *)CONFIG_ARCH_HEAP_VBASE,
|
|
||||||
up_addrenv_heapsize(&loadinfo->addrenv));
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Load ELF section data into memory */
|
/* Load ELF section data into memory */
|
||||||
|
|||||||
Reference in New Issue
Block a user