Lines Matching refs:LIBELFBITS
43 #ifndef LIBELFBITS
44 # define LIBELFBITS 32 macro
48 static ElfW2(LIBELFBITS,Shdr) * in ElfW2() argument
51 ElfW2(LIBELFBITS,Shdr) *result; in ElfW2()
55 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in ElfW2()
58 result = scn->shdr.ELFW(e,LIBELFBITS); in ElfW2()
64 || shnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Shdr))) in ElfW2()
66 size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr)); in ElfW2()
70 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr = in ElfW2()
71 (ElfW2(LIBELFBITS,Shdr) *) malloc (size); in ElfW2()
72 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL) in ElfW2()
77 elf->state.ELFW(elf,LIBELFBITS).shdr_malloced = 1; in ElfW2()
91 ElfW2(LIBELFBITS,Shdr) *notcvt; in ElfW2()
105 & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) != 0)); in ElfW2()
119 & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) in ElfW2()
122 notcvt = (ElfW2(LIBELFBITS,Shdr) *) in ElfW2()
127 notcvt = (ElfW2(LIBELFBITS,Shdr) *) malloc (size); in ElfW2()
157 elf->state.ELFW(elf,LIBELFBITS).scns.data[shdr[cnt].sh_link].shndx_index in ElfW2()
162 if (elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index == 0) in ElfW2()
163 elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index in ElfW2()
175 elf->state.ELFW(elf,LIBELFBITS).shdr, size, in ElfW2()
209 elf->state.ELFW(elf,LIBELFBITS).shdr = NULL; in ElfW2()
210 elf->state.ELFW(elf,LIBELFBITS).shdr_malloced = 0; in ElfW2()
217 elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shdr.ELFW(e,LIBELFBITS) in ElfW2()
218 = &elf->state.ELFW(elf,LIBELFBITS).shdr[cnt]; in ElfW2()
220 result = scn->shdr.ELFW(e,LIBELFBITS); in ElfW2()
239 if (unlikely (scn->elf->class != ELFW(ELFCLASS,LIBELFBITS))) in scn_valid()
248 ElfW2(LIBELFBITS,Shdr) * in ElfW2() argument
250 __elfw2(LIBELFBITS,getshdr_rdlock) (Elf_Scn *scn) in ElfW2()
252 ElfW2(LIBELFBITS,Shdr) *result; in ElfW2()
257 result = scn->shdr.ELFW(e,LIBELFBITS); in ElfW2()
262 result = scn->shdr.ELFW(e,LIBELFBITS); in ElfW2()
270 ElfW2(LIBELFBITS,Shdr) * in ElfW2() argument
272 __elfw2(LIBELFBITS,getshdr_wrlock) (Elf_Scn *scn) in ElfW2()
274 ElfW2(LIBELFBITS,Shdr) *result; in ElfW2()
279 result = scn->shdr.ELFW(e,LIBELFBITS); in ElfW2()
286 ElfW2(LIBELFBITS,Shdr) * in ElfW2() argument
287 elfw2(LIBELFBITS,getshdr) (Elf_Scn *scn) in ElfW2()
289 ElfW2(LIBELFBITS,Shdr) *result; in ElfW2()
295 result = __elfw2(LIBELFBITS,getshdr_rdlock) (scn); in ElfW2()