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:load_elf_phdrs() - load ELF program headers*@elf_ex: ELF header of the binary whose program headers should be loaded*@elf_file: the opened ELF binary file* Loads ELF program headers from the binary file elf_file, which has the ELF
Proto:static struct elf64_phdr *load_elf_phdrs(const struct elf64_hdr *elf_ex, struct file *elf_file)
Type:struct elf64_phdr
Parameter:
Type | Parameter | Name |
---|---|---|
const struct elf64_hdr * | elf_ex | |
struct file * | elf_file |
430 | struct elf64_phdr * elf_phdata = NULL |
431 | err = -1 |
438 | If e_phentsize != size of elf_phdr Then Go to out |
444 | If size == 0 || size > 65536 || size > ELF_MIN_ALIGN Then Go to out |
447 | elf_phdata = Allocation memory |
448 | If Not elf_phdata Then Go to out |
453 | If retval < 0 Then |
459 | err = 0 |
460 | out : |
461 | If err Then |
462 | kfree(elf_phdata) |
463 | elf_phdata = NULL |
465 | Return elf_phdata |
Name | Describe |
---|---|
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 |