Lines Matching defs:reloc
90 s64 arch_insn_adjusted_addend(struct instruction *insn, struct reloc *reloc)
92 s64 addend = reloc_addend(reloc);
94 if (arch_pc_relative_reloc(reloc))
95 addend += insn->offset + insn->len - reloc_offset(reloc);
121 u64 arch_adjusted_addend(struct reloc *reloc)
123 unsigned int type = reloc_type(reloc);
124 s64 addend = reloc_addend(reloc);
131 if (type != R_X86_64_PC32 || !is_text_sec(reloc->sec->base))
134 scan_for_insn(reloc->sec->base, reloc_offset(reloc),
137 return addend + insn_off + insn_len - reloc_offset(reloc);
145 bool arch_pc_relative_reloc(struct reloc *reloc)
151 switch (reloc_type(reloc)) {
707 struct reloc *immr, *disp;
937 unsigned int arch_reloc_size(struct reloc *reloc)
939 switch (reloc_type(reloc)) {
950 bool arch_absolute_reloc(struct elf *elf, struct reloc *reloc)
952 switch (reloc_type(reloc)) {