函数逻辑报告 |
Source Code:fs\binfmt_aout.c |
Create Date:2022-07-29 11:01:41 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:These are the functions used to load a.out style executables and shared* libraries. There is no binary dependent code anywhere else.
函数原型:static int load_aout_binary(struct linux_binprm *bprm)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct linux_binprm * | bprm |
119 | regs等于current_pt_regs() |
131 | 返回:负ENOEXEC |
147 | rlim等于rlimit(RLIMIT_DATA) |
148 | 如果rlim大于等于RLIM_INFINITY则rlim等于0的反 |
150 | 如果 length of data, in bytes 加 length of uninitialized data area for file, in bytes 大于rlim则返回:负ENOMEM |
164 | setup_new_exec(bprm) |
166 | end_code等于 length of text, in bytes 加start_code等于Address of text segment in memory after it is loaded. (ex) |
170 | brk等于 length of uninitialized data area for file, in bytes 加start_brk等于Address of bss segment in memory after it is loaded. (ex) |
173 | retval等于Finalizes the stack vm_area_struct. The flags and permissions are updated,* the stack is optionally relocated, and some extra space is added. |
189 | pos等于32 |
200 | 否则 |
201 | 如果 length of text, in bytes 按位与0xfff或 length of data, in bytes 按位与0xfff的值且N_MAGIC(ex)不等于Code indicating pure executable. 且printk_ratelimit()则 |
207 | 如果fd_offset按位与PAGE_MASK的反的值不等于0且printk_ratelimit()则 |
215 | error等于vm_brk(Address of text segment in memory after it is loaded. (ex), length of text, in bytes + length of data, in bytes ) |
219 | read_code(file, Address of text segment in memory after it is loaded. (ex), fd_offset, length of text, in bytes + length of data, in bytes ) |
221 | 转到:beyond_if |
239 | beyond_if : |
240 | set_binfmt( & aout_format) |
252 | start_thread(regs, start address , start_stack) |
253 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |