Function report |
Source Code:fs\binfmt_flat.c |
Create Date:2022-07-28 20:29:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:These are the functions used to load flat style executables and shared* libraries. There is no binary dependent code anywhere else.
Proto:static int load_flat_binary(struct linux_binprm *bprm)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct linux_binprm * | bprm |
925 | regs = current_pt_regs() |
926 | stack_len = 0 |
947 | res = load_flat_file(bprm, & libinfo, 0, & stack_len) |
952 | When i < MAX_SHARED_LIBS cycle |
953 | If Not Has this library been loaded? Then Continue |
955 | When j < MAX_SHARED_LIBS cycle |
956 | val = If Has this library been loaded? Then Start of data segment Else Placeholder for unused library |
958 | __user * p = Start of data segment |
961 | If Write a simple value into user space(val, p) Then Return -EFAULT |
968 | set_binfmt( & flat_format) |
971 | res = Finalizes the stack vm_area_struct. The flags and permissions are updated,* the stack is optionally relocated, and some extra space is added. |
1008 | FLAT_PLAT_INIT(regs) |
1012 | pr_debug("start_thread(regs=0x%p, entry=0x%lx, start_stack=0x%lx)\n", regs, start_addr, start_stack) |
1014 | start_thread(regs, start_addr, start_stack) |
1016 | Return 0 |
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 |