Home
last modified time | relevance | path

Searched refs:r_type (Results 1 - 25 of 40) sorted by relevance

12

/kernel/linux/linux-5.10/arch/s390/kernel/
H A Dmodule.c230 int r_type, r_sym; in apply_rela() local
238 r_type = ELF_R_TYPE(rela->r_info); in apply_rela()
242 switch (r_type) { in apply_rela()
253 if (r_type == R_390_8) in apply_rela()
255 else if (r_type == R_390_12) in apply_rela()
257 else if (r_type == R_390_16) in apply_rela()
259 else if (r_type == R_390_20) in apply_rela()
261 else if (r_type == R_390_32) in apply_rela()
263 else if (r_type == R_390_64) in apply_rela()
272 if (r_type in apply_rela()
[all...]
H A Dmachine_kexec_reloc.c5 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()
H A Dmachine_kexec_file.c288 int i, r_type; in arch_kexec_apply_relocations_add() local
323 r_type = ELF64_R_TYPE(relas[i].r_info); in arch_kexec_apply_relocations_add()
324 ret = arch_kexec_do_relocs(r_type, loc, val, addr); in arch_kexec_apply_relocations_add()
326 pr_err("Unknown rela relocation: %d\n", r_type); in arch_kexec_apply_relocations_add()
/kernel/linux/linux-6.6/arch/s390/kernel/
H A Dmodule.c264 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 in apply_rela()
[all...]
H A Dmachine_kexec_reloc.c5 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()
H A Dmachine_kexec_file.c307 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()
/kernel/linux/linux-5.10/arch/ia64/kernel/
H A Dmodule.c619 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()
689 if (r_type == R_IA64_PCREL21BI) { in do_reloc()
693 reloc_name[r_type], (unsigned long)val); in do_reloc()
702 switch (r_type) { in do_reloc()
707 if (r_type == R_IA64_IPLTMSB) in do_reloc()
733 if (reloc_name[r_type]) in do_reloc()
[all...]
/kernel/linux/linux-6.6/arch/ia64/kernel/
H A Dmodule.c619 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...]
/kernel/linux/linux-5.10/arch/alpha/kernel/
H A Dmodule.c33 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()
/kernel/linux/linux-6.6/arch/alpha/kernel/
H A Dmodule.c33 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()
/kernel/linux/linux-5.10/drivers/soc/qcom/
H A Drpmpd.c40 #define DEFINE_RPMPD_PAIR(_platform, _name, _active, r_type, r_key, \
46 .res_type = RPMPD_##r_type, \
54 .res_type = RPMPD_##r_type, \
59 #define DEFINE_RPMPD_CORNER(_platform, _name, r_type, r_id) \
62 .res_type = RPMPD_##r_type, \
67 #define DEFINE_RPMPD_LEVEL(_platform, _name, r_type, r_id) \
70 .res_type = RPMPD_##r_type, \
75 #define DEFINE_RPMPD_VFC(_platform, _name, r_type, r_id) \
78 .res_type = RPMPD_##r_type, \
83 #define DEFINE_RPMPD_VFL(_platform, _name, r_type, r_i
[all...]
/kernel/linux/linux-5.10/arch/x86/tools/
H A Drelocs.c772 unsigned r_type = ELF64_R_TYPE(rel->r_info); in do_reloc64() local
785 switch (r_type) { in do_reloc64()
829 rel_type(r_type), symname); in do_reloc64()
842 if (r_type == R_X86_64_64) in do_reloc64()
850 rel_type(r_type), r_type); in do_reloc64()
862 unsigned r_type = ELF32_R_TYPE(rel->r_info); in do_reloc32() local
865 switch (r_type) { in do_reloc32()
888 rel_type(r_type), symname); in do_reloc32()
897 rel_type(r_type), r_typ in do_reloc32()
907 unsigned r_type = ELF32_R_TYPE(rel->r_info); do_reloc_real() local
[all...]
/kernel/linux/linux-6.6/arch/x86/tools/
H A Drelocs.c839 unsigned r_type = ELF64_R_TYPE(rel->r_info); in do_reloc64() local
852 switch (r_type) { in do_reloc64()
896 rel_type(r_type), symname); in do_reloc64()
909 if (r_type == R_X86_64_64) in do_reloc64()
917 rel_type(r_type), r_type); in do_reloc64()
929 unsigned r_type = ELF32_R_TYPE(rel->r_info); in do_reloc32() local
932 switch (r_type) { in do_reloc32()
955 rel_type(r_type), symname); in do_reloc32()
964 rel_type(r_type), r_typ in do_reloc32()
974 unsigned r_type = ELF32_R_TYPE(rel->r_info); do_reloc_real() local
[all...]
/kernel/linux/linux-5.10/arch/mips/include/asm/
H A Dmodule.h25 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)
/kernel/linux/linux-6.6/arch/mips/include/asm/
H A Dmodule.h25 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)
/kernel/linux/linux-5.10/arch/mips/boot/tools/
H A Drelocs_64.c19 Elf64_Byte r_type; /* First relocation. */ member
26 #define ELF_R_TYPE(val) (((Elf64_Mips_Rela *)(&val))->fields.r_type)
H A Drelocs.c503 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()
/kernel/linux/linux-6.6/arch/mips/boot/tools/
H A Drelocs_64.c19 Elf64_Byte r_type; /* First relocation. */ member
26 #define ELF_R_TYPE(val) (((Elf64_Mips_Rela *)(&val))->fields.r_type)
H A Drelocs.c503 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()
/kernel/linux/linux-5.10/arch/s390/boot/
H A Dstartup.c93 int r_type, r_sym, rc; in handle_relocs() local
114 r_type = ELF64_R_TYPE(rela->r_info); in handle_relocs()
115 rc = arch_kexec_do_relocs(r_type, (void *) loc, val, 0); in handle_relocs()
/kernel/linux/linux-6.6/scripts/mod/
H A Dmodpost.c1273 static Elf_Addr addend_386_rel(uint32_t *location, unsigned int r_type) in addend_386_rel() argument
1275 switch (r_type) { in addend_386_rel()
1326 static Elf_Addr addend_arm_rel(void *loc, Elf_Sym *sym, unsigned int r_type) in addend_arm_rel() argument
1331 switch (r_type) { in addend_arm_rel()
1410 static Elf_Addr addend_mips_rel(uint32_t *location, unsigned int r_type) in addend_mips_rel() argument
1415 switch (r_type) { in addend_mips_rel()
1443 unsigned int *r_type, unsigned int *r_sym) in get_rel_type_and_sym()
1450 unsigned char r_type; /* 1st relocation type */ in get_rel_type_and_sym() member
1458 *r_type = mips64_r_info->r_type; in get_rel_type_and_sym()
1442 get_rel_type_and_sym(struct elf_info *elf, uint64_t r_info, unsigned int *r_type, unsigned int *r_sym) get_rel_type_and_sym() argument
1493 unsigned int r_type, r_sym; section_rela() local
1535 unsigned int r_type, r_sym; section_rel() local
[all...]
/kernel/linux/linux-5.10/arch/loongarch/boot/tools/
H A Drelocs.c390 unsigned r_type = ELF_R_TYPE(rel->r_info); in do_reloc() local
401 switch (r_type) { in do_reloc()
432 add_reloc(&relocs, rel->r_offset, r_type); in do_reloc()
436 die("Unsupported relocation type: %s (%d)\n", rel_type(r_type), r_type); in do_reloc()
/kernel/linux/linux-6.6/arch/s390/boot/
H A Dstartup.c104 int r_type, r_sym, rc; in handle_relocs() local
125 r_type = ELF64_R_TYPE(rela->r_info); in handle_relocs()
126 rc = arch_kexec_do_relocs(r_type, (void *) loc, val, 0); in handle_relocs()
/kernel/linux/linux-6.6/arch/riscv/kernel/
H A Delf_kexec.c373 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()
/kernel/linux/linux-5.10/arch/s390/include/asm/
H A Dkexec.h76 int arch_kexec_do_relocs(int r_type, void *loc, unsigned long val,

Completed in 18 milliseconds

12