Lines Matching defs:sec
51 struct section *sec;
74 struct section *sec;
109 static inline u32 sec_offset_hash(struct section *sec, unsigned long offset)
111 u32 ol, oh, idx = sec->idx;
125 return sec_offset_hash(reloc->sec, reloc->offset);
131 int elf_add_reloc(struct elf *elf, struct section *sec, unsigned long offset,
133 int elf_add_reloc_to_insn(struct elf *elf, struct section *sec,
137 int elf_write_insn(struct elf *elf, struct section *sec,
145 struct symbol *find_func_by_offset(struct section *sec, unsigned long offset);
146 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset);
148 struct symbol *find_symbol_containing(const struct section *sec, unsigned long offset);
149 struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset);
150 struct reloc *find_reloc_by_dest_range(const struct elf *elf, struct section *sec,
152 struct symbol *find_func_containing(struct section *sec, unsigned long offset);
154 #define for_each_sec(file, sec) \
155 list_for_each_entry(sec, &file->elf->sections, list)