/linux-6.1.9/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
|
/linux-6.1.9/arch/powerpc/kernel/ |
D | module_32.c | 27 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() 218 + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add() 222 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add() 280 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()
|
D | module_64.c | 137 unsigned int i, r_info, r_addend, _count_relocs; in count_relocs() local 141 r_info = 0; in count_relocs() 145 if (ELF64_R_TYPE(rela[i].r_info) == R_PPC_REL24 && in count_relocs() 146 (r_info != ELF64_R_SYM(rela[i].r_info) || in count_relocs() 149 r_info = ELF64_R_SYM(rela[i].r_info); in count_relocs() 167 if (x->r_info < y->r_info) in relacmp() 169 else if (x->r_info > y->r_info) in relacmp() 551 + ELF64_R_SYM(rela[i].r_info); in apply_relocate_add() 554 location, (long)ELF64_R_TYPE(rela[i].r_info), in apply_relocate_add() 561 switch (ELF64_R_TYPE(rela[i].r_info)) { in apply_relocate_add() [all …]
|
/linux-6.1.9/arch/arm/kernel/ |
D | module.c | 132 offset = ELF32_R_SYM(rel->r_info); in apply_relocate() 151 switch (ELF32_R_TYPE(rel->r_info)) { in apply_relocate() 194 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate() 221 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate() 242 if (ELF32_R_TYPE(rel->r_info) == R_ARM_MOVT_PREL || in apply_relocate() 243 ELF32_R_TYPE(rel->r_info) == R_ARM_MOVW_PREL_NC) in apply_relocate() 245 if (ELF32_R_TYPE(rel->r_info) == R_ARM_MOVT_ABS || in apply_relocate() 246 ELF32_R_TYPE(rel->r_info) == R_ARM_MOVT_PREL) in apply_relocate() 298 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate() 366 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate() [all …]
|
D | module-plts.c | 110 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-6.1.9/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()
|
/linux-6.1.9/arch/x86/kernel/ |
D | module.c | 110 + ELF32_R_SYM(rel[i].r_info); in apply_relocate() 112 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate() 124 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate() 154 + ELF64_R_SYM(rel[i].r_info); in __apply_relocate_add() 157 (int)ELF64_R_TYPE(rel[i].r_info), in __apply_relocate_add() 162 switch (ELF64_R_TYPE(rel[i].r_info)) { in __apply_relocate_add() 203 me->name, ELF64_R_TYPE(rel[i].r_info)); in __apply_relocate_add() 211 (int)ELF64_R_TYPE(rel[i].r_info), loc, val); in __apply_relocate_add() 216 (int)ELF64_R_TYPE(rel[i].r_info), val); in __apply_relocate_add()
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/gpu/drm/omapdrm/ |
D | omap_plane.c | 73 struct omap_overlay_info info, r_info; in omap_plane_atomic_update() local 110 r_info = info; in omap_plane_atomic_update() 114 dual_ovl ? &r_info : NULL); in omap_plane_atomic_update() 129 r_info.zorder = info.zorder + 1; in omap_plane_atomic_update() 133 r_info.width, r_info.height, in omap_plane_atomic_update() 134 r_info.out_width, r_info.out_height, r_info.screen_width); in omap_plane_atomic_update() 135 DBG("%d,%d %pad %pad", r_info.pos_x, r_info.pos_y, in omap_plane_atomic_update() 136 &r_info.paddr, &r_info.p_uv_addr); in omap_plane_atomic_update() 153 ret = dispc_ovl_setup(priv->dispc, r_ovl_id, &r_info, in omap_plane_atomic_update()
|
D | omap_fb.c | 138 struct omap_overlay_info *r_info) in omap_framebuffer_update_scanout() argument 226 if (r_info) { in omap_framebuffer_update_scanout() 230 *r_info = *info; in omap_framebuffer_update_scanout() 235 r_info->width--; in omap_framebuffer_update_scanout() 240 r_info->out_width--; in omap_framebuffer_update_scanout() 244 r_info->pos_x = info->pos_x + info->out_width; in omap_framebuffer_update_scanout() 246 r_info->paddr = get_linear_addr(fb, format, 0, in omap_framebuffer_update_scanout() 249 r_info->p_uv_addr = in omap_framebuffer_update_scanout()
|
/linux-6.1.9/arch/arm64/kernel/ |
D | module-plts.c | 143 i = cmp_3way(ELF64_R_TYPE(x->r_info), ELF64_R_TYPE(y->r_info)); in cmp_rela() 145 i = cmp_3way(ELF64_R_SYM(x->r_info), ELF64_R_SYM(y->r_info)); in cmp_rela() 171 switch (ELF64_R_TYPE(rela[i].r_info)) { in count_plts() 188 s = syms + ELF64_R_SYM(rela[i].r_info); in count_plts() 261 Elf64_Sym *s = syms + ELF64_R_SYM(rela->r_info); in branch_rela_needs_plt() 266 return ELF64_R_TYPE(rela->r_info) == R_AARCH64_JUMP26 || in branch_rela_needs_plt() 267 ELF64_R_TYPE(rela->r_info) == R_AARCH64_CALL26; in branch_rela_needs_plt()
|
/linux-6.1.9/arch/nios2/kernel/ |
D | module.c | 63 + 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-6.1.9/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()
|
/linux-6.1.9/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()
|
/linux-6.1.9/arch/microblaze/kernel/ |
D | module.c | 36 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-6.1.9/arch/sh/kernel/ |
D | module.c | 46 + 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-6.1.9/arch/csky/kernel/ |
D | module.c | 63 + 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-6.1.9/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()
|
/linux-6.1.9/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()
|
/linux-6.1.9/scripts/ |
D | recordmcount.c | 429 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-6.1.9/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 …]
|
/linux-6.1.9/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()
|
/linux-6.1.9/scripts/mod/ |
D | modpost.c | 1437 unsigned int r_typ = ELF_R_TYPE(r->r_info); in addend_386_rel() 1470 unsigned int r_typ = ELF_R_TYPE(r->r_info); in addend_arm_rel() 1476 (elf->symtab_start + ELF_R_SYM(r->r_info)); in addend_arm_rel() 1497 unsigned int r_typ = ELF_R_TYPE(r->r_info); in addend_mips_rel() 1548 r_sym = ELF64_MIPS_R_SYM(rela->r_info); in section_rela() 1550 r_typ = ELF64_MIPS_R_TYPE(rela->r_info); in section_rela() 1551 r.r_info = ELF64_R_INFO(r_sym, r_typ); in section_rela() 1553 r.r_info = TO_NATIVE(rela->r_info); in section_rela() 1554 r_sym = ELF_R_SYM(r.r_info); in section_rela() 1557 r.r_info = TO_NATIVE(rela->r_info); in section_rela() [all …]
|
/linux-6.1.9/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()
|
/linux-6.1.9/arch/mips/include/asm/ |
D | module.h | 51 #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)
|