Home
last modified time | relevance | path

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

/fs/
Dbinfmt_elf_fdpic.c124 struct elf32_phdr *phdr; in elf_fdpic_fetch_phdrs() local
144 phdr = params->phdrs; in elf_fdpic_fetch_phdrs()
145 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { in elf_fdpic_fetch_phdrs()
146 if (phdr->p_type != PT_GNU_STACK) in elf_fdpic_fetch_phdrs()
149 if (phdr->p_flags & PF_X) in elf_fdpic_fetch_phdrs()
154 params->stack_size = phdr->p_memsz; in elf_fdpic_fetch_phdrs()
169 struct elf_phdr *phdr; in load_elf_fdpic_binary() local
198 phdr = exec_params.phdrs; in load_elf_fdpic_binary()
200 for (i = 0; i < exec_params.hdr.e_phnum; i++, phdr++) { in load_elf_fdpic_binary()
201 switch (phdr->p_type) { in load_elf_fdpic_binary()
[all …]
Dbinfmt_elf.c1328 static void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset) in fill_elf_note_phdr() argument
1330 phdr->p_type = PT_NOTE; in fill_elf_note_phdr()
1331 phdr->p_offset = offset; in fill_elf_note_phdr()
1332 phdr->p_vaddr = 0; in fill_elf_note_phdr()
1333 phdr->p_paddr = 0; in fill_elf_note_phdr()
1334 phdr->p_filesz = sz; in fill_elf_note_phdr()
1335 phdr->p_memsz = 0; in fill_elf_note_phdr()
1336 phdr->p_flags = 0; in fill_elf_note_phdr()
1337 phdr->p_align = 0; in fill_elf_note_phdr()
1977 struct elf_phdr phdr; in elf_core_dump() local
[all …]
/fs/proc/
Dvmcore.c218 Elf64_Phdr phdr, *phdr_ptr; in merge_note_headers_elf64() local
267 phdr.p_type = PT_NOTE; in merge_note_headers_elf64()
268 phdr.p_flags = 0; in merge_note_headers_elf64()
271 phdr.p_offset = note_off; in merge_note_headers_elf64()
272 phdr.p_vaddr = phdr.p_paddr = 0; in merge_note_headers_elf64()
273 phdr.p_filesz = phdr.p_memsz = phdr_sz; in merge_note_headers_elf64()
274 phdr.p_align = 0; in merge_note_headers_elf64()
278 memcpy(tmp, &phdr, sizeof(phdr)); in merge_note_headers_elf64()
279 tmp += sizeof(phdr); in merge_note_headers_elf64()
299 Elf32_Phdr phdr, *phdr_ptr; in merge_note_headers_elf32() local
[all …]
Dkcore.c151 struct elf_phdr *nhdr, *phdr; in elf_kcore_store_hdr() local
196 phdr = (struct elf_phdr *) bufp; in elf_kcore_store_hdr()
200 phdr->p_type = PT_LOAD; in elf_kcore_store_hdr()
201 phdr->p_flags = PF_R|PF_W|PF_X; in elf_kcore_store_hdr()
202 phdr->p_offset = kc_vaddr_to_offset(m->addr) + dataoff; in elf_kcore_store_hdr()
203 phdr->p_vaddr = (size_t)m->addr; in elf_kcore_store_hdr()
204 phdr->p_paddr = 0; in elf_kcore_store_hdr()
205 phdr->p_filesz = phdr->p_memsz = m->size; in elf_kcore_store_hdr()
206 phdr->p_align = PAGE_SIZE; in elf_kcore_store_hdr()