Lines Matching refs:elf
85 struct elf {
86 Elf *elf;
128 struct elf *elf_open_read(const char *name, int flags);
129 struct section *elf_create_section(struct elf *elf, const char *name, unsigned int sh_flags, size_t entsize, int nr);
131 int elf_add_reloc(struct elf *elf, struct section *sec, unsigned long offset,
133 int elf_add_reloc_to_insn(struct elf *elf, struct section *sec,
137 int elf_write_insn(struct elf *elf, struct section *sec,
140 int elf_write_reloc(struct elf *elf, struct reloc *reloc);
141 int elf_write(struct elf *elf);
142 void elf_close(struct elf *elf);
144 struct section *find_section_by_name(const struct elf *elf, const char *name);
147 struct symbol *find_symbol_by_name(const struct elf *elf, const char *name);
149 struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset);
150 struct reloc *find_reloc_by_dest_range(const struct elf *elf, struct section *sec,
155 list_for_each_entry(sec, &file->elf->sections, list)