Searched refs:elf_phdr (Results 1 – 15 of 15) sorted by relevance
| /linux-6.15/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() 187 elf_phdr->p_vaddr += delta; in main() 192 prog_name, (long) elf_phdr->p_vaddr, in main() [all …]
|
| /linux-6.15/arch/x86/um/ |
| H A D | elfcore.c | 21 const struct elf_phdr *const phdrp = in elf_core_write_extra_phdrs() 22 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff); in elf_core_write_extra_phdrs() 27 struct elf_phdr phdr = phdrp[i]; in elf_core_write_extra_phdrs() 48 const struct elf_phdr *const phdrp = in elf_core_write_extra_data() 49 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff); in elf_core_write_extra_data() 69 const struct elf_phdr *const phdrp = in elf_core_extra_data_size() 70 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff); in elf_core_extra_data_size()
|
| /linux-6.15/kernel/ |
| H A D | kexec_elf.c | 65 if (ehdr->e_phnum > 0 && ehdr->e_phentsize != sizeof(struct elf_phdr)) { in elf_is_ehdr_sane() 85 phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum; in elf_is_ehdr_sane() 185 static bool elf_is_phdr_sane(const struct elf_phdr *phdr, size_t buf_len) in elf_is_phdr_sane() 207 struct elf_phdr *phdr = (struct elf_phdr *) &elf_info->proghdrs[idx]; in elf_read_phdr() 210 struct elf_phdr *buf_phdr; in elf_read_phdr() 213 buf_phdr = (struct elf_phdr *) pbuf; in elf_read_phdr() 261 phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum; in elf_read_phdrs() 401 const struct elf_phdr *phdr; in kexec_elf_load()
|
| /linux-6.15/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-6.15/arch/powerpc/kernel/ |
| H A D | fadump.c | 762 struct elf_phdr *phdr; in fadump_update_elfcore_header() 767 phdr = (struct elf_phdr *)bufp; in fadump_update_elfcore_header() 1009 struct elf_phdr *phdr; in fadump_populate_elfcorehdr() 1025 phdr = (struct elf_phdr *)bufp; in fadump_populate_elfcorehdr() 1026 bufp += sizeof(struct elf_phdr); in fadump_populate_elfcorehdr() 1039 phdr = (struct elf_phdr *)bufp; in fadump_populate_elfcorehdr() 1040 bufp += sizeof(struct elf_phdr); in fadump_populate_elfcorehdr() 1056 phdr = (struct elf_phdr *)bufp; in fadump_populate_elfcorehdr() 1057 bufp += sizeof(struct elf_phdr); in fadump_populate_elfcorehdr() 1071 phdr = (struct elf_phdr *)bufp; in fadump_populate_elfcorehdr() [all …]
|
| /linux-6.15/fs/ |
| H A D | binfmt_elf.c | 245 NEW_AUX_ENT(AT_PHENT, sizeof(struct elf_phdr)); in create_elf_tables() 515 struct elf_phdr *elf_phdata = NULL; in load_elf_phdrs() 584 struct elf_phdr *phdr, in arch_elf_pt_proc() 642 struct elf_phdr *eppnt; in load_elf_interp() 831 struct elf_phdr *elf_property_phdata = NULL; in load_elf_binary() 1392 struct elf_phdr *elf_phdata; in load_elf_library() 1393 struct elf_phdr *eppnt; in load_elf_library() 1414 j = sizeof(struct elf_phdr) * elf_ex.e_phnum; in load_elf_library() 1513 elf->e_phentsize = sizeof(struct elf_phdr); in fill_elf_header() 2042 struct elf_phdr *phdr4note = NULL; in elf_core_dump() [all …]
|
| H A D | compat_binfmt_elf.c | 29 #undef elf_phdr 35 #define elf_phdr elf32_phdr macro
|
| 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() 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() 639 NEW_AUX_ENT(AT_PHENT, sizeof(struct elf_phdr)); in create_elf_fdpic_tables() 750 struct elf_phdr *phdr; in elf_fdpic_map_file() 930 struct elf_phdr *phdr; in elf_fdpic_map_file_constdisp_on_uclinux() 1014 struct elf_phdr *phdr; in elf_fdpic_map_file_by_direct_mmap() 1257 elf->e_phentsize = sizeof(struct elf_phdr); in fill_elf_fdpic_header() 1480 struct elf_phdr *phdr4note = NULL; in elf_fdpic_core_dump() [all …]
|
| /linux-6.15/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 | 287 const struct elf_phdr *proghdrs;
|
| /linux-6.15/arch/arm64/kernel/ |
| H A D | elfcore.c | 97 struct elf_phdr phdr; in elf_core_write_extra_phdrs()
|
| /linux-6.15/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-6.15/arch/riscv/kernel/ |
| H A D | elf_kexec.c | 45 const struct elf_phdr *phdr; in riscv_kexec_elf_load() 83 const struct elf_phdr *phdr; in elf_find_pbase()
|
| /linux-6.15/arch/mips/kernel/ |
| H A D | vpe.c | 697 struct elf_phdr *phdr = (struct elf_phdr *) in vpe_elfload()
|