函数 | |
STATIC INT32 | OsELFOpen (const CHAR *fileName, INT32 oflags) |
打开ELF文件 更多... | |
STATIC INT32 | OsELFClose (INT32 procFd) |
STATIC INT32 | OsGetFileLength (UINT32 *fileLen, const CHAR *fileName) |
STATIC INT32 | OsReadELFInfo (INT32 procfd, UINT8 *buffer, size_t readSize, off_t offset) |
STATIC INT32 | OsVerifyELFEhdr (const LD_ELF_EHDR *ehdr, UINT32 fileLen) |
STATIC INT32 | OsVerifyELFPhdr (const LD_ELF_PHDR *phdr) |
STATIC VOID | OsLoadInit (ELFLoadInfo *loadInfo) |
STATIC INT32 | OsReadEhdr (const CHAR *fileName, ELFInfo *elfInfo, BOOL isExecFile) |
STATIC INT32 | OsReadPhdrs (ELFInfo *elfInfo, BOOL isExecFile) |
STATIC INT32 | OsReadInterpInfo (ELFLoadInfo *loadInfo) |
STATIC UINT32 | OsGetProt (UINT32 pFlags) |
STATIC UINT32 | OsGetAllocSize (const LD_ELF_PHDR *elfPhdr, INT32 phdrNum) |
STATIC UINTPTR | OsDoMmapFile (INT32 fd, UINTPTR addr, const LD_ELF_PHDR *elfPhdr, UINT32 prot, UINT32 flags, UINT32 mapSize) |
INT32 | OsGetKernelVaddr (LosVmSpace *space, VADDR_T vaddr, VADDR_T *kvaddr) |
STATIC INT32 | OsSetBss (const LD_ELF_PHDR *elfPhdr, INT32 fd, UINTPTR bssStart, UINT32 bssEnd, UINT32 elfProt) |
STATIC INT32 | OsMmapELFFile (INT32 procfd, const LD_ELF_PHDR *elfPhdr, const LD_ELF_EHDR *elfEhdr, UINTPTR *elfLoadAddr, UINT32 mapSize, UINTPTR *loadBase) |
STATIC INT32 | OsLoadInterpBinary (ELFLoadInfo *loadInfo, UINTPTR *interpMapBase) |
STATIC CHAR * | OsGetParamPtr (CHAR *const *ptr, INT32 index) |
STATIC INT32 | OsPutUserArg (INT32 val, const UINTPTR *sp) |
STATIC INT32 | OsPutUserArgv (UINTPTR *strPtr, UINTPTR **sp, INT32 count) |
STATIC INT32 | OsCopyParams (ELFLoadInfo *loadInfo, INT32 argc, CHAR *const *argv) |
STATIC INT32 | OsGetParamNum (CHAR *const *argv) |
UINT32 | OsGetRndOffset (INT32 randomDevFD) |
STATIC VOID | OsGetStackProt (ELFLoadInfo *loadInfo) |
STATIC UINT32 | OsStackAlloc (LosVmSpace *space, VADDR_T vaddr, UINT32 vsize, UINT32 psize, UINT32 regionFlags) |
分配栈区 更多... | |
STATIC INT32 | OsSetArgParams (ELFLoadInfo *loadInfo, CHAR *const *argv, CHAR *const *envp) |
STATIC INT32 | OsPutParamToStack (ELFLoadInfo *loadInfo, const UINTPTR *auxVecInfo, INT32 vecIndex) |
STATIC INT32 | OsGetRndNum (const ELFLoadInfo *loadInfo, UINT32 *rndVec, UINT32 vecSize) |
STATIC INT32 | OsMakeArgsStack (ELFLoadInfo *loadInfo, UINTPTR interpMapBase) |
STATIC INT32 | OsLoadELFSegment (ELFLoadInfo *loadInfo) |
STATIC VOID | OsFlushAspace (ELFLoadInfo *loadInfo) |
STATIC VOID | OsDeInitLoadInfo (ELFLoadInfo *loadInfo) |
STATIC VOID | OsDeInitFiles (ELFLoadInfo *loadInfo) |
INT32 | OsLoadELFFile (ELFLoadInfo *loadInfo) |
变量 | |
STATIC BOOL | g_srandInit |
STATIC INT32 OsCopyParams | ( | ELFLoadInfo * | loadInfo, |
INT32 | argc, | ||
CHAR *const * | argv | ||
) |
在文件 los_load_elf.c 第 637 行定义.
STATIC VOID OsDeInitFiles | ( | ELFLoadInfo * | loadInfo | ) |
STATIC VOID OsDeInitLoadInfo | ( | ELFLoadInfo * | loadInfo | ) |
在文件 los_load_elf.c 第 1015 行定义.
STATIC UINTPTR OsDoMmapFile | ( | INT32 | fd, |
UINTPTR | addr, | ||
const LD_ELF_PHDR * | elfPhdr, | ||
UINT32 | prot, | ||
UINT32 | flags, | ||
UINT32 | mapSize | ||
) |
在文件 los_load_elf.c 第 399 行定义.
在文件 los_load_elf.c 第 76 行定义.
STATIC VOID OsFlushAspace | ( | ELFLoadInfo * | loadInfo | ) |
在文件 los_load_elf.c 第 1010 行定义.
在文件 los_load_elf.c 第 364 行定义.
在文件 los_load_elf.c 第 94 行定义.
INT32 OsGetKernelVaddr | ( | LosVmSpace * | space, |
VADDR_T | vaddr, | ||
VADDR_T * | kvaddr | ||
) |
在文件 los_load_elf.c 第 423 行定义.
STATIC INT32 OsGetRndNum | ( | const ELFLoadInfo * | loadInfo, |
UINT32 * | rndVec, | ||
UINT32 | vecSize | ||
) |
STATIC VOID OsGetStackProt | ( | ELFLoadInfo * | loadInfo | ) |
INT32 OsLoadELFFile | ( | ELFLoadInfo * | loadInfo | ) |
在文件 los_load_elf.c 第 1042 行定义.
STATIC INT32 OsLoadELFSegment | ( | ELFLoadInfo * | loadInfo | ) |
在文件 los_load_elf.c 第 956 行定义.
STATIC VOID OsLoadInit | ( | ELFLoadInfo * | loadInfo | ) |
在文件 los_load_elf.c 第 198 行定义.
STATIC INT32 OsLoadInterpBinary | ( | ELFLoadInfo * | loadInfo, |
UINTPTR * | interpMapBase | ||
) |
在文件 los_load_elf.c 第 543 行定义.
STATIC INT32 OsMakeArgsStack | ( | ELFLoadInfo * | loadInfo, |
UINTPTR | interpMapBase | ||
) |
在文件 los_load_elf.c 第 898 行定义.
STATIC INT32 OsMmapELFFile | ( | INT32 | procfd, |
const LD_ELF_PHDR * | elfPhdr, | ||
const LD_ELF_EHDR * | elfEhdr, | ||
UINTPTR * | elfLoadAddr, | ||
UINT32 | mapSize, | ||
UINTPTR * | loadBase | ||
) |
在文件 los_load_elf.c 第 482 行定义.
STATIC INT32 OsPutParamToStack | ( | ELFLoadInfo * | loadInfo, |
const UINTPTR * | auxVecInfo, | ||
INT32 | vecIndex | ||
) |
在文件 los_load_elf.c 第 844 行定义.
在文件 los_load_elf.c 第 210 行定义.
在文件 los_load_elf.c 第 124 行定义.
STATIC INT32 OsReadInterpInfo | ( | ELFLoadInfo * | loadInfo | ) |
在文件 los_load_elf.c 第 292 行定义.
STATIC INT32 OsSetArgParams | ( | ELFLoadInfo * | loadInfo, |
CHAR *const * | argv, | ||
CHAR *const * | envp | ||
) |
在文件 los_load_elf.c 第 791 行定义.
STATIC INT32 OsSetBss | ( | const LD_ELF_PHDR * | elfPhdr, |
INT32 | fd, | ||
UINTPTR | bssStart, | ||
UINT32 | bssEnd, | ||
UINT32 | elfProt | ||
) |
在文件 los_load_elf.c 第 452 行定义.
STATIC UINT32 OsStackAlloc | ( | LosVmSpace * | space, |
VADDR_T | vaddr, | ||
UINT32 | vsize, | ||
UINT32 | psize, | ||
UINT32 | regionFlags | ||
) |
分配栈区
在文件 los_load_elf.c 第 748 行定义.
在文件 los_load_elf.c 第 150 行定义.
STATIC INT32 OsVerifyELFPhdr | ( | const LD_ELF_PHDR * | phdr | ) |
STATIC BOOL g_srandInit |
在文件 los_load_elf.c 第 50 行定义.