Lines Matching refs:section
132 struct section *find_section_by_name(const struct elf *elf, const char *name) in find_section_by_name()
134 struct section *sec; in find_section_by_name()
144 static struct section *find_section_by_index(struct elf *elf, in find_section_by_index()
147 struct section *sec; in find_section_by_index()
149 elf_hash_for_each_possible(section, sec, hash, idx) { in find_section_by_index()
169 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset) in find_symbol_by_offset()
182 struct symbol *find_func_by_offset(struct section *sec, unsigned long offset) in find_func_by_offset()
195 struct symbol *find_symbol_containing(const struct section *sec, unsigned long offset) in find_symbol_containing()
211 int find_symbol_hole_containing(const struct section *sec, unsigned long offset) in find_symbol_hole_containing()
243 struct symbol *find_func_containing(struct section *sec, unsigned long offset) in find_func_containing()
268 struct reloc *find_reloc_by_dest_range(const struct elf *elf, struct section *sec, in find_reloc_by_dest_range()
272 struct section *rsec; in find_reloc_by_dest_range()
298 struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset) in find_reloc_by_dest()
303 static bool is_dwarf_section(struct section *sec) in is_dwarf_section()
311 struct section *sec; in read_sections()
325 if (!elf_alloc_hash(section, sections_nr) || in read_sections()
373 elf_hash_add(section, &sec->hash, sec->idx); in read_sections()
437 struct section *symtab, *symtab_shndx, *sec; in read_symbols()
597 static int elf_update_symbol(struct elf *elf, struct section *symtab, in elf_update_symbol()
598 struct section *symtab_shndx, struct symbol *sym) in elf_update_symbol()
730 struct section *symtab, *symtab_shndx; in __elf_create_symbol()
794 elf_create_section_symbol(struct elf *elf, struct section *sec) in elf_create_section_symbol()
819 static int elf_add_string(struct elf *elf, struct section *strtab, char *str);
850 static struct reloc *elf_init_reloc(struct elf *elf, struct section *rsec, in elf_init_reloc()
886 struct reloc *elf_init_reloc_text_sym(struct elf *elf, struct section *sec, in elf_init_reloc_text_sym()
889 struct section *insn_sec, in elf_init_reloc_text_sym()
919 struct reloc *elf_init_reloc_data_sym(struct elf *elf, struct section *sec, in elf_init_reloc_data_sym()
938 struct section *rsec; in read_relocs()
1053 static int elf_add_string(struct elf *elf, struct section *strtab, char *str) in elf_add_string()
1090 struct section *elf_create_section(struct elf *elf, const char *name, in elf_create_section()
1093 struct section *sec, *shstrtab; in elf_create_section()
1162 elf_hash_add(section, &sec->hash, sec->idx); in elf_create_section()
1170 static struct section *elf_create_rela_section(struct elf *elf, in elf_create_rela_section()
1171 struct section *sec, in elf_create_rela_section()
1174 struct section *rsec; in elf_create_rela_section()
1209 struct section *elf_create_section_pair(struct elf *elf, const char *name, in elf_create_section_pair()
1213 struct section *sec; in elf_create_section_pair()
1225 int elf_write_insn(struct elf *elf, struct section *sec, in elf_write_insn()
1252 static int elf_truncate_section(struct elf *elf, struct section *sec) in elf_truncate_section()
1299 struct section *sec; in elf_write()