Lines Matching refs:e_shoff

111 	      ehdr_mem.e32.e_shoff = ((Elf32_Ehdr *) e_ident)->e_shoff;  in get_shnum()
119 CONVERT (ehdr_mem.e32.e_shoff); in get_shnum()
127 ehdr_mem.e64.e_shoff = ((Elf64_Ehdr *) e_ident)->e_shoff; in get_shnum()
135 CONVERT (ehdr_mem.e64.e_shoff); in get_shnum()
145 if (unlikely (result == 0) && ehdr.e32->e_shoff != 0) in get_shnum()
147 if (unlikely (ehdr.e32->e_shoff >= maxsize) in get_shnum()
148 || unlikely (maxsize - ehdr.e32->e_shoff < sizeof (Elf32_Shdr))) in get_shnum()
157 result = ((Elf32_Shdr *) ((char *) map_address + ehdr.e32->e_shoff in get_shnum()
167 + ehdr.e32->e_shoff in get_shnum()
172 offset + ehdr.e32->e_shoff in get_shnum()
185 if (ehdr.e32->e_shoff > maxsize in get_shnum()
186 || maxsize - ehdr.e32->e_shoff < sizeof (Elf32_Shdr) * result) in get_shnum()
194 if (unlikely (result == 0) && ehdr.e64->e_shoff != 0) in get_shnum()
196 if (unlikely (ehdr.e64->e_shoff >= maxsize) in get_shnum()
197 || unlikely (ehdr.e64->e_shoff + sizeof (Elf64_Shdr) > maxsize)) in get_shnum()
207 size = ((Elf64_Shdr *) ((char *) map_address + ehdr.e64->e_shoff in get_shnum()
215 + ehdr.e64->e_shoff in get_shnum()
220 offset + ehdr.e64->e_shoff in get_shnum()
237 if (ehdr.e64->e_shoff > maxsize in get_shnum()
238 || maxsize - ehdr.e64->e_shoff < sizeof (Elf64_Shdr) * result) in get_shnum()
310 && ((uintptr_t) ((char *) ehdr + ehdr->e_shoff) in file_read_elf()
318 if (unlikely (ehdr->e_shoff >= maxsize) in file_read_elf()
319 || unlikely (maxsize - ehdr->e_shoff in file_read_elf()
328 = (Elf32_Shdr *) ((char *) ehdr + ehdr->e_shoff); in file_read_elf()
375 CONVERT (elf->state.elf32.ehdr_mem.e_shoff); in file_read_elf()
406 && ((uintptr_t) ((char *) ehdr + ehdr->e_shoff) in file_read_elf()
414 if (unlikely (ehdr->e_shoff >= maxsize) in file_read_elf()
415 || unlikely (maxsize - ehdr->e_shoff in file_read_elf()
419 = (Elf64_Shdr *) ((char *) ehdr + ehdr->e_shoff); in file_read_elf()
466 CONVERT (elf->state.elf64.ehdr_mem.e_shoff); in file_read_elf()