Searched refs:elf_phdr (Results 1 – 15 of 15) sorted by relevance
/linux-6.12.1/arch/alpha/boot/tools/ |
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-6.12.1/arch/x86/um/ |
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.12.1/kernel/ |
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.12.1/fs/tests/ |
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.12.1/arch/powerpc/kernel/ |
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-6.12.1/fs/ |
D | binfmt_elf.c | 245 NEW_AUX_ENT(AT_PHENT, sizeof(struct elf_phdr)); in create_elf_tables() 357 const struct elf_phdr *eppnt, int prot, int type, in elf_map() 401 const struct elf_phdr *eppnt, int prot, int type, in elf_load() 449 static unsigned long total_mapping_size(const struct elf_phdr *phdr, int nr) in total_mapping_size() 477 static unsigned long maximum_alignment(struct elf_phdr *cmds, int nr) in maximum_alignment() 506 static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex, in load_elf_phdrs() 509 struct elf_phdr *elf_phdata = NULL; in load_elf_phdrs() 517 if (elf_ex->e_phentsize != sizeof(struct elf_phdr)) in load_elf_phdrs() 522 size = sizeof(struct elf_phdr) * elf_ex->e_phnum; in load_elf_phdrs() 578 struct elf_phdr *phdr, in arch_elf_pt_proc() [all …]
|
D | compat_binfmt_elf.c | 29 #undef elf_phdr 35 #define elf_phdr elf32_phdr macro
|
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() 630 NEW_AUX_ENT(AT_PHENT, sizeof(struct elf_phdr)); in create_elf_fdpic_tables() 741 struct elf_phdr *phdr; in elf_fdpic_map_file() 797 stop += params->hdr.e_phnum * sizeof (struct elf_phdr); in elf_fdpic_map_file() 921 struct elf_phdr *phdr; in elf_fdpic_map_file_constdisp_on_uclinux() 1005 struct elf_phdr *phdr; in elf_fdpic_map_file_by_direct_mmap() [all …]
|
/linux-6.12.1/include/linux/ |
D | elf.h | 42 #define elf_phdr elf32_phdr macro 54 #define elf_phdr elf64_phdr macro
|
D | elf-fdpic.h | 30 struct elf_phdr *phdrs; /* ref copy of PT_PHDR table */
|
D | kexec.h | 280 const struct elf_phdr *proghdrs;
|
/linux-6.12.1/arch/arm64/kernel/ |
D | elfcore.c | 96 struct elf_phdr phdr; in elf_core_write_extra_phdrs()
|
/linux-6.12.1/fs/proc/ |
D | kcore.c | 120 *phdrs_len = *nphdr * sizeof(struct elf_phdr); in get_kcore_size() 370 .e_phentsize = sizeof(struct elf_phdr), in read_kcore_iter() 386 struct elf_phdr *phdrs, *phdr; in read_kcore_iter()
|
/linux-6.12.1/arch/riscv/kernel/ |
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.12.1/arch/mips/kernel/ |
D | vpe.c | 697 struct elf_phdr *phdr = (struct elf_phdr *) in vpe_elfload()
|