Function report |
Source Code:fs\binfmt_elf.c |
Create Date:2022-07-28 20:28:22 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:elf_map
Proto:static unsigned long elf_map(struct file *filep, unsigned long addr, const struct elf64_phdr *eppnt, int prot, int type, unsigned long total_size)
Type:unsigned long
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | filep | |
unsigned long | addr | |
const struct elf64_phdr * | eppnt | |
int | prot | |
int | type | |
unsigned long | total_size |
355 | addr = ELF_PAGESTART(addr) |
356 | size = ELF_PAGEALIGN(size) |
371 | If total_size Then |
372 | total_size = ELF_PAGEALIGN(total_size) |
379 | If type & MAP_FIXED which doesn't unmap underlying mapping && PTR_ERR((void * )map_addr) == -EEXIST Then pr_info("%d (%s): Uhuuh, elf segment at %px requested but the memory is mapped already\n", task_pid_nr(current process), comm, (void * )addr) |
384 | Return map_addr |
Name | Describe |
---|---|
load_elf_interp | This is much more generalized than the library routine read function,so we keep this separate. Technically the library read functionis only provided so that we can read a.out libraries that havean ELF header |
load_elf_binary |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |