函数逻辑报告 |
Source Code:fs\binfmt_elf_fdpic.c |
Create Date:2022-07-29 11:03:47 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:ad the program headers table into memory
函数原型:static int elf_fdpic_fetch_phdrs(struct elf_fdpic_params *params, struct file *file)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct elf_fdpic_params * | params | |
| struct file * | file |
| 146 | 如果e_phentsize不等于elf_phdr的长度则返回:负ENOMEM |
| 152 | copy of PT_PHDR table 等于开辟内存 |
| 153 | 如果非 copy of PT_PHDR table 则返回:负ENOMEM |
| 156 | retval等于kernel_read(file, copy of PT_PHDR table , size, & pos) |
| 161 | phdr等于 copy of PT_PHDR table |
| 163 | 如果p_type不等于PT_GNU_STACK则继续下一循环 |
| 166 | 如果p_flags按位与PF_X则flags或等于T if stack to be executable |
| 168 | 否则flags或等于T if stack not to be executable |
| 172 | 退出 |
| 175 | 返回:0 |
| 名称 | 描述 |
|---|---|
| load_elf_fdpic_binary | load an fdpic binary into various bits of memory |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |