Lines Matching full:section
24 struct section *find_section_by_name(struct elf *elf, const char *name) in find_section_by_name()
26 struct section *sec; in find_section_by_name()
35 static struct section *find_section_by_index(struct elf *elf, in find_section_by_index()
38 struct section *sec; in find_section_by_index()
49 struct section *sec; in find_symbol_by_index()
60 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset) in find_symbol_by_offset()
74 struct section *sec; in find_symbol_by_name()
85 struct symbol *find_symbol_containing(struct section *sec, unsigned long offset) in find_symbol_containing()
97 struct rela *find_rela_by_dest_range(struct section *sec, unsigned long offset, in find_rela_by_dest_range()
114 struct rela *find_rela_by_dest(struct section *sec, unsigned long offset) in find_rela_by_dest()
119 struct symbol *find_containing_func(struct section *sec, unsigned long offset) in find_containing_func()
134 struct section *sec; in read_sections()
200 WARN("section entry mismatch"); in read_sections()
209 struct section *symtab, *sec; in read_symbols()
254 WARN("couldn't find section for symbol %s", in read_symbols()
268 /* sorted insert into a per-section list */ in read_symbols()
352 struct section *sec; in read_relas()
363 WARN("can't find base section for rela section %s", in read_relas()
461 struct section *elf_create_section(struct elf *elf, const char *name, in elf_create_section()
464 struct section *sec, *shstrtab; in elf_create_section()
529 /* Add section name to .shstrtab (or .strtab for Clang) */ in elf_create_section()
534 WARN("can't find .shstrtab or .strtab section"); in elf_create_section()
562 struct section *elf_create_rela_section(struct elf *elf, struct section *base) in elf_create_rela_section()
565 struct section *sec; in elf_create_rela_section()
592 int elf_rebuild_rela_section(struct section *sec) in elf_rebuild_rela_section()
627 struct section *sec; in elf_write()
630 /* Update section headers for changed sections: */ in elf_write()
645 /* Make sure the new section header entries get updated properly. */ in elf_write()
659 struct section *sec, *tmpsec; in elf_close()