Home
last modified time | relevance | path

Searched refs:r_info (Results 1 – 25 of 37) sorted by relevance

12

/arch/riscv/include/uapi/asm/
Delf.h28 #define ELF_RISCV_R_SYM(r_info) ELF64_R_SYM(r_info) argument
29 #define ELF_RISCV_R_TYPE(r_info) ELF64_R_TYPE(r_info) argument
31 #define ELF_RISCV_R_SYM(r_info) ELF32_R_SYM(r_info) argument
32 #define ELF_RISCV_R_TYPE(r_info) ELF32_R_TYPE(r_info) argument
/arch/powerpc/kernel/
Dmodule_32.c27 unsigned int i, r_info, r_addend, _count_relocs; in count_relocs() local
30 r_info = 0; in count_relocs()
34 if (ELF32_R_TYPE(rela[i].r_info) == R_PPC_REL24 && in count_relocs()
35 (r_info != ELF32_R_SYM(rela[i].r_info) || in count_relocs()
38 r_info = ELF32_R_SYM(rela[i].r_info); in count_relocs()
59 if (x->r_info < y->r_info) in relacmp()
61 else if (x->r_info > y->r_info) in relacmp()
217 + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
221 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add()
279 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
Dmodule_64.c164 unsigned int i, r_info, r_addend, _count_relocs; in count_relocs() local
168 r_info = 0; in count_relocs()
172 if (ELF64_R_TYPE(rela[i].r_info) == r_type && in count_relocs()
173 (r_info != ELF64_R_SYM(rela[i].r_info) || in count_relocs()
176 r_info = ELF64_R_SYM(rela[i].r_info); in count_relocs()
194 if (x->r_info < y->r_info) in relacmp()
196 else if (x->r_info > y->r_info) in relacmp()
262 unsigned int i, r_info, r_addend, _count_relocs; in count_pcpu_relocs() local
265 r_info = 0; in count_pcpu_relocs()
273 + ELF64_R_SYM(rela[i].r_info); in count_pcpu_relocs()
[all …]
/arch/m68k/kernel/
Dmodule.c42 + ELF32_R_SYM(rel[i].r_info); in apply_relocate()
44 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate()
55 ELF32_R_TYPE(rel[i].r_info)); in apply_relocate()
82 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add()
84 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add()
95 ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
/arch/arm/kernel/
Dmodule.c132 offset = ELF32_R_SYM(rel->r_info); in apply_relocate()
151 switch (ELF32_R_TYPE(rel->r_info)) { in apply_relocate()
193 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate()
220 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate()
241 if (ELF32_R_TYPE(rel->r_info) == R_ARM_MOVT_PREL || in apply_relocate()
242 ELF32_R_TYPE(rel->r_info) == R_ARM_MOVW_PREL_NC) in apply_relocate()
244 if (ELF32_R_TYPE(rel->r_info) == R_ARM_MOVT_ABS || in apply_relocate()
245 ELF32_R_TYPE(rel->r_info) == R_ARM_MOVT_PREL) in apply_relocate()
297 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate()
364 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate()
[all …]
Dmodule-plts.c105 i = cmp_3way(ELF32_R_TYPE(x->r_info), ELF32_R_TYPE(y->r_info)); in cmp_rel()
107 i = cmp_3way(ELF32_R_SYM(x->r_info), ELF32_R_SYM(y->r_info)); in cmp_rel()
121 switch (ELF32_R_TYPE(rel->r_info)) { in is_zero_addend_relocation()
165 switch (ELF32_R_TYPE(rel[i].r_info)) { in count_plts()
182 s = syms + ELF32_R_SYM(rel[i].r_info); in count_plts()
/arch/xtensa/kernel/
Dmodule.c66 + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
69 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add()
158 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
178 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
184 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
/arch/nios2/kernel/
Dmodule.c63 + ELF32_R_SYM(rela[i].r_info)); in apply_relocate_add()
67 ELF32_R_TYPE(rela[i].r_info), in apply_relocate_add()
70 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add()
124 mod->name, ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
/arch/x86/kernel/
Dmodule.c111 + ELF32_R_SYM(rel[i].r_info); in apply_relocate()
113 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate()
125 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate()
160 + ELF64_R_SYM(rel[i].r_info); in __write_relocate_add()
163 (int)ELF64_R_TYPE(rel[i].r_info), in __write_relocate_add()
168 switch (ELF64_R_TYPE(rel[i].r_info)) { in __write_relocate_add()
195 me->name, ELF64_R_TYPE(rel[i].r_info)); in __write_relocate_add()
202 (int)ELF64_R_TYPE(rel[i].r_info), loc, val); in __write_relocate_add()
209 (int)ELF64_R_TYPE(rel[i].r_info), loc, val); in __write_relocate_add()
219 (int)ELF64_R_TYPE(rel[i].r_info), val); in __write_relocate_add()
/arch/openrisc/kernel/
Dmodule.c38 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add()
41 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add()
60 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
/arch/microblaze/kernel/
Dmodule.c36 ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
39 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add()
84 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
/arch/hexagon/kernel/
Dmodule.c87 sym = sym_base + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
96 i, value, location, ELF32_R_TYPE(rela[i].r_info), in apply_relocate_add()
100 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add()
144 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
/arch/arm64/kernel/
Dmodule-plts.c139 i = cmp_3way(ELF64_R_TYPE(x->r_info), ELF64_R_TYPE(y->r_info)); in cmp_rela()
141 i = cmp_3way(ELF64_R_SYM(x->r_info), ELF64_R_SYM(y->r_info)); in cmp_rela()
167 switch (ELF64_R_TYPE(rela[i].r_info)) { in count_plts()
181 s = syms + ELF64_R_SYM(rela[i].r_info); in count_plts()
254 Elf64_Sym *s = syms + ELF64_R_SYM(rela->r_info); in branch_rela_needs_plt()
259 return ELF64_R_TYPE(rela->r_info) == R_AARCH64_JUMP26 || in branch_rela_needs_plt()
260 ELF64_R_TYPE(rela->r_info) == R_AARCH64_CALL26; in branch_rela_needs_plt()
/arch/sh/kernel/
Dmodule.c46 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add()
49 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add()
83 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
/arch/csky/kernel/
Dmodule.c63 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add()
65 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add()
92 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
/arch/sparc/kernel/
Dmodule.c110 + ELF_R_SYM(rel[i].r_info); in apply_relocate_add()
113 switch (ELF_R_TYPE(rel[i].r_info) & 0xff) { in apply_relocate_add()
139 (ELF_R_TYPE(rel[i].r_info) >> 8)) in apply_relocate_add()
176 (int) (ELF_R_TYPE(rel[i].r_info) & 0xff)); in apply_relocate_add()
/arch/arc/kernel/
Dmodule.c81 sym_entry = sym_sec + ELF32_R_SYM(rel_entry[i].r_info); in apply_relocate_add()
100 relo_type = ELF32_R_TYPE(rel_entry[i].r_info); in apply_relocate_add()
122 module->name, ELF32_R_TYPE(rel_entry[i].r_info)); in apply_relocate_add()
/arch/alpha/kernel/
Dmodule.c32 unsigned long r_sym = ELF64_R_SYM (rela->r_info); in process_reloc_for_got()
33 unsigned long r_type = ELF64_R_TYPE (rela->r_info); in process_reloc_for_got()
60 rela->r_info |= g->got_offset << 8; in process_reloc_for_got()
153 unsigned long r_sym = ELF64_R_SYM (rela[i].r_info); in apply_relocate_add()
154 unsigned long r_type = ELF64_R_TYPE (rela[i].r_info); in apply_relocate_add()
/arch/mips/include/asm/
Dmodule.h51 #define ELF_MIPS_R_SYM(rel) ELF32_R_SYM((rel).r_info)
52 #define ELF_MIPS_R_TYPE(rel) ELF32_R_TYPE((rel).r_info)
/arch/parisc/kernel/
Dmodule.c204 switch (ELF32_R_TYPE(rela->r_info)) { in count_stubs()
220 switch (ELF64_R_TYPE(rela->r_info)) { in count_gots()
237 switch (ELF64_R_TYPE(rela->r_info)) { in count_fdescs()
252 switch (ELF64_R_TYPE(rela->r_info)) { in count_stubs()
529 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add()
542 #define r(t) ELF32_R_TYPE(rel[i].r_info)==t ? #t : in apply_relocate_add()
559 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add()
637 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
673 + ELF64_R_SYM(rel[i].r_info); in apply_relocate_add()
687 #define r(t) ELF64_R_TYPE(rel[i].r_info)==t ? #t : in apply_relocate_add()
[all …]
/arch/mips/boot/tools/
Drelocs.c392 rel->r_info = elf_xword_to_cpu(rel->r_info); in read_relocs()
397 rel->r_info = rel->r_info; in read_relocs()
398 ELF_R_SYM(rel->r_info) = elf32_to_cpu(ELF_R_SYM(rel->r_info)); in read_relocs()
492 Elf_Sym *sym = &sh_symtab[ELF_R_SYM(rel->r_info)]; in walk_relocs()
503 unsigned r_type = ELF_R_TYPE(rel->r_info); in do_reloc()
642 rel_type(ELF_R_TYPE(rel->r_info)), in do_reloc_info()
/arch/riscv/kernel/
Dmodule-sections.c60 return x->r_info == y->r_info && x->r_addend == y->r_addend; in is_rela_equal()
79 type = ELF_RISCV_R_TYPE(relas[i].r_info); in count_max_entries()
Dmodule.c371 + ELF_RISCV_R_SYM(rel[i].r_info); in apply_relocate_add()
381 type = ELF_RISCV_R_TYPE(rel[i].r_info); in apply_relocate_add()
403 u32 hi20_type = ELF_RISCV_R_TYPE(rel[j].r_info); in apply_relocate_add()
412 + ELF_RISCV_R_SYM(rel[j].r_info); in apply_relocate_add()
/arch/loongarch/kernel/
Dmodule-sections.c66 return x->r_info == y->r_info && x->r_addend == y->r_addend; in is_rela_equal()
87 type = ELF_R_TYPE(relas[i].r_info); in count_max_entries()
/arch/x86/tools/
Drelocs.c583 rel->r_info = elf_xword_to_cpu(rel->r_info); in read_relocs()
671 sym = &sh_symtab[ELF_R_SYM(rel->r_info)]; in print_absolute_relocs()
703 rel->r_info, in print_absolute_relocs()
704 rel_type(ELF_R_TYPE(rel->r_info)), in print_absolute_relocs()
762 Elf_Sym *sym = &sh_symtab[ELF_R_SYM(rel->r_info)]; in walk_relocs()
848 unsigned r_type = ELF64_R_TYPE(rel->r_info); in do_reloc64()
938 unsigned r_type = ELF32_R_TYPE(rel->r_info); in do_reloc32()
983 unsigned r_type = ELF32_R_TYPE(rel->r_info); in do_reloc_real()
1169 rel_type(ELF_R_TYPE(rel->r_info)), in do_reloc_info()

12