Lines Matching defs:elf
95 Elf *elf;
261 /* Older libelf.h and glibc elf.h might not yet define the ELF compression types. */
276 static int compressed_section_fix(Elf *elf, Elf_Scn *scn, GElf_Shdr *sh)
278 int expected = gelf_getclass(elf) == ELFCLASS32 ? 4 : 8;
304 Elf *elf;
316 elf = elf_begin(fd, ELF_C_RDWR_MMAP, NULL);
317 if (!elf) {
324 obj->efile.elf = elf;
326 elf_flagelf(elf, ELF_C_SET, ELF_F_LAYOUT);
328 if (elf_getshdrstrndx(elf, &shdrstrndx) != 0) {
334 * Scan all the elf sections and look for save data
337 while ((scn = elf_nextscn(elf, scn)) != NULL) {
348 name = elf_strptr(elf, shdrstrndx, sh.sh_name);
376 if (compressed_section_fix(elf, scn, &sh))
390 scn = elf_getscn(obj->efile.elf, obj->efile.symbols_shndx);
415 name = elf_strptr(obj->efile.elf, obj->efile.strtabidx,
657 err = elf_update(obj->efile.elf, ELF_C_WRITE);
731 if (obj.efile.elf)
732 elf_end(obj.efile.elf);