Lines Matching refs:elfptr
845 static int __init merge_note_headers_elf64(char *elfptr, size_t *elfsz, in merge_note_headers_elf64() argument
854 ehdr_ptr = (Elf64_Ehdr *)elfptr; in merge_note_headers_elf64()
884 tmp = elfptr + sizeof(Elf64_Ehdr); in merge_note_headers_elf64()
892 memset(elfptr + *elfsz, 0, i); in merge_note_headers_elf64()
1036 static int __init merge_note_headers_elf32(char *elfptr, size_t *elfsz, in merge_note_headers_elf32() argument
1045 ehdr_ptr = (Elf32_Ehdr *)elfptr; in merge_note_headers_elf32()
1075 tmp = elfptr + sizeof(Elf32_Ehdr); in merge_note_headers_elf32()
1083 memset(elfptr + *elfsz, 0, i); in merge_note_headers_elf32()
1099 static int __init process_ptload_program_headers_elf64(char *elfptr, in process_ptload_program_headers_elf64() argument
1110 ehdr_ptr = (Elf64_Ehdr *)elfptr; in process_ptload_program_headers_elf64()
1111 phdr_ptr = (Elf64_Phdr*)(elfptr + sizeof(Elf64_Ehdr)); /* PT_NOTE hdr */ in process_ptload_program_headers_elf64()
1142 static int __init process_ptload_program_headers_elf32(char *elfptr, in process_ptload_program_headers_elf32() argument
1153 ehdr_ptr = (Elf32_Ehdr *)elfptr; in process_ptload_program_headers_elf32()
1154 phdr_ptr = (Elf32_Phdr*)(elfptr + sizeof(Elf32_Ehdr)); /* PT_NOTE hdr */ in process_ptload_program_headers_elf32()
1388 static void vmcoredd_update_program_headers(char *elfptr, size_t elfnotesz, in vmcoredd_update_program_headers() argument
1391 unsigned char *e_ident = (unsigned char *)elfptr; in vmcoredd_update_program_headers()
1399 Elf64_Ehdr *ehdr = (Elf64_Ehdr *)elfptr; in vmcoredd_update_program_headers()
1400 Elf64_Phdr *phdr = (Elf64_Phdr *)(elfptr + sizeof(Elf64_Ehdr)); in vmcoredd_update_program_headers()
1419 Elf32_Ehdr *ehdr = (Elf32_Ehdr *)elfptr; in vmcoredd_update_program_headers()
1420 Elf32_Phdr *phdr = (Elf32_Phdr *)(elfptr + sizeof(Elf32_Ehdr)); in vmcoredd_update_program_headers()