Lines Matching refs:elf
95 Elf *elf; member
271 static int compressed_section_fix(Elf *elf, Elf_Scn *scn, GElf_Shdr *sh) in compressed_section_fix() argument
273 int expected = gelf_getclass(elf) == ELFCLASS32 ? 4 : 8; in compressed_section_fix()
299 Elf *elf; in elf_collect() local
311 elf = elf_begin(fd, ELF_C_RDWR_MMAP, NULL); in elf_collect()
312 if (!elf) { in elf_collect()
319 obj->efile.elf = elf; in elf_collect()
321 elf_flagelf(elf, ELF_C_SET, ELF_F_LAYOUT); in elf_collect()
323 if (elf_getshdrstrndx(elf, &shdrstrndx) != 0) { in elf_collect()
332 while ((scn = elf_nextscn(elf, scn)) != NULL) { in elf_collect()
343 name = elf_strptr(elf, shdrstrndx, sh.sh_name); in elf_collect()
371 if (compressed_section_fix(elf, scn, &sh)) in elf_collect()
385 scn = elf_getscn(obj->efile.elf, obj->efile.symbols_shndx); in symbols_collect()
410 name = elf_strptr(obj->efile.elf, obj->efile.strtabidx, in symbols_collect()
649 err = elf_update(obj->efile.elf, ELF_C_WRITE); in symbols_patch()
723 if (obj.efile.elf) in main()
724 elf_end(obj.efile.elf); in main()