Lines Matching refs:buf_ehdr
121 struct elfhdr *buf_ehdr; in elf_read_ehdr() local
123 if (len < sizeof(*buf_ehdr)) { in elf_read_ehdr()
144 buf_ehdr = (struct elfhdr *) buf; in elf_read_ehdr()
145 if (elf16_to_cpu(ehdr, buf_ehdr->e_ehsize) != sizeof(*buf_ehdr)) { in elf_read_ehdr()
150 ehdr->e_type = elf16_to_cpu(ehdr, buf_ehdr->e_type); in elf_read_ehdr()
151 ehdr->e_machine = elf16_to_cpu(ehdr, buf_ehdr->e_machine); in elf_read_ehdr()
152 ehdr->e_version = elf32_to_cpu(ehdr, buf_ehdr->e_version); in elf_read_ehdr()
153 ehdr->e_flags = elf32_to_cpu(ehdr, buf_ehdr->e_flags); in elf_read_ehdr()
154 ehdr->e_phentsize = elf16_to_cpu(ehdr, buf_ehdr->e_phentsize); in elf_read_ehdr()
155 ehdr->e_phnum = elf16_to_cpu(ehdr, buf_ehdr->e_phnum); in elf_read_ehdr()
156 ehdr->e_shentsize = elf16_to_cpu(ehdr, buf_ehdr->e_shentsize); in elf_read_ehdr()
157 ehdr->e_shnum = elf16_to_cpu(ehdr, buf_ehdr->e_shnum); in elf_read_ehdr()
158 ehdr->e_shstrndx = elf16_to_cpu(ehdr, buf_ehdr->e_shstrndx); in elf_read_ehdr()
162 ehdr->e_entry = elf64_to_cpu(ehdr, buf_ehdr->e_entry); in elf_read_ehdr()
163 ehdr->e_phoff = elf64_to_cpu(ehdr, buf_ehdr->e_phoff); in elf_read_ehdr()
164 ehdr->e_shoff = elf64_to_cpu(ehdr, buf_ehdr->e_shoff); in elf_read_ehdr()
168 ehdr->e_entry = elf32_to_cpu(ehdr, buf_ehdr->e_entry); in elf_read_ehdr()
169 ehdr->e_phoff = elf32_to_cpu(ehdr, buf_ehdr->e_phoff); in elf_read_ehdr()
170 ehdr->e_shoff = elf32_to_cpu(ehdr, buf_ehdr->e_shoff); in elf_read_ehdr()