Home | History | Annotate | Download | only in libelf

Lines Matching defs:elf

42   if (unlikely (scn->elf->state.elf.ehdr == NULL))
48 if (unlikely (scn->elf->class != ELFW(ELFCLASS,LIBELFBITS)))
58 Elf *elf = scn->elf;
59 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
65 rwlock_wrlock (elf->lock);
72 if (INTUSE (elf_getshnum) (elf, &shnum) != 0)
77 of entries from the ELF header. */
78 shdr = elf->state.ELFW(elf,LIBELFBITS).shdr =
80 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL)
85 elf->state.ELFW(elf,LIBELFBITS).shdr_malloced = 1;
87 if (elf->map_address != NULL)
104 ((char *) elf->map_address
105 + elf->start_offset + ehdr->e_shoff);
109 memcpy (notcvt, ((char *) elf->map_address
110 + elf->start_offset + ehdr->e_shoff),
128 else if (elf->fildes != -1)
131 if ((size_t) pread (elf->fildes,
132 elf->state.ELFW(elf,LIBELFBITS).shdr, size,
133 elf->start_offset + ehdr->e_shoff) != size)
165 elf->state.ELFW(elf,LIBELFBITS).shdr = NULL;
166 elf->state.ELFW(elf,LIBELFBITS).shdr_malloced = 0;
173 elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shdr.ELFW(e,LIBELFBITS)
174 = &elf->state.ELFW(elf,LIBELFBITS).shdr[cnt];
180 rwlock_unlock (elf->lock);