• Home
  • Raw
  • Download

Lines Matching +full:12 +full:v

29 static int apply_r_riscv_32_rela(struct module *me, u32 *location, Elf_Addr v)  in apply_r_riscv_32_rela()  argument
31 if (v != (u32)v) { in apply_r_riscv_32_rela()
33 me->name, (long long)v); in apply_r_riscv_32_rela()
36 *location = v; in apply_r_riscv_32_rela()
40 static int apply_r_riscv_64_rela(struct module *me, u32 *location, Elf_Addr v) in apply_r_riscv_64_rela() argument
42 *(u64 *)location = v; in apply_r_riscv_64_rela()
47 Elf_Addr v) in apply_r_riscv_branch_rela() argument
49 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_branch_rela()
50 u32 imm12 = (offset & 0x1000) << (31 - 12); in apply_r_riscv_branch_rela()
60 Elf_Addr v) in apply_r_riscv_jal_rela() argument
62 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_jal_rela()
73 Elf_Addr v) in apply_r_riscv_rcv_branch_rela() argument
75 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_rcv_branch_rela()
76 u16 imm8 = (offset & 0x100) << (12 - 8); in apply_r_riscv_rcv_branch_rela()
79 u16 imm4_3 = (offset & 0x18) << (12 - 5); in apply_r_riscv_rcv_branch_rela()
80 u16 imm2_1 = (offset & 0x6) << (12 - 10); in apply_r_riscv_rcv_branch_rela()
88 Elf_Addr v) in apply_r_riscv_rvc_jump_rela() argument
90 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_rvc_jump_rela()
91 u16 imm11 = (offset & 0x800) << (12 - 11); in apply_r_riscv_rvc_jump_rela()
93 u16 imm9_8 = (offset & 0x300) << (12 - 11); in apply_r_riscv_rvc_jump_rela()
95 u16 imm6 = (offset & 0x40) << (12 - 11); in apply_r_riscv_rvc_jump_rela()
97 u16 imm4 = (offset & 0x10) << (12 - 5); in apply_r_riscv_rvc_jump_rela()
98 u16 imm3_1 = (offset & 0xe) << (12 - 10); in apply_r_riscv_rvc_jump_rela()
106 Elf_Addr v) in apply_r_riscv_pcrel_hi20_rela() argument
108 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_pcrel_hi20_rela()
114 me->name, (long long)v, location); in apply_r_riscv_pcrel_hi20_rela()
124 Elf_Addr v) in apply_r_riscv_pcrel_lo12_i_rela() argument
127 * v is the lo12 value to fill. It is calculated before calling this in apply_r_riscv_pcrel_lo12_i_rela()
130 *location = (*location & 0xfffff) | ((v & 0xfff) << 20); in apply_r_riscv_pcrel_lo12_i_rela()
135 Elf_Addr v) in apply_r_riscv_pcrel_lo12_s_rela() argument
138 * v is the lo12 value to fill. It is calculated before calling this in apply_r_riscv_pcrel_lo12_s_rela()
141 u32 imm11_5 = (v & 0xfe0) << (31 - 11); in apply_r_riscv_pcrel_lo12_s_rela()
142 u32 imm4_0 = (v & 0x1f) << (11 - 4); in apply_r_riscv_pcrel_lo12_s_rela()
149 Elf_Addr v) in apply_r_riscv_hi20_rela() argument
156 me->name, (long long)v, location); in apply_r_riscv_hi20_rela()
160 hi20 = ((s32)v + 0x800) & 0xfffff000; in apply_r_riscv_hi20_rela()
166 Elf_Addr v) in apply_r_riscv_lo12_i_rela() argument
169 s32 hi20 = ((s32)v + 0x800) & 0xfffff000; in apply_r_riscv_lo12_i_rela()
170 s32 lo12 = ((s32)v - hi20); in apply_r_riscv_lo12_i_rela()
176 Elf_Addr v) in apply_r_riscv_lo12_s_rela() argument
179 s32 hi20 = ((s32)v + 0x800) & 0xfffff000; in apply_r_riscv_lo12_s_rela()
180 s32 lo12 = ((s32)v - hi20); in apply_r_riscv_lo12_s_rela()
188 Elf_Addr v) in apply_r_riscv_got_hi20_rela() argument
190 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_got_hi20_rela()
195 offset = module_emit_got_entry(me, v); in apply_r_riscv_got_hi20_rela()
200 me->name, (long long)v, location); in apply_r_riscv_got_hi20_rela()
210 Elf_Addr v) in apply_r_riscv_call_plt_rela() argument
212 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_call_plt_rela()
218 offset = module_emit_plt_entry(me, v); in apply_r_riscv_call_plt_rela()
223 me->name, (long long)v, location); in apply_r_riscv_call_plt_rela()
236 Elf_Addr v) in apply_r_riscv_call_rela() argument
238 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_call_rela()
244 me->name, (long long)v, location); in apply_r_riscv_call_rela()
256 Elf_Addr v) in apply_r_riscv_relax_rela() argument
262 Elf_Addr v) in apply_r_riscv_align_rela() argument
271 Elf_Addr v) in apply_r_riscv_add32_rela() argument
273 *(u32 *)location += (u32)v; in apply_r_riscv_add32_rela()
278 Elf_Addr v) in apply_r_riscv_add64_rela() argument
280 *(u64 *)location += (u64)v; in apply_r_riscv_add64_rela()
285 Elf_Addr v) in apply_r_riscv_sub32_rela() argument
287 *(u32 *)location -= (u32)v; in apply_r_riscv_sub32_rela()
292 Elf_Addr v) in apply_r_riscv_sub64_rela() argument
294 *(u64 *)location -= (u64)v; in apply_r_riscv_sub64_rela()
299 Elf_Addr v) = {
328 int (*handler)(struct module *me, u32 *location, Elf_Addr v); in apply_relocate_add()
332 Elf_Addr v; in apply_relocate_add() local
367 v = sym->st_value + rel[i].r_addend; in apply_relocate_add()
400 v = lo12; in apply_relocate_add()
413 res = handler(me, location, v); in apply_relocate_add()