Home | History | Annotate | Download | only in libelf

Lines Matching defs:elf

75   Elf *elf = scn->elf;
76 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
84 if (__elf_getshnum_rdlock (elf, &shnum) != 0)
89 of entries from the ELF header. */
90 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr =
92 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL)
97 elf->state.ELFW(elf,LIBELFBITS).shdr_malloced = 1;
99 if (elf->map_address != NULL)
105 void *file_shdr = ((char *) elf->map_address
106 + elf->start_offset + ehdr->e_shoff);
125 ((char *) elf->map_address
126 + elf->start_offset + ehdr->e_shoff);
130 memcpy (notcvt, ((char *) elf->map_address
131 + elf->start_offset + ehdr->e_shoff),
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
165 else if (likely (elf->fildes != -1))
168 ssize_t n = pread_retry (elf->fildes,
169 elf->state.ELFW(elf,LIBELFBITS).shdr, size,
170 elf->start_offset + ehdr->e_shoff);
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];
227 if (unlikely (scn->elf->state.elf.ehdr == NULL))
233 if (unlikely (scn->elf->class != ELFW(ELFCLASS,LIBELFBITS)))
254 rwlock_unlock (scn->elf->lock);
255 rwlock_wrlock (scn->elf->lock);
289 rwlock_rdlock (scn->elf->lock);
291 rwlock_unlock (scn->elf->lock);