Searched refs:elf_phdr (Results 1 - 13 of 13) sorted by relevance

/linux-4.4.14/arch/ia64/hp/sim/boot/
H A Dbootloader.c64 struct elf_phdr *elf_phdr; /* program header */ start_bootloader() local
136 req.len = sizeof(*elf_phdr); start_bootloader()
140 if (stat.count != sizeof(*elf_phdr)) { start_bootloader()
144 e_phoff += sizeof(*elf_phdr); start_bootloader()
146 elf_phdr = (struct elf_phdr *) mem; start_bootloader()
148 if (elf_phdr->p_type != PT_LOAD) start_bootloader()
151 req.len = elf_phdr->p_filesz; start_bootloader()
152 req.addr = __pa(elf_phdr->p_paddr); start_bootloader()
153 ssc(fd, 1, (long) &req, elf_phdr->p_offset, SSC_READ); start_bootloader()
155 memset((char *)__pa(elf_phdr->p_paddr) + elf_phdr->p_filesz, 0, start_bootloader()
156 elf_phdr->p_memsz - elf_phdr->p_filesz); start_bootloader()
/linux-4.4.14/arch/x86/um/
H A Delfcore.c19 const struct elf_phdr *const phdrp = elf_core_write_extra_phdrs()
20 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff); elf_core_write_extra_phdrs()
25 struct elf_phdr phdr = phdrp[i]; elf_core_write_extra_phdrs()
46 const struct elf_phdr *const phdrp = elf_core_write_extra_data()
47 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff); elf_core_write_extra_data()
67 const struct elf_phdr *const phdrp = elf_core_extra_data_size()
68 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff); elf_core_extra_data_size()
/linux-4.4.14/arch/ia64/kernel/
H A Delfcore.c16 const struct elf_phdr *const gate_phdrs = elf_core_write_extra_phdrs()
17 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); elf_core_write_extra_phdrs()
22 struct elf_phdr phdr = gate_phdrs[i]; elf_core_write_extra_phdrs()
45 const struct elf_phdr *const gate_phdrs = elf_core_write_extra_data()
46 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); elf_core_write_extra_data()
64 const struct elf_phdr *const gate_phdrs = elf_core_extra_data_size()
65 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); elf_core_extra_data_size()
/linux-4.4.14/arch/alpha/boot/tools/
H A Dobjstrip.c31 # define elf_phdr elf64_phdr macro
61 struct elf_phdr *elf_phdr; /* program header */ main() local
170 if (read(fd, buf, sizeof(*elf_phdr)) != sizeof(*elf_phdr)) { main()
175 elf_phdr = (struct elf_phdr *) buf; main()
176 offset = elf_phdr->p_offset; main()
177 mem_size = elf_phdr->p_memsz; main()
178 fil_size = elf_phdr->p_filesz; main()
181 if (elf_phdr->p_vaddr < e_entry) { main()
182 unsigned long delta = e_entry - elf_phdr->p_vaddr; main()
186 elf_phdr->p_vaddr += delta; main()
191 prog_name, (long) elf_phdr->p_vaddr, main()
192 elf_phdr->p_vaddr + fil_size, offset); main()
/linux-4.4.14/include/linux/
H A Delf.h27 #define elf_phdr elf32_phdr macro
37 #define elf_phdr elf64_phdr macro
H A Delf-fdpic.h22 struct elf_phdr *phdrs; /* ref copy of PT_PHDR table */
/linux-4.4.14/fs/proc/
H A Dkcore.c90 (*nphdr + 2)*sizeof(struct elf_phdr) + get_kcore_size()
317 * nphdr is the number of elf_phdr to insert
323 struct elf_phdr *nhdr, *phdr; elf_kcore_store_hdr()
347 elf->e_phentsize= sizeof(struct elf_phdr); elf_kcore_store_hdr()
354 nhdr = (struct elf_phdr *) bufp; elf_kcore_store_hdr()
355 bufp += sizeof(struct elf_phdr); elf_kcore_store_hdr()
356 offset += sizeof(struct elf_phdr); elf_kcore_store_hdr()
368 phdr = (struct elf_phdr *) bufp; elf_kcore_store_hdr()
369 bufp += sizeof(struct elf_phdr); elf_kcore_store_hdr()
370 offset += sizeof(struct elf_phdr); elf_kcore_store_hdr()
483 * the addresses in the elf_phdr on our list. read_kcore()
/linux-4.4.14/fs/
H A Dcompat_binfmt_elf.c30 #undef elf_phdr macro
35 #define elf_phdr elf32_phdr macro
H A Dbinfmt_elf.c51 static unsigned long elf_map(struct file *, unsigned long, struct elf_phdr *,
239 NEW_AUX_ENT(AT_PHENT, sizeof(struct elf_phdr)); create_elf_tables()
338 struct elf_phdr *eppnt, int prot, int type, elf_map()
373 static unsigned long total_mapping_size(struct elf_phdr *cmds, int nr) total_mapping_size()
400 static struct elf_phdr *load_elf_phdrs(struct elfhdr *elf_ex, load_elf_phdrs()
403 struct elf_phdr *elf_phdata = NULL; load_elf_phdrs()
410 if (elf_ex->e_phentsize != sizeof(struct elf_phdr)) load_elf_phdrs()
415 elf_ex->e_phnum > 65536U / sizeof(struct elf_phdr)) load_elf_phdrs()
419 size = sizeof(struct elf_phdr) * elf_ex->e_phnum; load_elf_phdrs()
482 struct elf_phdr *phdr, arch_elf_pt_proc()
520 unsigned long no_base, struct elf_phdr *interp_elf_phdata) load_elf_interp()
522 struct elf_phdr *eppnt; load_elf_interp()
672 struct elf_phdr *elf_ppnt, *elf_phdata, *interp_elf_phdata = NULL; load_elf_binary()
1110 struct elf_phdr *elf_phdata; load_elf_library()
1111 struct elf_phdr *eppnt; load_elf_library()
1131 j = sizeof(struct elf_phdr) * elf_ex.e_phnum; load_elf_library()
1370 elf->e_phentsize = sizeof(struct elf_phdr); fill_elf_header()
1376 static void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset) fill_elf_note_phdr()
2134 struct elf_phdr *phdr4note = NULL; elf_core_dump()
2188 offset += segs * sizeof(struct elf_phdr); /* Program headers */ elf_core_dump()
2241 struct elf_phdr phdr; elf_core_dump()
H A Dbinfmt_elf_fdpic.c148 if (params->hdr.e_phentsize != sizeof(struct elf_phdr)) elf_fdpic_fetch_phdrs()
150 if (params->hdr.e_phnum > 65536U / sizeof(struct elf_phdr)) elf_fdpic_fetch_phdrs()
153 size = params->hdr.e_phnum * sizeof(struct elf_phdr); elf_fdpic_fetch_phdrs()
189 struct elf_phdr *phdr; load_elf_fdpic_binary()
642 NEW_AUX_ENT(AT_PHENT, sizeof(struct elf_phdr)); create_elf_fdpic_tables()
827 stop += params->hdr.e_phnum * sizeof (struct elf_phdr); elf_fdpic_map_file()
1331 elf->e_phentsize = sizeof(struct elf_phdr); fill_elf_fdpic_header()
1339 static inline void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset) fill_elf_note_phdr()
1592 struct elf_phdr *phdr4note = NULL; elf_fdpic_core_dump()
1706 offset += segs * sizeof(struct elf_phdr); /* Program headers */ elf_fdpic_core_dump()
1749 struct elf_phdr phdr; elf_fdpic_core_dump()
/linux-4.4.14/arch/powerpc/kernel/
H A Dfadump.c248 size += sizeof(struct elf_phdr); /* place holder for cpu notes */ get_fadump_area_size()
250 size += sizeof(struct elf_phdr) * (memblock_num_regions(memory) + 2); get_fadump_area_size()
530 struct elf_phdr *phdr; fadump_update_elfcore_header()
536 phdr = (struct elf_phdr *)bufp; fadump_update_elfcore_header()
783 elf->e_phentsize = sizeof(struct elf_phdr); fadump_init_elfcore_header()
839 struct elf_phdr *phdr; fadump_create_elfcore_headers()
853 phdr = (struct elf_phdr *)bufp; fadump_create_elfcore_headers()
854 bufp += sizeof(struct elf_phdr); fadump_create_elfcore_headers()
868 phdr = (struct elf_phdr *)bufp; fadump_create_elfcore_headers()
869 bufp += sizeof(struct elf_phdr); fadump_create_elfcore_headers()
893 phdr = (struct elf_phdr *)bufp; fadump_create_elfcore_headers()
894 bufp += sizeof(struct elf_phdr); fadump_create_elfcore_headers()
/linux-4.4.14/arch/mips/kernel/
H A Dvpe.c698 struct elf_phdr *phdr = (struct elf_phdr *) vpe_elfload()
/linux-4.4.14/arch/metag/kernel/
H A Dprocess.c379 struct elf_phdr *eppnt, int prot, int type, __metag_elf_map()

Completed in 1146 milliseconds