Lines Matching refs:section

133 struct section *find_section_by_name(const struct elf *elf, const char *name)  in find_section_by_name()
135 struct section *sec; in find_section_by_name()
145 static struct section *find_section_by_index(struct elf *elf, in find_section_by_index()
148 struct section *sec; in find_section_by_index()
150 elf_hash_for_each_possible(section, sec, hash, idx) { in find_section_by_index()
170 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset) in find_symbol_by_offset()
183 struct symbol *find_func_by_offset(struct section *sec, unsigned long offset) in find_func_by_offset()
196 struct symbol *find_symbol_containing(const struct section *sec, unsigned long offset) in find_symbol_containing()
227 int find_symbol_hole_containing(const struct section *sec, unsigned long offset) in find_symbol_hole_containing()
264 struct symbol *find_func_containing(struct section *sec, unsigned long offset) in find_func_containing()
318 struct reloc *find_reloc_by_dest_range(const struct elf *elf, struct section *sec, in find_reloc_by_dest_range()
322 struct section *rsec; in find_reloc_by_dest_range()
348 struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset) in find_reloc_by_dest()
353 static bool is_dwarf_section(struct section *sec) in is_dwarf_section()
361 struct section *sec; in read_sections()
375 if (!elf_alloc_hash(section, sections_nr) || in read_sections()
422 elf_hash_add(section, &sec->hash, sec->idx); in read_sections()
541 struct section *symtab, *symtab_shndx, *sec; in read_symbols()
684 struct section *symtab, *sec; in mark_group_syms()
731 static int elf_update_symbol(struct elf *elf, struct section *symtab, in elf_update_symbol()
732 struct section *symtab_shndx, struct symbol *sym) in elf_update_symbol()
861 struct section *sec, unsigned int bind, in elf_create_symbol()
865 struct section *symtab, *symtab_shndx; in elf_create_symbol()
966 struct symbol *elf_create_section_symbol(struct elf *elf, struct section *sec) in elf_create_section_symbol()
979 struct reloc *elf_init_reloc(struct elf *elf, struct section *rsec, in elf_init_reloc()
1014 struct reloc *elf_init_reloc_text_sym(struct elf *elf, struct section *sec, in elf_init_reloc_text_sym()
1017 struct section *insn_sec, in elf_init_reloc_text_sym()
1044 struct reloc *elf_init_reloc_data_sym(struct elf *elf, struct section *sec, in elf_init_reloc_data_sym()
1062 struct section *rsec; in read_relocs()
1190 struct section *null, *symtab, *strtab, *shstrtab; in elf_create_file()
1247 if (!elf_alloc_hash(section, 1000) || in elf_create_file()
1305 unsigned int elf_add_string(struct elf *elf, struct section *strtab, const char *str) in elf_add_string()
1329 void *elf_add_data(struct elf *elf, struct section *sec, const void *data, size_t size) in elf_add_data()
1371 struct section *elf_create_section(struct elf *elf, const char *name, in elf_create_section()
1376 struct section *sec, *shstrtab; in elf_create_section()
1457 elf_hash_add(section, &sec->hash, sec->idx); in elf_create_section()
1464 static int elf_alloc_reloc(struct elf *elf, struct section *rsec) in elf_alloc_reloc()
1572 struct section *elf_create_rela_section(struct elf *elf, struct section *sec, in elf_create_rela_section()
1575 struct section *rsec; in elf_create_rela_section()
1613 struct reloc *elf_create_reloc(struct elf *elf, struct section *sec, in elf_create_reloc()
1618 struct section *rsec = sec->rsec; in elf_create_reloc()
1640 struct section *elf_create_section_pair(struct elf *elf, const char *name, in elf_create_section_pair()
1644 struct section *sec; in elf_create_section_pair()
1657 int elf_write_insn(struct elf *elf, struct section *sec, in elf_write_insn()
1684 static int elf_truncate_section(struct elf *elf, struct section *sec) in elf_truncate_section()
1730 struct section *sec; in elf_write()