Lines Matching refs:ehdr
86 ElfW2(LIBELFBITS,Ehdr) *ehdr; in __elfw2()
91 ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in __elfw2()
112 (*fctp) ((char *) elf->map_address + elf->start_offset, ehdr, in __elfw2()
116 memcpy (elf->map_address + elf->start_offset, ehdr, in __elfw2()
134 if (ehdr->e_phoff > ehdr->e_ehsize) in __elfw2()
135 memset (elf->map_address + elf->start_offset + ehdr->e_ehsize, in __elfw2()
136 __libelf_fill_byte, ehdr->e_phoff - ehdr->e_ehsize); in __elfw2()
149 (*fctp) (elf->map_address + elf->start_offset + ehdr->e_phoff, in __elfw2()
151 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum, 1); in __elfw2()
154 memcpy (elf->map_address + elf->start_offset + ehdr->e_phoff, in __elfw2()
156 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum); in __elfw2()
165 ehdr->e_phoff) in __elfw2()
166 + elf_typesize (LIBELFBITS, ELF_T_PHDR, ehdr->e_phnum)); in __elfw2()
175 + ehdr->e_shoff); in __elfw2()
176 char *shdr_end = shdr_start + ehdr->e_shnum * ehdr->e_shentsize; in __elfw2()
186 ((char *) elf->map_address + elf->start_offset + ehdr->e_shoff); in __elfw2()
293 + ehdr->e_shoff)) in __elfw2()
295 (char *) elf->map_address + elf->start_offset + ehdr->e_shoff in __elfw2()
355 ElfW2(LIBELFBITS,Ehdr) *ehdr; in __elfw2()
360 ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in __elfw2()
366 ElfW2(LIBELFBITS,Ehdr) *out_ehdr = ehdr; in __elfw2()
384 (*fctp) (&tmp_ehdr, ehdr, sizeof (ElfW2(LIBELFBITS,Ehdr)), 1); in __elfw2()
417 if (ehdr->e_phoff > ehdr->e_ehsize in __elfw2()
418 && unlikely (fill (elf->fildes, ehdr->e_ehsize, in __elfw2()
419 ehdr->e_phoff - ehdr->e_ehsize, fillbuf, &filled) in __elfw2()
435 malloc (sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum); in __elfw2()
444 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum, 1); in __elfw2()
453 * ehdr->e_phnum, ehdr->e_phoff) in __elfw2()
454 != sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum)) in __elfw2()
471 last_offset = (ehdr->e_phoff in __elfw2()
472 + sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum); in __elfw2()
484 shdr_offset = elf->start_offset + ehdr->e_shoff; in __elfw2()