Home
last modified time | relevance | path

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

/fs/
Dbinfmt_elf_fdpic.c144 struct elf32_phdr *phdr; in elf_fdpic_fetch_phdrs() local
164 phdr = params->phdrs; in elf_fdpic_fetch_phdrs()
165 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { in elf_fdpic_fetch_phdrs()
166 if (phdr->p_type != PT_GNU_STACK) in elf_fdpic_fetch_phdrs()
169 if (phdr->p_flags & PF_X) in elf_fdpic_fetch_phdrs()
174 params->stack_size = phdr->p_memsz; in elf_fdpic_fetch_phdrs()
189 struct elf_phdr *phdr; in load_elf_fdpic_binary() local
231 phdr = exec_params.phdrs; in load_elf_fdpic_binary()
233 for (i = 0; i < exec_params.hdr.e_phnum; i++, phdr++) { in load_elf_fdpic_binary()
234 switch (phdr->p_type) { in load_elf_fdpic_binary()
[all …]
Dbinfmt_elf.c482 struct elf_phdr *phdr, in arch_elf_pt_proc() argument
1439 static void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset) in fill_elf_note_phdr() argument
1441 phdr->p_type = PT_NOTE; in fill_elf_note_phdr()
1442 phdr->p_offset = offset; in fill_elf_note_phdr()
1443 phdr->p_vaddr = 0; in fill_elf_note_phdr()
1444 phdr->p_paddr = 0; in fill_elf_note_phdr()
1445 phdr->p_filesz = sz; in fill_elf_note_phdr()
1446 phdr->p_memsz = 0; in fill_elf_note_phdr()
1447 phdr->p_flags = 0; in fill_elf_note_phdr()
1448 phdr->p_align = 0; in fill_elf_note_phdr()
[all …]
/fs/proc/
Dvmcore.c666 Elf64_Phdr phdr; in merge_note_headers_elf64() local
689 phdr.p_type = PT_NOTE; in merge_note_headers_elf64()
690 phdr.p_flags = 0; in merge_note_headers_elf64()
693 phdr.p_offset = roundup(note_off, PAGE_SIZE); in merge_note_headers_elf64()
694 phdr.p_vaddr = phdr.p_paddr = 0; in merge_note_headers_elf64()
695 phdr.p_filesz = phdr.p_memsz = phdr_sz; in merge_note_headers_elf64()
696 phdr.p_align = 0; in merge_note_headers_elf64()
700 memcpy(tmp, &phdr, sizeof(phdr)); in merge_note_headers_elf64()
701 tmp += sizeof(phdr); in merge_note_headers_elf64()
852 Elf32_Phdr phdr; in merge_note_headers_elf32() local
[all …]
Dkcore.c323 struct elf_phdr *nhdr, *phdr; in elf_kcore_store_hdr() local
368 phdr = (struct elf_phdr *) bufp; in elf_kcore_store_hdr()
372 phdr->p_type = PT_LOAD; in elf_kcore_store_hdr()
373 phdr->p_flags = PF_R|PF_W|PF_X; in elf_kcore_store_hdr()
374 phdr->p_offset = kc_vaddr_to_offset(m->addr) + dataoff; in elf_kcore_store_hdr()
375 phdr->p_vaddr = (size_t)m->addr; in elf_kcore_store_hdr()
376 phdr->p_paddr = 0; in elf_kcore_store_hdr()
377 phdr->p_filesz = phdr->p_memsz = m->size; in elf_kcore_store_hdr()
378 phdr->p_align = PAGE_SIZE; in elf_kcore_store_hdr()