Lines Matching refs:phdr_ptr

727 	Elf64_Phdr *phdr_ptr;  in update_note_header_size_elf64()  local
730 phdr_ptr = (Elf64_Phdr *)(ehdr_ptr + 1); in update_note_header_size_elf64()
731 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in update_note_header_size_elf64()
734 if (phdr_ptr->p_type != PT_NOTE) in update_note_header_size_elf64()
736 max_sz = phdr_ptr->p_memsz; in update_note_header_size_elf64()
737 offset = phdr_ptr->p_offset; in update_note_header_size_elf64()
760 phdr_ptr->p_memsz = real_sz; in update_note_header_size_elf64()
791 Elf64_Phdr *phdr_ptr; in get_note_number_and_size_elf64() local
795 phdr_ptr = (Elf64_Phdr *)(ehdr_ptr + 1); in get_note_number_and_size_elf64()
796 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in get_note_number_and_size_elf64()
797 if (phdr_ptr->p_type != PT_NOTE) in get_note_number_and_size_elf64()
800 *sz_ptnote += phdr_ptr->p_memsz; in get_note_number_and_size_elf64()
825 Elf64_Phdr *phdr_ptr; in copy_notes_elf64() local
827 phdr_ptr = (Elf64_Phdr*)(ehdr_ptr + 1); in copy_notes_elf64()
829 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in copy_notes_elf64()
831 if (phdr_ptr->p_type != PT_NOTE) in copy_notes_elf64()
833 offset = phdr_ptr->p_offset; in copy_notes_elf64()
834 rc = elfcorehdr_read_notes(notes_buf, phdr_ptr->p_memsz, in copy_notes_elf64()
838 notes_buf += phdr_ptr->p_memsz; in copy_notes_elf64()
918 Elf32_Phdr *phdr_ptr; in update_note_header_size_elf32() local
921 phdr_ptr = (Elf32_Phdr *)(ehdr_ptr + 1); in update_note_header_size_elf32()
922 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in update_note_header_size_elf32()
925 if (phdr_ptr->p_type != PT_NOTE) in update_note_header_size_elf32()
927 max_sz = phdr_ptr->p_memsz; in update_note_header_size_elf32()
928 offset = phdr_ptr->p_offset; in update_note_header_size_elf32()
951 phdr_ptr->p_memsz = real_sz; in update_note_header_size_elf32()
982 Elf32_Phdr *phdr_ptr; in get_note_number_and_size_elf32() local
986 phdr_ptr = (Elf32_Phdr *)(ehdr_ptr + 1); in get_note_number_and_size_elf32()
987 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in get_note_number_and_size_elf32()
988 if (phdr_ptr->p_type != PT_NOTE) in get_note_number_and_size_elf32()
991 *sz_ptnote += phdr_ptr->p_memsz; in get_note_number_and_size_elf32()
1016 Elf32_Phdr *phdr_ptr; in copy_notes_elf32() local
1018 phdr_ptr = (Elf32_Phdr*)(ehdr_ptr + 1); in copy_notes_elf32()
1020 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in copy_notes_elf32()
1022 if (phdr_ptr->p_type != PT_NOTE) in copy_notes_elf32()
1024 offset = phdr_ptr->p_offset; in copy_notes_elf32()
1025 rc = elfcorehdr_read_notes(notes_buf, phdr_ptr->p_memsz, in copy_notes_elf32()
1029 notes_buf += phdr_ptr->p_memsz; in copy_notes_elf32()
1106 Elf64_Phdr *phdr_ptr; in process_ptload_program_headers_elf64() local
1111 phdr_ptr = (Elf64_Phdr*)(elfptr + sizeof(Elf64_Ehdr)); /* PT_NOTE hdr */ in process_ptload_program_headers_elf64()
1116 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in process_ptload_program_headers_elf64()
1119 if (phdr_ptr->p_type != PT_LOAD) in process_ptload_program_headers_elf64()
1122 paddr = phdr_ptr->p_offset; in process_ptload_program_headers_elf64()
1124 end = roundup(paddr + phdr_ptr->p_memsz, PAGE_SIZE); in process_ptload_program_headers_elf64()
1136 phdr_ptr->p_offset = vmcore_off + (paddr - start); in process_ptload_program_headers_elf64()
1149 Elf32_Phdr *phdr_ptr; in process_ptload_program_headers_elf32() local
1154 phdr_ptr = (Elf32_Phdr*)(elfptr + sizeof(Elf32_Ehdr)); /* PT_NOTE hdr */ in process_ptload_program_headers_elf32()
1159 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in process_ptload_program_headers_elf32()
1162 if (phdr_ptr->p_type != PT_LOAD) in process_ptload_program_headers_elf32()
1165 paddr = phdr_ptr->p_offset; in process_ptload_program_headers_elf32()
1167 end = roundup(paddr + phdr_ptr->p_memsz, PAGE_SIZE); in process_ptload_program_headers_elf32()
1179 phdr_ptr->p_offset = vmcore_off + (paddr - start); in process_ptload_program_headers_elf32()