Lines Matching refs:elf
43 elf_getdata_rawchunk (Elf *elf, int64_t offset, size_t size, Elf_Type type)
45 if (unlikely (elf == NULL))
48 if (unlikely (elf->kind != ELF_K_ELF))
55 if (unlikely (offset < 0 || (uint64_t) offset > elf->maximum_size
56 || elf->maximum_size - (uint64_t) offset < size))
75 rwlock_rdlock (elf->lock);
78 Elf_Data_Chunk *rawchunks = elf->state.elf.rawchunks;
91 size_t align = __libelf_type_align (elf->class, type);
92 if (elf->map_address != NULL)
95 char *rawdata = elf->map_address + elf->start_offset + offset;
120 if (unlikely ((size_t) pread_retry (elf->fildes, rawchunk, size,
121 elf->start_offset + offset)
135 if (elf->state.elf32.ehdr->e_ident[EI_DATA] == MY_ELFDATA)
167 (*__elf_xfctstom[elf->class - 1][type])(buffer, rawchunk, size, 0);
179 chunk->dummy_scn.elf = elf;
189 rwlock_unlock (elf->lock);
190 rwlock_wrlock (elf->lock);
192 chunk->next = elf->state.elf.rawchunks;
193 elf->state.elf.rawchunks = chunk;
197 rwlock_unlock (elf->lock);