mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 21:13:35 +08:00
More ELF loader changes
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5261 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -41,7 +41,7 @@ BINFMT_CSRCS += elf.c
|
||||
|
||||
# ELF library
|
||||
|
||||
BINFMT_CSRCS = libelf_init.c libelf_uninit.c libelf_load.c \
|
||||
BINFMT_CSRCS += libelf_init.c libelf_uninit.c libelf_load.c \
|
||||
libelf_unload.c libelf_verify.c libelf_read.c \
|
||||
libelf_bind.c libelf_symbols.c
|
||||
|
||||
|
||||
@@ -283,8 +283,8 @@ static inline int elf_loadfile(FAR struct elf_loadinfo_s *loadinfo)
|
||||
|
||||
/* Update sh_addr to point to copy in memory */
|
||||
|
||||
bvdbg("%d. %08x->%08x\n", i, (long)shdr->sh_addr, (long)dest);
|
||||
shdr->sh_addr = (uintptr_t)dest;
|
||||
bvdbg("%d. 0x%lx %s\n", (long)shdr->sh_addr, loadinfo->secstrings + shdr->sh_name);
|
||||
|
||||
/* Setup the memory pointer for the next time through the loop */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user