Lines Matching refs:ehdr_ptr

726 static int __init update_note_header_size_elf64(const Elf64_Ehdr *ehdr_ptr)  in update_note_header_size_elf64()  argument
732 phdr_ptr = (Elf64_Phdr *)(ehdr_ptr + 1); in update_note_header_size_elf64()
733 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in update_note_header_size_elf64()
789 static int __init get_note_number_and_size_elf64(const Elf64_Ehdr *ehdr_ptr, in get_note_number_and_size_elf64() argument
797 phdr_ptr = (Elf64_Phdr *)(ehdr_ptr + 1); in get_note_number_and_size_elf64()
798 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in get_note_number_and_size_elf64()
824 static int __init copy_notes_elf64(const Elf64_Ehdr *ehdr_ptr, char *notes_buf) in copy_notes_elf64() argument
829 phdr_ptr = (Elf64_Phdr*)(ehdr_ptr + 1); in copy_notes_elf64()
831 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in copy_notes_elf64()
852 Elf64_Ehdr *ehdr_ptr; in merge_note_headers_elf64() local
856 ehdr_ptr = (Elf64_Ehdr *)elfptr; in merge_note_headers_elf64()
858 rc = update_note_header_size_elf64(ehdr_ptr); in merge_note_headers_elf64()
862 rc = get_note_number_and_size_elf64(ehdr_ptr, &nr_ptnote, &phdr_sz); in merge_note_headers_elf64()
871 rc = copy_notes_elf64(ehdr_ptr, *notes_buf); in merge_note_headers_elf64()
879 (ehdr_ptr->e_phnum - nr_ptnote +1) * sizeof(Elf64_Phdr); in merge_note_headers_elf64()
898 ehdr_ptr->e_phnum = ehdr_ptr->e_phnum - nr_ptnote + 1; in merge_note_headers_elf64()
917 static int __init update_note_header_size_elf32(const Elf32_Ehdr *ehdr_ptr) in update_note_header_size_elf32() argument
923 phdr_ptr = (Elf32_Phdr *)(ehdr_ptr + 1); in update_note_header_size_elf32()
924 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in update_note_header_size_elf32()
980 static int __init get_note_number_and_size_elf32(const Elf32_Ehdr *ehdr_ptr, in get_note_number_and_size_elf32() argument
988 phdr_ptr = (Elf32_Phdr *)(ehdr_ptr + 1); in get_note_number_and_size_elf32()
989 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in get_note_number_and_size_elf32()
1015 static int __init copy_notes_elf32(const Elf32_Ehdr *ehdr_ptr, char *notes_buf) in copy_notes_elf32() argument
1020 phdr_ptr = (Elf32_Phdr*)(ehdr_ptr + 1); in copy_notes_elf32()
1022 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in copy_notes_elf32()
1043 Elf32_Ehdr *ehdr_ptr; in merge_note_headers_elf32() local
1047 ehdr_ptr = (Elf32_Ehdr *)elfptr; in merge_note_headers_elf32()
1049 rc = update_note_header_size_elf32(ehdr_ptr); in merge_note_headers_elf32()
1053 rc = get_note_number_and_size_elf32(ehdr_ptr, &nr_ptnote, &phdr_sz); in merge_note_headers_elf32()
1062 rc = copy_notes_elf32(ehdr_ptr, *notes_buf); in merge_note_headers_elf32()
1070 (ehdr_ptr->e_phnum - nr_ptnote +1) * sizeof(Elf32_Phdr); in merge_note_headers_elf32()
1089 ehdr_ptr->e_phnum = ehdr_ptr->e_phnum - nr_ptnote + 1; in merge_note_headers_elf32()
1107 Elf64_Ehdr *ehdr_ptr; in process_ptload_program_headers_elf64() local
1112 ehdr_ptr = (Elf64_Ehdr *)elfptr; in process_ptload_program_headers_elf64()
1118 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in process_ptload_program_headers_elf64()
1150 Elf32_Ehdr *ehdr_ptr; in process_ptload_program_headers_elf32() local
1155 ehdr_ptr = (Elf32_Ehdr *)elfptr; in process_ptload_program_headers_elf32()
1161 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in process_ptload_program_headers_elf32()