Function report |
Source Code:fs\binfmt_elf_fdpic.c |
Create Date:2022-07-28 20:29:02 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ad the program headers table into memory
Proto:static int elf_fdpic_fetch_phdrs(struct elf_fdpic_params *params, struct file *file)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct elf_fdpic_params * | params | |
| struct file * | file |
| 146 | If e_phentsize != size of elf_phdr Then Return -ENOMEM |
| 153 | If Not copy of PT_PHDR table Then Return -ENOMEM |
| 156 | retval = kernel_read(file, copy of PT_PHDR table , size, & pos) |
| 157 | If Value for the false possibility is greater at compile time(retval != size) Then Return If retval < 0 Then retval Else -ENOEXEC |
| 161 | phdr = copy of PT_PHDR table |
| 163 | If p_type != PT_GNU_STACK Then Continue |
| 166 | If p_flags & PF_X Then flags |= T if stack to be executable |
| 168 | Else flags |= T if stack not to be executable |
| 172 | Break |
| 175 | Return 0 |
| Name | Describe |
|---|---|
| load_elf_fdpic_binary | load an fdpic binary into various bits of memory |
| 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 |