Lines Matching refs:elf

52   Elf *elf = scn->elf;
53 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
61 if (__elf_getshdrnum_rdlock (elf, &shnum) != 0
68 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr =
70 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL)
75 elf->state.ELFW(elf,LIBELFBITS).shdr_malloced = 1;
77 if (elf->map_address != NULL)
81 if (unlikely (ehdr->e_shoff >= elf->maximum_size)
82 || unlikely (elf->maximum_size - ehdr->e_shoff < size))
95 void *file_shdr = ((char *) elf->map_address
96 + elf->start_offset + ehdr->e_shoff);
98 assert ((elf->flags & ELF_F_MALLOCED)
100 || elf->cmd == ELF_C_READ_MMAP
108 assert ((elf->flags & ELF_F_MALLOCED)
109 || elf->cmd == ELF_C_READ_MMAP
121 ((char *) elf->map_address
122 + elf->start_offset + ehdr->e_shoff);
131 memcpy (notcvt, ((char *) elf->map_address
132 + elf->start_offset + ehdr->e_shoff),
155 elf->state.ELFW(elf,LIBELFBITS).scns.data[shdr[cnt].sh_link].shndx_index
160 if (elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index == 0)
161 elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index
169 else if (likely (elf->fildes != -1))
172 ssize_t n = pread_retry (elf->fildes,
173 elf->state.ELFW(elf,LIBELFBITS).shdr, size,
174 elf->start_offset + ehdr->e_shoff);
207 elf->state.ELFW(elf,LIBELFBITS).shdr = NULL;
208 elf->state.ELFW(elf,LIBELFBITS).shdr_malloced = 0;
215 elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shdr.ELFW(e,LIBELFBITS)
216 = &elf->state.ELFW(elf,LIBELFBITS).shdr[cnt];
231 if (unlikely (scn->elf->state.elf.ehdr == NULL))
237 if (unlikely (scn->elf->class != ELFW(ELFCLASS,LIBELFBITS)))
258 rwlock_unlock (scn->elf->lock);
259 rwlock_wrlock (scn->elf->lock);
292 rwlock_rdlock (scn->elf->lock);
294 rwlock_unlock (scn->elf->lock);