Lines Matching refs:offset
36 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_branch_rela() local
37 u32 imm12 = (offset & 0x1000) << (31 - 12); in apply_r_riscv_branch_rela()
38 u32 imm11 = (offset & 0x800) >> (11 - 7); in apply_r_riscv_branch_rela()
39 u32 imm10_5 = (offset & 0x7e0) << (30 - 10); in apply_r_riscv_branch_rela()
40 u32 imm4_1 = (offset & 0x1e) << (11 - 4); in apply_r_riscv_branch_rela()
49 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_jal_rela() local
50 u32 imm20 = (offset & 0x100000) << (31 - 20); in apply_r_riscv_jal_rela()
51 u32 imm19_12 = (offset & 0xff000); in apply_r_riscv_jal_rela()
52 u32 imm11 = (offset & 0x800) << (20 - 11); in apply_r_riscv_jal_rela()
53 u32 imm10_1 = (offset & 0x7fe) << (30 - 10); in apply_r_riscv_jal_rela()
62 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_rcv_branch_rela() local
63 u16 imm8 = (offset & 0x100) << (12 - 8); in apply_r_riscv_rcv_branch_rela()
64 u16 imm7_6 = (offset & 0xc0) >> (6 - 5); in apply_r_riscv_rcv_branch_rela()
65 u16 imm5 = (offset & 0x20) >> (5 - 2); in apply_r_riscv_rcv_branch_rela()
66 u16 imm4_3 = (offset & 0x18) << (12 - 5); in apply_r_riscv_rcv_branch_rela()
67 u16 imm2_1 = (offset & 0x6) << (12 - 10); in apply_r_riscv_rcv_branch_rela()
77 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_rvc_jump_rela() local
78 u16 imm11 = (offset & 0x800) << (12 - 11); in apply_r_riscv_rvc_jump_rela()
79 u16 imm10 = (offset & 0x400) >> (10 - 8); in apply_r_riscv_rvc_jump_rela()
80 u16 imm9_8 = (offset & 0x300) << (12 - 11); in apply_r_riscv_rvc_jump_rela()
81 u16 imm7 = (offset & 0x80) >> (7 - 6); in apply_r_riscv_rvc_jump_rela()
82 u16 imm6 = (offset & 0x40) << (12 - 11); in apply_r_riscv_rvc_jump_rela()
83 u16 imm5 = (offset & 0x20) >> (5 - 2); in apply_r_riscv_rvc_jump_rela()
84 u16 imm4 = (offset & 0x10) << (12 - 5); in apply_r_riscv_rvc_jump_rela()
85 u16 imm3_1 = (offset & 0xe) << (12 - 10); in apply_r_riscv_rvc_jump_rela()
95 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_pcrel_hi20_rela() local
98 if (offset != (s32)offset) { in apply_r_riscv_pcrel_hi20_rela()
105 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_pcrel_hi20_rela()
177 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_got_hi20_rela() local
182 offset = module_emit_got_entry(me, v); in apply_r_riscv_got_hi20_rela()
183 offset = (void *)offset - (void *)location; in apply_r_riscv_got_hi20_rela()
191 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_got_hi20_rela()
199 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_call_plt_rela() local
200 s32 fill_v = offset; in apply_r_riscv_call_plt_rela()
203 if (offset != fill_v) { in apply_r_riscv_call_plt_rela()
206 offset = module_emit_plt_entry(me, v); in apply_r_riscv_call_plt_rela()
207 offset = (void *)offset - (void *)location; in apply_r_riscv_call_plt_rela()
216 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_call_plt_rela()
217 lo12 = (offset - hi20) & 0xfff; in apply_r_riscv_call_plt_rela()
226 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_call_rela() local
227 s32 fill_v = offset; in apply_r_riscv_call_rela()
230 if (offset != fill_v) { in apply_r_riscv_call_rela()
237 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_call_rela()
238 lo12 = (offset - hi20) & 0xfff; in apply_r_riscv_call_rela()
380 size_t offset = hi20_sym_val - hi20_loc; in apply_relocate_add() local
383 offset = module_emit_got_entry( in apply_relocate_add()
385 offset = offset - hi20_loc; in apply_relocate_add()
387 hi20 = (offset + 0x800) & 0xfffff000; in apply_relocate_add()
388 lo12 = offset - hi20; in apply_relocate_add()