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