Home
last modified time | relevance | path

Searched refs:phdr (Results 1 – 4 of 4) sorted by relevance

/fs/
Dbinfmt_elf_fdpic.c141 struct elf32_phdr *phdr; in elf_fdpic_fetch_phdrs() local
161 phdr = params->phdrs; in elf_fdpic_fetch_phdrs()
162 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { in elf_fdpic_fetch_phdrs()
163 if (phdr->p_type != PT_GNU_STACK) in elf_fdpic_fetch_phdrs()
166 if (phdr->p_flags & PF_X) in elf_fdpic_fetch_phdrs()
171 params->stack_size = phdr->p_memsz; in elf_fdpic_fetch_phdrs()
186 struct elf_phdr *phdr; in load_elf_fdpic_binary() local
229 phdr = exec_params.phdrs; in load_elf_fdpic_binary()
231 for (i = 0; i < exec_params.hdr.e_phnum; i++, phdr++) { in load_elf_fdpic_binary()
232 switch (phdr->p_type) { in load_elf_fdpic_binary()
[all …]
Dbinfmt_elf.c495 struct elf_phdr *phdr, in arch_elf_pt_proc() argument
1447 static void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset) in fill_elf_note_phdr() argument
1449 phdr->p_type = PT_NOTE; in fill_elf_note_phdr()
1450 phdr->p_offset = offset; in fill_elf_note_phdr()
1451 phdr->p_vaddr = 0; in fill_elf_note_phdr()
1452 phdr->p_paddr = 0; in fill_elf_note_phdr()
1453 phdr->p_filesz = sz; in fill_elf_note_phdr()
1454 phdr->p_memsz = 0; in fill_elf_note_phdr()
1455 phdr->p_flags = 0; in fill_elf_note_phdr()
1456 phdr->p_align = 0; in fill_elf_note_phdr()
[all …]
/fs/proc/
Dvmcore.c830 Elf64_Phdr phdr; in merge_note_headers_elf64() local
853 phdr.p_type = PT_NOTE; in merge_note_headers_elf64()
854 phdr.p_flags = 0; in merge_note_headers_elf64()
857 phdr.p_offset = roundup(note_off, PAGE_SIZE); in merge_note_headers_elf64()
858 phdr.p_vaddr = phdr.p_paddr = 0; in merge_note_headers_elf64()
859 phdr.p_filesz = phdr.p_memsz = phdr_sz; in merge_note_headers_elf64()
860 phdr.p_align = 0; in merge_note_headers_elf64()
864 memcpy(tmp, &phdr, sizeof(phdr)); in merge_note_headers_elf64()
865 tmp += sizeof(phdr); in merge_note_headers_elf64()
880 elfnotes_orig_sz = phdr.p_memsz; in merge_note_headers_elf64()
[all …]
Dkcore.c368 struct elf_phdr *phdrs, *phdr; in read_kcore() local
380 phdr = &phdrs[1]; in read_kcore()
382 phdr->p_type = PT_LOAD; in read_kcore()
383 phdr->p_flags = PF_R | PF_W | PF_X; in read_kcore()
384 phdr->p_offset = kc_vaddr_to_offset(m->addr) + data_offset; in read_kcore()
386 phdr->p_vaddr = (size_t)m->vaddr; in read_kcore()
388 phdr->p_vaddr = (size_t)m->addr; in read_kcore()
390 phdr->p_paddr = __pa(m->addr); in read_kcore()
392 phdr->p_paddr = __pa_symbol(m->addr); in read_kcore()
394 phdr->p_paddr = (elf_addr_t)-1; in read_kcore()
[all …]