Searched refs:elf_phdr (Results 1 – 12 of 12) sorted by relevance
| /linux/arch/alpha/boot/tools/ |
| H A D | objstrip.c | 32 # define elf_phdr elf64_phdr macro 62 struct elf_phdr *elf_phdr; /* program header */ in main() local 171 if (read(fd, buf, sizeof(*elf_phdr)) != sizeof(*elf_phdr)) { in main() 176 elf_phdr = (struct elf_phdr *) buf; in main() 177 offset = elf_phdr->p_offset; in main() 178 mem_size = elf_phdr->p_memsz; in main() 179 fil_size = elf_phdr->p_filesz; in main() 182 if (elf_phdr->p_vaddr < e_entry) { in main() 183 unsigned long delta = e_entry - elf_phdr->p_vaddr; in main() 187 elf_phdr->p_vaddr += delta; in main() [all …]
|
| /linux/fs/tests/ |
| H A D | binfmt_elf_kunit.c | 6 struct elf_phdr empty[] = { in total_mapping_size_test() 14 struct elf_phdr mount[] = { in total_mapping_size_test() 31 struct elf_phdr unordered[] = { in total_mapping_size_test()
|
| /linux/arch/powerpc/kernel/ |
| H A D | fadump.c | 760 struct elf_phdr *phdr; in fadump_update_elfcore_header() 765 phdr = (struct elf_phdr *)bufp; in fadump_update_elfcore_header() 951 elf->e_phentsize = sizeof(struct elf_phdr); in fadump_init_elfcore_header() 990 static void __init populate_elf_pt_load(struct elf_phdr *phdr, u64 start, in populate_elf_pt_load() 1007 struct elf_phdr *phdr; in fadump_populate_elfcorehdr() 1023 phdr = (struct elf_phdr *)bufp; in fadump_populate_elfcorehdr() 1024 bufp += sizeof(struct elf_phdr); in fadump_populate_elfcorehdr() 1037 phdr = (struct elf_phdr *)bufp; in fadump_populate_elfcorehdr() 1038 bufp += sizeof(struct elf_phdr); in fadump_populate_elfcorehdr() 1054 phdr = (struct elf_phdr *)bufp; in fadump_populate_elfcorehdr() [all …]
|
| /linux/fs/ |
| H A D | binfmt_elf.c | 254 NEW_AUX_ENT(AT_PHENT, sizeof(struct elf_phdr)); in create_elf_tables() 372 const struct elf_phdr *eppnt, int prot, int type, in elf_map() 416 const struct elf_phdr *eppnt, int prot, int type, in elf_load() 464 static unsigned long total_mapping_size(const struct elf_phdr *phdr, int nr) in total_mapping_size() 492 static unsigned long maximum_alignment(struct elf_phdr *cmds, int nr) in maximum_alignment() 521 static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex, in load_elf_phdrs() 524 struct elf_phdr *elf_phdata = NULL; in load_elf_phdrs() 532 if (elf_ex->e_phentsize != sizeof(struct elf_phdr)) in load_elf_phdrs() 537 size = sizeof(struct elf_phdr) * elf_ex->e_phnum; in load_elf_phdrs() 593 struct elf_phdr *phdr, in arch_elf_pt_proc() [all …]
|
| H A D | binfmt_elf_fdpic.c | 141 struct elf_phdr *phdr; in elf_fdpic_fetch_phdrs() 146 if (params->hdr.e_phentsize != sizeof(struct elf_phdr)) in elf_fdpic_fetch_phdrs() 148 if (params->hdr.e_phnum > 65536U / sizeof(struct elf_phdr)) in elf_fdpic_fetch_phdrs() 151 size = params->hdr.e_phnum * sizeof(struct elf_phdr); in elf_fdpic_fetch_phdrs() 186 struct elf_phdr *phdr; in load_elf_fdpic_binary() 645 NEW_AUX_ENT(AT_PHENT, sizeof(struct elf_phdr)); in create_elf_fdpic_tables() 756 struct elf_phdr *phdr; in elf_fdpic_map_file() 812 stop += params->hdr.e_phnum * sizeof (struct elf_phdr); in elf_fdpic_map_file() 936 struct elf_phdr *phdr; in elf_fdpic_map_file_constdisp_on_uclinux() 1020 struct elf_phdr *phdr; in elf_fdpic_map_file_by_direct_mmap() [all …]
|
| /linux/include/linux/ |
| H A D | elf.h | 42 #define elf_phdr elf32_phdr macro 54 #define elf_phdr elf64_phdr macro
|
| H A D | elf-fdpic.h | 30 struct elf_phdr *phdrs; /* ref copy of PT_PHDR table */
|
| H A D | kexec.h | 325 const struct elf_phdr *proghdrs;
|
| /linux/arch/riscv/kernel/ |
| H A D | kexec_elf.c | 32 const struct elf_phdr *phdr; in riscv_kexec_elf_load() 70 const struct elf_phdr *phdr; in elf_find_pbase()
|
| /linux/fs/proc/ |
| H A D | kcore.c | 121 kcore_phdrs_len = kcore_nphdr * sizeof(struct elf_phdr); in update_kcore_size() 367 .e_phentsize = sizeof(struct elf_phdr), in read_kcore_iter() 383 struct elf_phdr *phdrs, *phdr; in read_kcore_iter()
|
| /linux/arch/loongarch/kernel/ |
| H A D | kexec_elf.c | 29 const struct elf_phdr *phdr; in _elf_kexec_load()
|
| /linux/arch/mips/kernel/ |
| H A D | vpe.c | 698 struct elf_phdr *phdr = (struct elf_phdr *) in vpe_elfload()
|