/arch/s390/kernel/ |
D | module.c | 264 int r_type, r_sym; in apply_rela() local 272 r_type = ELF_R_TYPE(rela->r_info); in apply_rela() 276 switch (r_type) { in apply_rela() 287 if (r_type == R_390_8) in apply_rela() 289 else if (r_type == R_390_12) in apply_rela() 291 else if (r_type == R_390_16) in apply_rela() 293 else if (r_type == R_390_20) in apply_rela() 295 else if (r_type == R_390_32) in apply_rela() 297 else if (r_type == R_390_64) in apply_rela() 306 if (r_type == R_390_PC16) in apply_rela() [all …]
|
D | machine_kexec_reloc.c | 5 int arch_kexec_do_relocs(int r_type, void *loc, unsigned long val, in arch_kexec_do_relocs() argument 8 switch (r_type) { in arch_kexec_do_relocs()
|
D | machine_kexec_file.c | 307 int i, r_type; in arch_kexec_apply_relocations_add() local 359 r_type = ELF64_R_TYPE(relas[i].r_info); in arch_kexec_apply_relocations_add() 361 if (r_type == R_390_PLT32DBL) in arch_kexec_apply_relocations_add() 362 r_type = R_390_PC32DBL; in arch_kexec_apply_relocations_add() 364 ret = arch_kexec_do_relocs(r_type, loc, val, addr); in arch_kexec_apply_relocations_add() 366 pr_err("Unknown rela relocation: %d\n", r_type); in arch_kexec_apply_relocations_add()
|
/arch/alpha/kernel/ |
D | module.c | 33 unsigned long r_type = ELF64_R_TYPE (rela->r_info); in process_reloc_for_got() local 37 if (r_type != R_ALPHA_LITERAL) in process_reloc_for_got() 154 unsigned long r_type = ELF64_R_TYPE (rela[i].r_info); in apply_relocate_add() local 155 unsigned long r_got_offset = r_type >> 8; in apply_relocate_add() 157 r_type &= 0xff; in apply_relocate_add() 167 switch (r_type) { in apply_relocate_add() 255 me->name, r_type); in apply_relocate_add() 261 me->name, r_type, sym->st_shndx); in apply_relocate_add() 265 me->name, r_type, strtab + sym->st_name); in apply_relocate_add()
|
/arch/ia64/kernel/ |
D | module.c | 619 do_reloc (struct module *mod, uint8_t r_type, Elf64_Sym *sym, uint64_t addend, in do_reloc() argument 622 enum reloc_target_format format = (r_type >> FORMAT_SHIFT) & FORMAT_MASK; in do_reloc() 623 enum reloc_value_formula formula = (r_type >> VALUE_SHIFT) & VALUE_MASK; in do_reloc() 642 switch (r_type) { in do_reloc() 670 switch (r_type) { in do_reloc() 690 if (r_type == R_IA64_PCREL21BI) { in do_reloc() 694 reloc_name[r_type], (unsigned long)val); in do_reloc() 703 switch (r_type) { in do_reloc() 708 if (r_type == R_IA64_IPLTMSB) in do_reloc() 734 if (reloc_name[r_type]) in do_reloc() [all …]
|
/arch/mips/include/asm/ |
D | module.h | 25 Elf64_Byte r_type; /* First relocation. */ member 34 Elf64_Byte r_type; /* First relocation. */ member 70 #define ELF_MIPS_R_TYPE(rel) ((rel).r_type)
|
/arch/mips/boot/tools/ |
D | relocs_64.c | 19 Elf64_Byte r_type; /* First relocation. */ member 26 #define ELF_R_TYPE(val) (((Elf64_Mips_Rela *)(&val))->fields.r_type)
|
D | relocs.c | 503 unsigned r_type = ELF_R_TYPE(rel->r_info); in do_reloc() local 514 switch (r_type) { in do_reloc() 539 add_reloc(&relocs, rel->r_offset, r_type); in do_reloc() 544 rel_type(r_type), r_type); in do_reloc()
|
/arch/x86/tools/ |
D | relocs.c | 848 unsigned r_type = ELF64_R_TYPE(rel->r_info); in do_reloc64() local 861 switch (r_type) { in do_reloc64() 905 rel_type(r_type), symname); in do_reloc64() 918 if (r_type == R_X86_64_64) in do_reloc64() 926 rel_type(r_type), r_type); in do_reloc64() 938 unsigned r_type = ELF32_R_TYPE(rel->r_info); in do_reloc32() local 941 switch (r_type) { in do_reloc32() 964 rel_type(r_type), symname); in do_reloc32() 973 rel_type(r_type), r_type); in do_reloc32() 983 unsigned r_type = ELF32_R_TYPE(rel->r_info); in do_reloc_real() local [all …]
|
/arch/s390/include/asm/ |
D | kexec.h | 76 int arch_kexec_do_relocs(int r_type, void *loc, unsigned long val,
|
/arch/s390/boot/ |
D | startup.c | 103 int r_type, r_sym, rc; in handle_relocs() local 124 r_type = ELF64_R_TYPE(rela->r_info); in handle_relocs() 125 rc = arch_kexec_do_relocs(r_type, (void *) loc, val, 0); in handle_relocs()
|
/arch/riscv/kernel/ |
D | elf_kexec.c | 373 int i, r_type; in arch_kexec_apply_relocations_add() local 416 r_type = ELF64_R_TYPE(relas[i].r_info); in arch_kexec_apply_relocations_add() 418 switch (r_type) { in arch_kexec_apply_relocations_add() 459 pr_err("Unknown rela relocation: %d\n", r_type); in arch_kexec_apply_relocations_add()
|
/arch/powerpc/boot/ |
D | rs6000.h | 233 char r_type[1]; member
|
/arch/powerpc/kernel/ |
D | module_64.c | 162 unsigned long r_type) in count_relocs() argument 172 if (ELF64_R_TYPE(rela[i].r_info) == r_type && in count_relocs()
|