Lines Matching refs:phdr

873 	Elf64_Phdr phdr;  in merge_note_headers_elf64()  local
896 phdr.p_type = PT_NOTE; in merge_note_headers_elf64()
897 phdr.p_flags = 0; in merge_note_headers_elf64()
900 phdr.p_offset = roundup(note_off, PAGE_SIZE); in merge_note_headers_elf64()
901 phdr.p_vaddr = phdr.p_paddr = 0; in merge_note_headers_elf64()
902 phdr.p_filesz = phdr.p_memsz = phdr_sz; in merge_note_headers_elf64()
903 phdr.p_align = 0; in merge_note_headers_elf64()
907 memcpy(tmp, &phdr, sizeof(phdr)); in merge_note_headers_elf64()
908 tmp += sizeof(phdr); in merge_note_headers_elf64()
923 elfnotes_orig_sz = phdr.p_memsz; in merge_note_headers_elf64()
1064 Elf32_Phdr phdr; in merge_note_headers_elf32() local
1087 phdr.p_type = PT_NOTE; in merge_note_headers_elf32()
1088 phdr.p_flags = 0; in merge_note_headers_elf32()
1091 phdr.p_offset = roundup(note_off, PAGE_SIZE); in merge_note_headers_elf32()
1092 phdr.p_vaddr = phdr.p_paddr = 0; in merge_note_headers_elf32()
1093 phdr.p_filesz = phdr.p_memsz = phdr_sz; in merge_note_headers_elf32()
1094 phdr.p_align = 0; in merge_note_headers_elf32()
1098 memcpy(tmp, &phdr, sizeof(phdr)); in merge_note_headers_elf32()
1099 tmp += sizeof(phdr); in merge_note_headers_elf32()
1114 elfnotes_orig_sz = phdr.p_memsz; in merge_note_headers_elf32()
1422 Elf64_Phdr *phdr = (Elf64_Phdr *)(elfptr + sizeof(Elf64_Ehdr)); in vmcoredd_update_program_headers() local
1425 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in vmcoredd_update_program_headers()
1426 if (phdr->p_type == PT_NOTE) { in vmcoredd_update_program_headers()
1428 phdr->p_memsz = elfnotes_orig_sz + vmcoreddsz; in vmcoredd_update_program_headers()
1429 phdr->p_filesz = phdr->p_memsz; in vmcoredd_update_program_headers()
1433 start = rounddown(phdr->p_offset, PAGE_SIZE); in vmcoredd_update_program_headers()
1434 end = roundup(phdr->p_offset + phdr->p_memsz, in vmcoredd_update_program_headers()
1437 phdr->p_offset = vmcore_off + (phdr->p_offset - start); in vmcoredd_update_program_headers()
1442 Elf32_Phdr *phdr = (Elf32_Phdr *)(elfptr + sizeof(Elf32_Ehdr)); in vmcoredd_update_program_headers() local
1445 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in vmcoredd_update_program_headers()
1446 if (phdr->p_type == PT_NOTE) { in vmcoredd_update_program_headers()
1448 phdr->p_memsz = elfnotes_orig_sz + vmcoreddsz; in vmcoredd_update_program_headers()
1449 phdr->p_filesz = phdr->p_memsz; in vmcoredd_update_program_headers()
1453 start = rounddown(phdr->p_offset, PAGE_SIZE); in vmcoredd_update_program_headers()
1454 end = roundup(phdr->p_offset + phdr->p_memsz, in vmcoredd_update_program_headers()
1457 phdr->p_offset = vmcore_off + (phdr->p_offset - start); in vmcoredd_update_program_headers()