Lines Matching refs:section
86 struct section *find_section_by_name(const struct elf *elf, const char *name) in find_section_by_name()
88 struct section *sec; in find_section_by_name()
98 static struct section *find_section_by_index(struct elf *elf, in find_section_by_index()
101 struct section *sec; in find_section_by_index()
103 elf_hash_for_each_possible(section, sec, hash, idx) { in find_section_by_index()
123 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset) in find_symbol_by_offset()
137 struct symbol *find_func_by_offset(struct section *sec, unsigned long offset) in find_func_by_offset()
151 struct symbol *find_symbol_containing(const struct section *sec, unsigned long offset) in find_symbol_containing()
165 struct symbol *find_func_containing(struct section *sec, unsigned long offset) in find_func_containing()
191 struct reloc *find_reloc_by_dest_range(const struct elf *elf, struct section *sec, in find_reloc_by_dest_range()
220 struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset) in find_reloc_by_dest()
228 struct section *sec; in read_sections()
242 if (!elf_alloc_hash(section, sections_nr) || in read_sections()
294 elf_hash_add(section, &sec->hash, sec->idx); in read_sections()
343 struct section *symtab, *symtab_shndx, *sec; in read_symbols()
484 static struct section *elf_create_reloc_section(struct elf *elf,
485 struct section *base,
488 int elf_add_reloc(struct elf *elf, struct section *sec, unsigned long offset, in elf_add_reloc()
518 int elf_add_reloc_to_insn(struct elf *elf, struct section *sec, in elf_add_reloc_to_insn()
520 struct section *insn_sec, unsigned long insn_off) in elf_add_reloc_to_insn()
554 static int read_rel_reloc(struct section *sec, int i, struct reloc *reloc, unsigned int *symndx) in read_rel_reloc()
567 static int read_rela_reloc(struct section *sec, int i, struct reloc *reloc, unsigned int *symndx) in read_rela_reloc()
582 struct section *sec; in read_relocs()
709 static int elf_add_string(struct elf *elf, struct section *strtab, char *str) in elf_add_string()
745 struct section *elf_create_section(struct elf *elf, const char *name, in elf_create_section()
748 struct section *sec, *shstrtab; in elf_create_section()
819 elf_hash_add(section, &sec->hash, sec->idx); in elf_create_section()
827 static struct section *elf_create_rel_reloc_section(struct elf *elf, struct section *base) in elf_create_rel_reloc_section()
830 struct section *sec; in elf_create_rel_reloc_section()
857 static struct section *elf_create_rela_reloc_section(struct elf *elf, struct section *base) in elf_create_rela_reloc_section()
860 struct section *sec; in elf_create_rela_reloc_section()
887 static struct section *elf_create_reloc_section(struct elf *elf, in elf_create_reloc_section()
888 struct section *base, in elf_create_reloc_section()
898 static int elf_rebuild_rel_reloc_section(struct section *sec) in elf_rebuild_rel_reloc_section()
929 static int elf_rebuild_rela_reloc_section(struct section *sec) in elf_rebuild_rela_reloc_section()
961 static int elf_rebuild_reloc_section(struct elf *elf, struct section *sec) in elf_rebuild_reloc_section()
970 int elf_write_insn(struct elf *elf, struct section *sec, in elf_write_insn()
991 struct section *sec = reloc->sec; in elf_write_reloc()
1019 struct section *sec; in elf_write()
1062 struct section *sec, *tmpsec; in elf_close()