Searched refs:phdr (Results 1 – 5 of 5) sorted by relevance
/fs/ |
D | binfmt_elf_fdpic.c | 141 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 …]
|
D | binfmt_elf.c | 538 struct elf_phdr *phdr, in arch_elf_pt_proc() argument 766 static int parse_elf_properties(struct file *f, const struct elf_phdr *phdr, in parse_elf_properties() argument 780 if (!IS_ENABLED(CONFIG_ARCH_USE_GNU_PROPERTY) || !phdr) in parse_elf_properties() 784 if (WARN_ON_ONCE(phdr->p_type != PT_GNU_PROPERTY)) in parse_elf_properties() 788 if (phdr->p_filesz > sizeof(note)) in parse_elf_properties() 791 pos = phdr->p_offset; in parse_elf_properties() 792 n = kernel_read(f, ¬e, phdr->p_filesz, &pos); in parse_elf_properties() 1489 static void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset) in fill_elf_note_phdr() argument 1491 phdr->p_type = PT_NOTE; in fill_elf_note_phdr() 1492 phdr->p_offset = offset; in fill_elf_note_phdr() [all …]
|
/fs/proc/ |
D | vmcore.c | 834 Elf64_Phdr phdr; in merge_note_headers_elf64() local 857 phdr.p_type = PT_NOTE; in merge_note_headers_elf64() 858 phdr.p_flags = 0; in merge_note_headers_elf64() 861 phdr.p_offset = roundup(note_off, PAGE_SIZE); in merge_note_headers_elf64() 862 phdr.p_vaddr = phdr.p_paddr = 0; in merge_note_headers_elf64() 863 phdr.p_filesz = phdr.p_memsz = phdr_sz; in merge_note_headers_elf64() 864 phdr.p_align = 0; in merge_note_headers_elf64() 868 memcpy(tmp, &phdr, sizeof(phdr)); in merge_note_headers_elf64() 869 tmp += sizeof(phdr); in merge_note_headers_elf64() 884 elfnotes_orig_sz = phdr.p_memsz; in merge_note_headers_elf64() [all …]
|
D | kcore.c | 372 struct elf_phdr *phdrs, *phdr; in read_kcore() local 384 phdr = &phdrs[1]; in read_kcore() 386 phdr->p_type = PT_LOAD; in read_kcore() 387 phdr->p_flags = PF_R | PF_W | PF_X; in read_kcore() 388 phdr->p_offset = kc_vaddr_to_offset(m->addr) + data_offset; in read_kcore() 389 phdr->p_vaddr = (size_t)m->addr; in read_kcore() 391 phdr->p_paddr = __pa(m->addr); in read_kcore() 393 phdr->p_paddr = __pa_symbol(m->addr); in read_kcore() 395 phdr->p_paddr = (elf_addr_t)-1; in read_kcore() 396 phdr->p_filesz = phdr->p_memsz = m->size; in read_kcore() [all …]
|
/fs/xfs/ |
D | xfs_attr_inactive.c | 223 struct xfs_da3_icnode_hdr phdr; in xfs_attr3_node_inactive() local 229 xfs_da3_node_hdr_from_disk(dp->i_mount, &phdr, in xfs_attr3_node_inactive() 231 child_fsb = be32_to_cpu(phdr.btree[i + 1].before); in xfs_attr3_node_inactive()
|