Home
last modified time | relevance | path

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

/linux-2.6.39/arch/ia64/hp/sim/boot/
Dbootloader.c65 struct elf_phdr *elf_phdr; /* program header */ in start_bootloader() local
137 req.len = sizeof(*elf_phdr); in start_bootloader()
141 if (stat.count != sizeof(*elf_phdr)) { in start_bootloader()
145 e_phoff += sizeof(*elf_phdr); in start_bootloader()
147 elf_phdr = (struct elf_phdr *) mem; in start_bootloader()
149 if (elf_phdr->p_type != PT_LOAD) in start_bootloader()
152 req.len = elf_phdr->p_filesz; in start_bootloader()
153 req.addr = __pa(elf_phdr->p_paddr); in start_bootloader()
154 ssc(fd, 1, (long) &req, elf_phdr->p_offset, SSC_READ); in start_bootloader()
156 memset((char *)__pa(elf_phdr->p_paddr) + elf_phdr->p_filesz, 0, in start_bootloader()
[all …]
/linux-2.6.39/arch/alpha/boot/tools/
Dobjstrip.c58 struct elf_phdr *elf_phdr; /* program header */ in main() local
167 if (read(fd, buf, sizeof(*elf_phdr)) != sizeof(*elf_phdr)) { in main()
172 elf_phdr = (struct elf_phdr *) buf; in main()
173 offset = elf_phdr->p_offset; in main()
174 mem_size = elf_phdr->p_memsz; in main()
175 fil_size = elf_phdr->p_filesz; in main()
178 if (elf_phdr->p_vaddr < e_entry) { in main()
179 unsigned long delta = e_entry - elf_phdr->p_vaddr; in main()
183 elf_phdr->p_vaddr += delta; in main()
188 prog_name, (long) elf_phdr->p_vaddr, in main()
[all …]
/linux-2.6.39/arch/um/sys-i386/
Delfcore.c20 const struct elf_phdr *const phdrp = in elf_core_write_extra_phdrs()
21 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff); in elf_core_write_extra_phdrs()
26 struct elf_phdr phdr = phdrp[i]; in elf_core_write_extra_phdrs()
50 const struct elf_phdr *const phdrp = in elf_core_write_extra_data()
51 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff); in elf_core_write_extra_data()
74 const struct elf_phdr *const phdrp = in elf_core_extra_data_size()
75 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff); in elf_core_extra_data_size()
/linux-2.6.39/arch/ia64/kernel/
Delfcore.c17 const struct elf_phdr *const gate_phdrs = in elf_core_write_extra_phdrs()
18 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); in elf_core_write_extra_phdrs()
23 struct elf_phdr phdr = gate_phdrs[i]; in elf_core_write_extra_phdrs()
48 const struct elf_phdr *const gate_phdrs = in elf_core_write_extra_data()
49 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); in elf_core_write_extra_data()
68 const struct elf_phdr *const gate_phdrs = in elf_core_extra_data_size()
69 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); in elf_core_extra_data_size()
/linux-2.6.39/fs/proc/
Dkcore.c86 (*nphdr + 2)*sizeof(struct elf_phdr) + in get_kcore_size()
318 struct elf_phdr *nhdr, *phdr; in elf_kcore_store_hdr()
342 elf->e_phentsize= sizeof(struct elf_phdr); in elf_kcore_store_hdr()
349 nhdr = (struct elf_phdr *) bufp; in elf_kcore_store_hdr()
350 bufp += sizeof(struct elf_phdr); in elf_kcore_store_hdr()
351 offset += sizeof(struct elf_phdr); in elf_kcore_store_hdr()
363 phdr = (struct elf_phdr *) bufp; in elf_kcore_store_hdr()
364 bufp += sizeof(struct elf_phdr); in elf_kcore_store_hdr()
365 offset += sizeof(struct elf_phdr); in elf_kcore_store_hdr()
/linux-2.6.39/fs/
Dcompat_binfmt_elf.c30 #undef elf_phdr
35 #define elf_phdr elf32_phdr macro
Dbinfmt_elf.c41 static unsigned long elf_map(struct file *, unsigned long, struct elf_phdr *,
225 NEW_AUX_ENT(AT_PHENT, sizeof(struct elf_phdr)); in create_elf_tables()
319 struct elf_phdr *eppnt, int prot, int type, in elf_map()
354 static unsigned long total_mapping_size(struct elf_phdr *cmds, int nr) in total_mapping_size()
382 struct elf_phdr *elf_phdata; in load_elf_interp()
383 struct elf_phdr *eppnt; in load_elf_interp()
404 if (interp_elf_ex->e_phentsize != sizeof(struct elf_phdr)) in load_elf_interp()
407 interp_elf_ex->e_phnum > 65536U / sizeof(struct elf_phdr)) in load_elf_interp()
411 size = sizeof(struct elf_phdr) * interp_elf_ex->e_phnum; in load_elf_interp()
566 struct elf_phdr *elf_ppnt, *elf_phdata; in load_elf_binary()
[all …]
Dbinfmt_elf_fdpic.c129 if (params->hdr.e_phentsize != sizeof(struct elf_phdr)) in elf_fdpic_fetch_phdrs()
131 if (params->hdr.e_phnum > 65536U / sizeof(struct elf_phdr)) in elf_fdpic_fetch_phdrs()
134 size = params->hdr.e_phnum * sizeof(struct elf_phdr); in elf_fdpic_fetch_phdrs()
170 struct elf_phdr *phdr; in load_elf_fdpic_binary()
631 NEW_AUX_ENT(AT_PHENT, sizeof(struct elf_phdr)); in create_elf_fdpic_tables()
816 stop += params->hdr.e_phnum * sizeof (struct elf_phdr); in elf_fdpic_map_file()
1333 elf->e_phentsize = sizeof(struct elf_phdr); in fill_elf_fdpic_header()
1341 static inline void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset) in fill_elf_note_phdr()
1618 struct elf_phdr *phdr4note = NULL; in elf_fdpic_core_dump()
1737 offset += segs * sizeof(struct elf_phdr); /* Program headers */ in elf_fdpic_core_dump()
[all …]
/linux-2.6.39/include/linux/
Delf-fdpic.h39 struct elf_phdr *phdrs; /* ref copy of PT_PHDR table */
Delf.h419 #define elf_phdr elf32_phdr macro
429 #define elf_phdr elf64_phdr macro
/linux-2.6.39/arch/mips/kernel/
Dvpe.c965 struct elf_phdr *phdr = (struct elf_phdr *) ((char *)hdr + hdr->e_phoff); in vpe_elfload()