Lines Matching refs:ElfW2
133 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in __elfw2()
140 assert (sizeof (ElfW2(LIBELFBITS,Ehdr)) in __elfw2()
151 sizeof (ElfW2(LIBELFBITS,Ehdr)), 1); in __elfw2()
155 sizeof (ElfW2(LIBELFBITS,Ehdr))); in __elfw2()
175 assert (sizeof (ElfW2(LIBELFBITS,Phdr)) in __elfw2()
193 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1); in __elfw2()
198 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2()
233 #define shdr_dest ((ElfW2(LIBELFBITS,Shdr) *) shdr_start) in __elfw2()
254 void *p = malloc (sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2()
263 sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2()
307 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); in __elfw2()
437 sizeof (ElfW2(LIBELFBITS,Shdr)), 1); in __elfw2()
441 sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2()
527 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in __elfw2()
532 ElfW2(LIBELFBITS,Ehdr) tmp_ehdr; in __elfw2()
533 ElfW2(LIBELFBITS,Ehdr) *out_ehdr = ehdr; in __elfw2()
537 assert (sizeof (ElfW2(LIBELFBITS,Ehdr)) in __elfw2()
547 (*fctp) (&tmp_ehdr, ehdr, sizeof (ElfW2(LIBELFBITS,Ehdr)), 1); in __elfw2()
555 sizeof (ElfW2(LIBELFBITS,Ehdr)), 0) in __elfw2()
556 != sizeof (ElfW2(LIBELFBITS,Ehdr)))) in __elfw2()
571 assert (sizeof (ElfW2(LIBELFBITS,Phdr)) in __elfw2()
583 ElfW2(LIBELFBITS,Phdr) *tmp_phdr = NULL; in __elfw2()
584 ElfW2(LIBELFBITS,Phdr) *out_phdr = elf->state.ELFW(elf,LIBELFBITS).phdr; in __elfw2()
601 tmp_phdr = (ElfW2(LIBELFBITS,Phdr) *) in __elfw2()
602 malloc (sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2()
611 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1); in __elfw2()
618 size_t phdr_size = sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum; in __elfw2()
643 last_offset = (ehdr->e_phoff + sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2()
649 + sizeof (ElfW2(LIBELFBITS,Shdr))))) in __elfw2()
656 ElfW2(LIBELFBITS,Shdr) *shdr_data; in __elfw2()
657 ElfW2(LIBELFBITS,Shdr) *shdr_data_mem = NULL; in __elfw2()
661 shdr_data_mem = (ElfW2(LIBELFBITS,Shdr) *) in __elfw2()
662 malloc (shnum * sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2()
696 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); in __elfw2()
803 sizeof (ElfW2(LIBELFBITS,Shdr)), 1); in __elfw2()
807 sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2()
824 sizeof (ElfW2(LIBELFBITS,Shdr)) in __elfw2()
826 != sizeof (ElfW2(LIBELFBITS,Shdr)) * shnum)) in __elfw2()