Searched refs:dlInfo (Results 1 – 2 of 2) sorted by relevance
/kernel/liteos_m/components/dynlink/ |
D | los_dynlink.c | 170 STATIC INT32 OsReadEhdr(INT32 fd, UINT32 fileLen, DynLinkInfo *dlInfo) in OsReadEhdr() argument 174 ret = OsReadELFInfo(fd, (UINT8 *)&dlInfo->elfEhdr, sizeof(LD_ELF_EHDR), 0); in OsReadEhdr() 179 ret = OsVerifyEhdr(&dlInfo->elfEhdr, fileLen); in OsReadEhdr() 187 STATIC INT32 OsReadPhdrs(INT32 fd, UINT32 fileLen, DynLinkInfo *dlInfo) in OsReadPhdrs() argument 191 LD_ELF_EHDR *ehdr = &dlInfo->elfEhdr; in OsReadPhdrs() 202 dlInfo->elfPhdr = (LD_ELF_PHDR *)LOS_MemAlloc(OS_SYS_MEM_ADDR, size); in OsReadPhdrs() 203 if (dlInfo->elfPhdr == NULL) { in OsReadPhdrs() 207 ret = OsReadELFInfo(fd, (UINT8 *)dlInfo->elfPhdr, size, ehdr->e_phoff); in OsReadPhdrs() 209 LOS_MemFree(OS_SYS_MEM_ADDR, dlInfo->elfPhdr); in OsReadPhdrs() 243 dso->dlInfo = (DynLinkInfo *)LOS_MemAlloc(OS_SYS_MEM_ADDR, sizeof(DynLinkInfo)); in OsLoadInit() [all …]
|
D | los_dynlink.h | 122 DynLinkInfo *dlInfo; member
|