Lines Matching refs:section
130 struct section *find_section_by_name(const struct elf *elf, const char *name) in find_section_by_name()
132 struct section *sec; in find_section_by_name()
141 static struct section *find_section_by_index(struct elf *elf, in find_section_by_index()
144 struct section *sec; in find_section_by_index()
164 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset) in find_symbol_by_offset()
178 struct symbol *find_func_by_offset(struct section *sec, unsigned long offset) in find_func_by_offset()
192 struct symbol *find_symbol_containing(const struct section *sec, unsigned long offset) in find_symbol_containing()
206 struct symbol *find_func_containing(struct section *sec, unsigned long offset) in find_func_containing()
231 struct reloc *find_reloc_by_dest_range(const struct elf *elf, struct section *sec, in find_reloc_by_dest_range()
260 struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset) in find_reloc_by_dest()
268 struct section *sec; in read_sections()
346 struct section *symtab, *symtab_shndx, *sec; in read_symbols()
493 struct section *sec = reloc->sec; in elf_add_reloc()
499 static int read_rel_reloc(struct section *sec, int i, struct reloc *reloc, unsigned int *symndx) in read_rel_reloc()
512 static int read_rela_reloc(struct section *sec, int i, struct reloc *reloc, unsigned int *symndx) in read_rela_reloc()
527 struct section *sec; in read_relocs()
654 struct section *elf_create_section(struct elf *elf, const char *name, in elf_create_section()
657 struct section *sec, *shstrtab; in elf_create_section()
757 static struct section *elf_create_rel_reloc_section(struct elf *elf, struct section *base) in elf_create_rel_reloc_section()
760 struct section *sec; in elf_create_rel_reloc_section()
787 static struct section *elf_create_rela_reloc_section(struct elf *elf, struct section *base) in elf_create_rela_reloc_section()
790 struct section *sec; in elf_create_rela_reloc_section()
817 struct section *elf_create_reloc_section(struct elf *elf, in elf_create_reloc_section()
818 struct section *base, in elf_create_reloc_section()
828 static int elf_rebuild_rel_reloc_section(struct section *sec, int nr) in elf_rebuild_rel_reloc_section()
857 static int elf_rebuild_rela_reloc_section(struct section *sec, int nr) in elf_rebuild_rela_reloc_section()
887 int elf_rebuild_reloc_section(struct elf *elf, struct section *sec) in elf_rebuild_reloc_section()
906 int elf_write_insn(struct elf *elf, struct section *sec, in elf_write_insn()
927 struct section *sec = reloc->sec; in elf_write_reloc()
955 struct section *sec; in elf_write()
991 struct section *sec, *tmpsec; in elf_close()