/arch/riscv/include/uapi/asm/ |
D | elf.h | 28 #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/ |
D | module_32.c | 26 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() 229 + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add() 233 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add() 289 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
|
D | module_64.c | 187 unsigned int i, r_info, r_addend, _count_relocs; in count_relocs() local 191 r_info = 0; in count_relocs() 195 if (ELF64_R_TYPE(rela[i].r_info) == R_PPC_REL24 && in count_relocs() 196 (r_info != ELF64_R_SYM(rela[i].r_info) || in count_relocs() 199 r_info = ELF64_R_SYM(rela[i].r_info); in count_relocs() 217 if (x->r_info < y->r_info) in relacmp() 219 else if (x->r_info > y->r_info) in relacmp() 553 + ELF64_R_SYM(rela[i].r_info); in apply_relocate_add() 556 location, (long)ELF64_R_TYPE(rela[i].r_info), in apply_relocate_add() 563 switch (ELF64_R_TYPE(rela[i].r_info)) { in apply_relocate_add() [all …]
|
/arch/m68k/kernel/ |
D | module.c | 42 + 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/h8300/kernel/ |
D | module.c | 28 + 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()
|
/arch/x86/kernel/ |
D | module.c | 109 + ELF32_R_SYM(rel[i].r_info); in apply_relocate() 111 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate() 122 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate() 151 + ELF64_R_SYM(rel[i].r_info); in apply_relocate_add() 154 (int)ELF64_R_TYPE(rel[i].r_info), in apply_relocate_add() 159 switch (ELF64_R_TYPE(rel[i].r_info)) { in apply_relocate_add() 204 me->name, ELF64_R_TYPE(rel[i].r_info)); in apply_relocate_add() 212 (int)ELF64_R_TYPE(rel[i].r_info), loc, val); in apply_relocate_add() 217 (int)ELF64_R_TYPE(rel[i].r_info), val); in apply_relocate_add()
|
/arch/xtensa/kernel/ |
D | module.c | 66 + 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/ |
D | module.c | 64 + ELF32_R_SYM(rela[i].r_info)); in apply_relocate_add() 68 ELF32_R_TYPE(rela[i].r_info), in apply_relocate_add() 71 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add() 125 mod->name, ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
|
/arch/openrisc/kernel/ |
D | module.c | 38 + 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/arm/kernel/ |
D | module-plts.c | 84 i = cmp_3way(ELF32_R_TYPE(x->r_info), ELF32_R_TYPE(y->r_info)); in cmp_rel() 86 i = cmp_3way(ELF32_R_SYM(x->r_info), ELF32_R_SYM(y->r_info)); in cmp_rel() 100 switch (ELF32_R_TYPE(rel->r_info)) { in is_zero_addend_relocation() 144 switch (ELF32_R_TYPE(rel[i].r_info)) { in count_plts() 161 s = syms + ELF32_R_SYM(rel[i].r_info); in count_plts()
|
D | module.c | 85 offset = ELF32_R_SYM(rel->r_info); in apply_relocate() 104 switch (ELF32_R_TYPE(rel->r_info)) { in apply_relocate() 147 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate() 174 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate() 189 if (ELF32_R_TYPE(rel->r_info) == R_ARM_MOVT_ABS) in apply_relocate() 260 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate() 299 if (ELF32_R_TYPE(rel->r_info) == R_ARM_THM_MOVT_ABS) in apply_relocate() 315 module->name, ELF32_R_TYPE(rel->r_info)); in apply_relocate()
|
/arch/hexagon/kernel/ |
D | module.c | 87 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/microblaze/kernel/ |
D | module.c | 39 ELF32_R_SYM(rela[i].r_info); in apply_relocate_add() 42 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add() 110 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
|
/arch/unicore32/kernel/ |
D | module.c | 44 offset = ELF32_R_SYM(rel->r_info); in apply_relocate() 66 switch (ELF32_R_TYPE(rel->r_info)) { in apply_relocate() 101 module->name, ELF32_R_TYPE(rel->r_info)); in apply_relocate()
|
/arch/csky/kernel/ |
D | module.c | 64 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add() 66 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add() 93 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
|
/arch/sh/kernel/ |
D | module.c | 46 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add() 58 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/c6x/kernel/ |
D | module.c | 65 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add() 70 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add() 113 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
|
/arch/nds32/kernel/ |
D | module.c | 98 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()
|
/arch/arc/kernel/ |
D | module.c | 81 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/sparc/kernel/ |
D | module.c | 110 + 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/arm64/kernel/ |
D | module-plts.c | 141 i = cmp_3way(ELF64_R_TYPE(x->r_info), ELF64_R_TYPE(y->r_info)); in cmp_rela() 143 i = cmp_3way(ELF64_R_SYM(x->r_info), ELF64_R_SYM(y->r_info)); in cmp_rela() 169 switch (ELF64_R_TYPE(rela[i].r_info)) { in count_plts() 186 s = syms + ELF64_R_SYM(rela[i].r_info); in count_plts()
|
/arch/alpha/kernel/ |
D | module.c | 32 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()
|
/arch/parisc/kernel/ |
D | module.c | 223 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() 704 #define r(t) ELF64_R_TYPE(rel[i].r_info)==t ? #t : in apply_relocate_add() [all …]
|
/arch/mips/boot/tools/ |
D | relocs.c | 392 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/ |
D | module-sections.c | 60 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()
|