Home | History | Annotate | Download | only in libelf

Lines Matching defs:LIBELFBITS

64 #ifndef LIBELFBITS
65 # define LIBELFBITS 32
69 static ElfW2(LIBELFBITS,Shdr) *
72 ElfW2(LIBELFBITS,Shdr) *result;
76 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
79 result = scn->shdr.ELFW(e,LIBELFBITS);
86 size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr));
90 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr =
91 (ElfW2(LIBELFBITS,Shdr) *) malloc (size);
92 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL)
97 elf->state.ELFW(elf,LIBELFBITS).shdr_malloced = 1;
101 ElfW2(LIBELFBITS,Shdr) *notcvt;
111 & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) != 0));
123 & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) == 0)
124 notcvt = (ElfW2(LIBELFBITS,Shdr) *)
129 notcvt = (ElfW2(LIBELFBITS,Shdr) *) alloca (size);
154 elf->state.ELFW(elf,LIBELFBITS).scns.data[shdr[cnt].sh_link].shndx_index
159 if (elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index == 0)
160 elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index
169 elf->state.ELFW(elf,LIBELFBITS).shdr, size,
203 elf->state.ELFW(elf,LIBELFBITS).shdr = NULL;
204 elf->state.ELFW(elf,LIBELFBITS).shdr_malloced = 0;
211 elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shdr.ELFW(e,LIBELFBITS)
212 = &elf->state.ELFW(elf,LIBELFBITS).shdr[cnt];
214 result = scn->shdr.ELFW(e,LIBELFBITS);
233 if (unlikely (scn->elf->class != ELFW(ELFCLASS,LIBELFBITS)))
242 ElfW2(LIBELFBITS,Shdr) *
243 __elfw2(LIBELFBITS,getshdr_rdlock) (scn)
246 ElfW2(LIBELFBITS,Shdr) *result;
251 result = scn->shdr.ELFW(e,LIBELFBITS);
256 result = scn->shdr.ELFW(e,LIBELFBITS);
264 ElfW2(LIBELFBITS,Shdr) *
265 __elfw2(LIBELFBITS,getshdr_wrlock) (scn)
268 ElfW2(LIBELFBITS,Shdr) *result;
273 result = scn->shdr.ELFW(e,LIBELFBITS);
280 ElfW2(LIBELFBITS,Shdr) *
281 elfw2(LIBELFBITS,getshdr) (scn)
284 ElfW2(LIBELFBITS,Shdr) *result;
290 result = __elfw2(LIBELFBITS,getshdr_rdlock) (scn);