Lines Matching refs:LIBELFBITS
28 #ifndef LIBELFBITS
29 # define LIBELFBITS 32
33 ElfW2(LIBELFBITS,Phdr) *
34 elfw2(LIBELFBITS,getphdr) (elf)
37 ElfW2(LIBELFBITS,Phdr) *result;
51 result = elf->state.ELFW(elf,LIBELFBITS).phdr;
58 elf->class = ELFW(ELFCLASS,LIBELFBITS);
59 else if (elf->class != ELFW(ELFCLASS,LIBELFBITS))
69 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
81 size = phnum * sizeof (ElfW2(LIBELFBITS,Phdr));
89 & (__alignof__ (ElfW2(LIBELFBITS,Phdr)) - 1)) == 0))
91 elf->state.ELFW(elf,LIBELFBITS).phdr = (ElfW2(LIBELFBITS,Phdr) *)
96 ElfW2(LIBELFBITS,Phdr) *notcvt;
97 ElfW2(LIBELFBITS,Phdr) *phdr;
101 phdr = elf->state.ELFW(elf,LIBELFBITS).phdr =
102 (ElfW2(LIBELFBITS,Phdr) *) malloc (size);
103 if (elf->state.ELFW(elf,LIBELFBITS).phdr == NULL)
108 elf->state.ELFW(elf,LIBELFBITS).phdr_flags |=
115 & (__alignof__ (ElfW2(LIBELFBITS,Phdr)) - 1)) == 0)
116 notcvt = (ElfW2(LIBELFBITS,Phdr) *)
121 notcvt = (ElfW2(LIBELFBITS,Phdr) *) alloca (size);
144 elf->state.ELFW(elf,LIBELFBITS).phdr =
145 (ElfW2(LIBELFBITS,Phdr) *) malloc (size);
146 if (elf->state.ELFW(elf,LIBELFBITS).phdr == NULL)
151 elf->state.ELFW(elf,LIBELFBITS).phdr_flags |= ELF_F_MALLOCED;
155 elf->state.ELFW(elf,LIBELFBITS).phdr, size,
160 free (elf->state.ELFW(elf,LIBELFBITS).phdr);
161 elf->state.ELFW(elf,LIBELFBITS).phdr = NULL;
169 ElfW2(LIBELFBITS,Phdr) *phdr;
172 phdr = elf->state.ELFW(elf,LIBELFBITS).phdr;
194 result = elf->state.ELFW(elf,LIBELFBITS).phdr;
202 INTDEF(elfw2(LIBELFBITS,getphdr))