Lines Matching refs:section

111 struct section *find_section_by_name(const struct elf *elf, const char *name)  in find_section_by_name()
113 struct section *sec; in find_section_by_name()
123 static struct section *find_section_by_index(struct elf *elf, in find_section_by_index()
126 struct section *sec; in find_section_by_index()
128 elf_hash_for_each_possible(section, sec, hash, idx) { in find_section_by_index()
148 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset) in find_symbol_by_offset()
162 struct symbol *find_func_by_offset(struct section *sec, unsigned long offset) in find_func_by_offset()
176 struct symbol *find_symbol_containing(const struct section *sec, unsigned long offset) in find_symbol_containing()
193 int find_symbol_hole_containing(const struct section *sec, unsigned long offset) in find_symbol_hole_containing()
225 struct symbol *find_func_containing(struct section *sec, unsigned long offset) in find_func_containing()
251 struct reloc *find_reloc_by_dest_range(const struct elf *elf, struct section *sec, in find_reloc_by_dest_range()
280 struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset) in find_reloc_by_dest()
288 struct section *sec; in read_sections()
302 if (!elf_alloc_hash(section, sections_nr) || in read_sections()
354 elf_hash_add(section, &sec->hash, sec->idx); in read_sections()
409 struct section *symtab, *symtab_shndx, *sec; in read_symbols()
548 static struct section *elf_create_reloc_section(struct elf *elf,
549 struct section *base,
552 int elf_add_reloc(struct elf *elf, struct section *sec, unsigned long offset, in elf_add_reloc()
589 struct section *sec; in elf_dirty_reloc_sym()
614 static int elf_update_symbol(struct elf *elf, struct section *symtab, in elf_update_symbol()
615 struct section *symtab_shndx, struct symbol *sym) in elf_update_symbol()
733 elf_create_section_symbol(struct elf *elf, struct section *sec) in elf_create_section_symbol()
735 struct section *symtab, *symtab_shndx; in elf_create_section_symbol()
801 int elf_add_reloc_to_insn(struct elf *elf, struct section *sec, in elf_add_reloc_to_insn()
803 struct section *insn_sec, unsigned long insn_off) in elf_add_reloc_to_insn()
825 static int read_rel_reloc(struct section *sec, int i, struct reloc *reloc, unsigned int *symndx) in read_rel_reloc()
838 static int read_rela_reloc(struct section *sec, int i, struct reloc *reloc, unsigned int *symndx) in read_rela_reloc()
853 struct section *sec; in read_relocs()
980 static int elf_add_string(struct elf *elf, struct section *strtab, char *str) in elf_add_string()
1016 struct section *elf_create_section(struct elf *elf, const char *name, in elf_create_section()
1019 struct section *sec, *shstrtab; in elf_create_section()
1090 elf_hash_add(section, &sec->hash, sec->idx); in elf_create_section()
1098 static struct section *elf_create_rel_reloc_section(struct elf *elf, struct section *base) in elf_create_rel_reloc_section()
1101 struct section *sec; in elf_create_rel_reloc_section()
1128 static struct section *elf_create_rela_reloc_section(struct elf *elf, struct section *base) in elf_create_rela_reloc_section()
1131 struct section *sec; in elf_create_rela_reloc_section()
1158 static struct section *elf_create_reloc_section(struct elf *elf, in elf_create_reloc_section()
1159 struct section *base, in elf_create_reloc_section()
1169 static int elf_rebuild_rel_reloc_section(struct section *sec) in elf_rebuild_rel_reloc_section()
1200 static int elf_rebuild_rela_reloc_section(struct section *sec) in elf_rebuild_rela_reloc_section()
1232 static int elf_rebuild_reloc_section(struct elf *elf, struct section *sec) in elf_rebuild_reloc_section()
1241 int elf_write_insn(struct elf *elf, struct section *sec, in elf_write_insn()
1262 struct section *sec = reloc->sec; in elf_write_reloc()
1290 struct section *sec; in elf_write()
1336 struct section *sec, *tmpsec; in elf_close()