Lines Matching +full:- +full:section
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
28 struct section { struct
36 struct section *base, *reloc; argument
51 struct section *sec; argument
69 struct section *sec;
96 #define OFFSET_STRIDE_MASK (~(OFFSET_STRIDE - 1))
104 static inline u32 sec_offset_hash(struct section *sec, unsigned long offset) in sec_offset_hash()
106 u32 ol, oh, idx = sec->idx; in sec_offset_hash()
120 return sec_offset_hash(reloc->sec, reloc->offset); in reloc_hash()
124 struct section *elf_create_section(struct elf *elf, const char *name, unsigned int sh_flags, size_t…
125 struct section *elf_create_reloc_section(struct elf *elf, struct section *base, int reltype);
127 int elf_write_insn(struct elf *elf, struct section *sec,
134 struct section *find_section_by_name(const struct elf *elf, const char *name);
135 struct symbol *find_func_by_offset(struct section *sec, unsigned long offset);
136 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset);
138 struct symbol *find_symbol_containing(const struct section *sec, unsigned long offset);
139 struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset);
140 struct reloc *find_reloc_by_dest_range(const struct elf *elf, struct section *sec,
142 struct symbol *find_func_containing(struct section *sec, unsigned long offset);
143 int elf_rebuild_reloc_section(struct elf *elf, struct section *sec);
146 list_for_each_entry(sec, &file->elf->sections, list)