• Home
  • Raw
  • Download

Lines Matching refs:e_shoff

117 	      ehdr_mem.e32.e_shoff = ((Elf32_Ehdr *) e_ident)->e_shoff;  in get_shnum()
125 CONVERT (ehdr_mem.e32.e_shoff); in get_shnum()
133 ehdr_mem.e64.e_shoff = ((Elf64_Ehdr *) e_ident)->e_shoff; in get_shnum()
141 CONVERT (ehdr_mem.e64.e_shoff); in get_shnum()
151 if (unlikely (result == 0) && ehdr.e32->e_shoff != 0) in get_shnum()
153 if (unlikely (ehdr.e32->e_shoff >= maxsize) in get_shnum()
154 || unlikely (maxsize - ehdr.e32->e_shoff < sizeof (Elf32_Shdr))) in get_shnum()
160 || (((size_t) ((char *) map_address + ehdr.e32->e_shoff)) in get_shnum()
163 result = ((Elf32_Shdr *) ((char *) map_address + ehdr.e32->e_shoff in get_shnum()
174 + ehdr.e32->e_shoff in get_shnum()
180 offset + ehdr.e32->e_shoff in get_shnum()
200 if (ehdr.e32->e_shoff > maxsize in get_shnum()
201 || maxsize - ehdr.e32->e_shoff < sizeof (Elf32_Shdr) * result) in get_shnum()
209 if (unlikely (result == 0) && ehdr.e64->e_shoff != 0) in get_shnum()
211 if (unlikely (ehdr.e64->e_shoff >= maxsize) in get_shnum()
212 || unlikely (ehdr.e64->e_shoff + sizeof (Elf64_Shdr) > maxsize)) in get_shnum()
219 || (((size_t) ((char *) map_address + ehdr.e64->e_shoff)) in get_shnum()
222 size = ((Elf64_Shdr *) ((char *) map_address + ehdr.e64->e_shoff in get_shnum()
231 + ehdr.e64->e_shoff in get_shnum()
237 offset + ehdr.e64->e_shoff in get_shnum()
267 if (ehdr.e64->e_shoff > maxsize in get_shnum()
268 || maxsize - ehdr.e64->e_shoff < sizeof (Elf64_Shdr) * result) in get_shnum()
365 CONVERT (elf->state.elf32.ehdr_mem.e_shoff); in file_read_elf()
379 Elf32_Off e_shoff = elf->state.elf32.ehdr->e_shoff; in file_read_elf() local
383 || (((uintptr_t) ((char *) ehdr + e_shoff) in file_read_elf()
386 if (unlikely (scncnt > 0 && e_shoff >= maxsize) in file_read_elf()
387 || unlikely (maxsize - e_shoff in file_read_elf()
396 = (Elf32_Shdr *) ((char *) ehdr + e_shoff); in file_read_elf()
467 CONVERT (elf->state.elf64.ehdr_mem.e_shoff); in file_read_elf()
481 Elf64_Off e_shoff = elf->state.elf64.ehdr->e_shoff; in file_read_elf() local
485 || (((uintptr_t) ((char *) ehdr + e_shoff) in file_read_elf()
488 if (unlikely (scncnt > 0 && e_shoff >= maxsize) in file_read_elf()
489 || unlikely (maxsize - e_shoff in file_read_elf()
493 = (Elf64_Shdr *) ((char *) ehdr + e_shoff); in file_read_elf()