Home
last modified time | relevance | path

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

12

/linux/arch/riscv/include/uapi/asm/
A 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
/linux/arch/powerpc/kernel/
A Dmodule_32.c26 unsigned int i, r_info, r_addend, _count_relocs; in count_relocs() local
29 r_info = 0; in count_relocs()
33 if (ELF32_R_TYPE(rela[i].r_info) == R_PPC_REL24 && in count_relocs()
34 (r_info != ELF32_R_SYM(rela[i].r_info) || in count_relocs()
37 r_info = ELF32_R_SYM(rela[i].r_info); in count_relocs()
58 if (x->r_info < y->r_info) in relacmp()
60 else if (x->r_info > y->r_info) in relacmp()
207 + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
211 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add()
267 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
A Dmodule_64.c144 unsigned int i, r_info, r_addend, _count_relocs; in count_relocs() local
148 r_info = 0; in count_relocs()
152 if (ELF64_R_TYPE(rela[i].r_info) == R_PPC_REL24 && in count_relocs()
153 (r_info != ELF64_R_SYM(rela[i].r_info) || in count_relocs()
156 r_info = ELF64_R_SYM(rela[i].r_info); in count_relocs()
174 if (x->r_info < y->r_info) in relacmp()
176 else if (x->r_info > y->r_info) in relacmp()
557 + ELF64_R_SYM(rela[i].r_info); in apply_relocate_add()
560 location, (long)ELF64_R_TYPE(rela[i].r_info), in apply_relocate_add()
567 switch (ELF64_R_TYPE(rela[i].r_info)) { in apply_relocate_add()
[all …]
/linux/arch/arm/kernel/
A Dmodule.c91 offset = ELF32_R_SYM(rel->r_info); in apply_relocate()
110 switch (ELF32_R_TYPE(rel->r_info)) { in apply_relocate()
153 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate()
180 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate()
201 if (ELF32_R_TYPE(rel->r_info) == R_ARM_MOVT_PREL || in apply_relocate()
202 ELF32_R_TYPE(rel->r_info) == R_ARM_MOVW_PREL_NC) in apply_relocate()
204 if (ELF32_R_TYPE(rel->r_info) == R_ARM_MOVT_ABS || in apply_relocate()
205 ELF32_R_TYPE(rel->r_info) == R_ARM_MOVT_PREL) in apply_relocate()
276 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate()
321 ELF32_R_TYPE(rel->r_info) == R_ARM_THM_MOVT_PREL) in apply_relocate()
[all …]
A Dmodule-plts.c110 i = cmp_3way(ELF32_R_TYPE(x->r_info), ELF32_R_TYPE(y->r_info)); in cmp_rel()
112 i = cmp_3way(ELF32_R_SYM(x->r_info), ELF32_R_SYM(y->r_info)); in cmp_rel()
126 switch (ELF32_R_TYPE(rel->r_info)) { in is_zero_addend_relocation()
170 switch (ELF32_R_TYPE(rel[i].r_info)) { in count_plts()
187 s = syms + ELF32_R_SYM(rel[i].r_info); in count_plts()
/linux/arch/x86/kernel/
A Dmodule.c109 + ELF32_R_SYM(rel[i].r_info); in apply_relocate()
111 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate()
123 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate()
153 + ELF64_R_SYM(rel[i].r_info); in __apply_relocate_add()
156 (int)ELF64_R_TYPE(rel[i].r_info), in __apply_relocate_add()
161 switch (ELF64_R_TYPE(rel[i].r_info)) { in __apply_relocate_add()
202 me->name, ELF64_R_TYPE(rel[i].r_info)); in __apply_relocate_add()
210 (int)ELF64_R_TYPE(rel[i].r_info), loc, val); in __apply_relocate_add()
215 (int)ELF64_R_TYPE(rel[i].r_info), val); in __apply_relocate_add()
/linux/arch/m68k/kernel/
A 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()
/linux/arch/xtensa/kernel/
A 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()
/linux/arch/arm64/kernel/
A Dmodule-plts.c142 i = cmp_3way(ELF64_R_TYPE(x->r_info), ELF64_R_TYPE(y->r_info)); in cmp_rela()
144 i = cmp_3way(ELF64_R_SYM(x->r_info), ELF64_R_SYM(y->r_info)); in cmp_rela()
170 switch (ELF64_R_TYPE(rela[i].r_info)) { in count_plts()
187 s = syms + ELF64_R_SYM(rela[i].r_info); in count_plts()
260 Elf64_Sym *s = syms + ELF64_R_SYM(rela->r_info); in branch_rela_needs_plt()
265 return ELF64_R_TYPE(rela->r_info) == R_AARCH64_JUMP26 || in branch_rela_needs_plt()
266 ELF64_R_TYPE(rela->r_info) == R_AARCH64_CALL26; in branch_rela_needs_plt()
/linux/arch/h8300/kernel/
A Dmodule.c28 + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
31 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add()
37 if (ELF32_R_SYM(rela[i].r_info)) in apply_relocate_add()
62 me->name, ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
/linux/arch/nios2/kernel/
A 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()
/linux/arch/hexagon/kernel/
A 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()
/linux/arch/openrisc/kernel/
A 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()
/linux/arch/microblaze/kernel/
A 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()
/linux/arch/nds32/kernel/
A Dmodule.c98 module->name, ELF32_R_TYPE(rel->r_info)); in exceed_limit()
129 offset = ELF32_R_SYM(rel->r_info); in apply_relocate_add()
150 switch (ELF32_R_TYPE(rel->r_info)) { in apply_relocate_add()
251 module->name, ELF32_R_TYPE(rel->r_info)); in apply_relocate_add()
261 module->name, ELF32_R_TYPE(rel->r_info)); in apply_relocate_add()
/linux/arch/sh/kernel/
A 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()
/linux/arch/csky/kernel/
A 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()
/linux/arch/parisc/kernel/
A Dmodule.c223 switch (ELF32_R_TYPE(rela->r_info)) { in count_stubs()
239 switch (ELF64_R_TYPE(rela->r_info)) { in count_gots()
256 switch (ELF64_R_TYPE(rela->r_info)) { in count_fdescs()
271 switch (ELF64_R_TYPE(rela->r_info)) { in count_stubs()
546 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add()
559 #define r(t) ELF32_R_TYPE(rel[i].r_info)==t ? #t : in apply_relocate_add()
576 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add()
654 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
690 + ELF64_R_SYM(rel[i].r_info); in apply_relocate_add()
718 switch (ELF64_R_TYPE(rel[i].r_info)) { in apply_relocate_add()
[all …]
/linux/scripts/
A Drecordmcount.c429 switch (ELF32_R_TYPE(w(rp->r_info))) { in arm_is_fake_mcount()
441 return ELF64_R_TYPE(w8(rp->r_info)) != R_AARCH64_CALL26; in arm64_is_fake_mcount()
455 Elf64_Xword r_info; member
467 return w(((union mips_r_info){ .r_info = rp->r_info }).r_mips.r_sym); in MIPS64_r_sym()
472 rp->r_info = ((union mips_r_info){ in MIPS64_r_info()
474 }).r_info; in MIPS64_r_info()
/linux/arch/alpha/kernel/
A 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()
155 unsigned long r_sym = ELF64_R_SYM (rela[i].r_info); in apply_relocate_add()
156 unsigned long r_type = ELF64_R_TYPE (rela[i].r_info); in apply_relocate_add()
/linux/arch/sparc/kernel/
A 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()
/linux/arch/mips/boot/tools/
A 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()
/linux/arch/arc/kernel/
A 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()
/linux/scripts/mod/
A Dmodpost.c1859 r.r_info = ELF64_R_INFO(r_sym, r_typ); in section_rela()
1861 r.r_info = TO_NATIVE(rela->r_info); in section_rela()
1862 r_sym = ELF_R_SYM(r.r_info); in section_rela()
1865 r.r_info = TO_NATIVE(rela->r_info); in section_rela()
1866 r_sym = ELF_R_SYM(r.r_info); in section_rela()
1902 r_sym = ELF64_MIPS_R_SYM(rel->r_info); in section_rel()
1905 r.r_info = ELF64_R_INFO(r_sym, r_typ); in section_rel()
1907 r.r_info = TO_NATIVE(rel->r_info); in section_rel()
1908 r_sym = ELF_R_SYM(r.r_info); in section_rel()
1911 r.r_info = TO_NATIVE(rel->r_info); in section_rel()
[all …]
/linux/include/uapi/linux/
A Delf.h164 Elf32_Word r_info; member
169 Elf64_Xword r_info; /* index and type of relocation */ member
174 Elf32_Word r_info; member
180 Elf64_Xword r_info; /* index and type of relocation */ member

Completed in 142 milliseconds

12