Home
last modified time | relevance | path

Searched refs:elf_phdr (Results 1 – 10 of 10) sorted by relevance

/linux/arch/alpha/boot/tools/
H A Dobjstrip.c32 # 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 Dbinfmt_elf_kunit.c6 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 Dfadump.c760 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/include/linux/
H A Delf.h42 #define elf_phdr elf32_phdr macro
54 #define elf_phdr elf64_phdr macro
H A Delf-fdpic.h30 struct elf_phdr *phdrs; /* ref copy of PT_PHDR table */
H A Dkexec.h325 const struct elf_phdr *proghdrs;
/linux/fs/
H A Dbinfmt_elf_fdpic.c141 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()
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()
806 stop += params->hdr.e_phnum * sizeof (struct elf_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()
[all …]
/linux/arch/riscv/kernel/
H A Dkexec_elf.c32 const struct elf_phdr *phdr; in riscv_kexec_elf_load()
70 const struct elf_phdr *phdr; in elf_find_pbase()
/linux/arch/loongarch/kernel/
H A Dkexec_elf.c29 const struct elf_phdr *phdr; in _elf_kexec_load()
/linux/arch/mips/kernel/
H A Dvpe.c698 struct elf_phdr *phdr = (struct elf_phdr *) in vpe_elfload()