Lines Matching refs:offset
40 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_branch_rela() local
41 u32 imm12 = (offset & 0x1000) << (31 - 12); in apply_r_riscv_branch_rela()
42 u32 imm11 = (offset & 0x800) >> (11 - 7); in apply_r_riscv_branch_rela()
43 u32 imm10_5 = (offset & 0x7e0) << (30 - 10); in apply_r_riscv_branch_rela()
44 u32 imm4_1 = (offset & 0x1e) << (11 - 4); in apply_r_riscv_branch_rela()
53 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_jal_rela() local
54 u32 imm20 = (offset & 0x100000) << (31 - 20); in apply_r_riscv_jal_rela()
55 u32 imm19_12 = (offset & 0xff000); in apply_r_riscv_jal_rela()
56 u32 imm11 = (offset & 0x800) << (20 - 11); in apply_r_riscv_jal_rela()
57 u32 imm10_1 = (offset & 0x7fe) << (30 - 10); in apply_r_riscv_jal_rela()
66 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_rcv_branch_rela() local
67 u16 imm8 = (offset & 0x100) << (12 - 8); in apply_r_riscv_rcv_branch_rela()
68 u16 imm7_6 = (offset & 0xc0) >> (6 - 5); in apply_r_riscv_rcv_branch_rela()
69 u16 imm5 = (offset & 0x20) >> (5 - 2); in apply_r_riscv_rcv_branch_rela()
70 u16 imm4_3 = (offset & 0x18) << (12 - 5); in apply_r_riscv_rcv_branch_rela()
71 u16 imm2_1 = (offset & 0x6) << (12 - 10); in apply_r_riscv_rcv_branch_rela()
81 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_rvc_jump_rela() local
82 u16 imm11 = (offset & 0x800) << (12 - 11); in apply_r_riscv_rvc_jump_rela()
83 u16 imm10 = (offset & 0x400) >> (10 - 8); in apply_r_riscv_rvc_jump_rela()
84 u16 imm9_8 = (offset & 0x300) << (12 - 11); in apply_r_riscv_rvc_jump_rela()
85 u16 imm7 = (offset & 0x80) >> (7 - 6); in apply_r_riscv_rvc_jump_rela()
86 u16 imm6 = (offset & 0x40) << (12 - 11); in apply_r_riscv_rvc_jump_rela()
87 u16 imm5 = (offset & 0x20) >> (5 - 2); in apply_r_riscv_rvc_jump_rela()
88 u16 imm4 = (offset & 0x10) << (12 - 5); in apply_r_riscv_rvc_jump_rela()
89 u16 imm3_1 = (offset & 0xe) << (12 - 10); in apply_r_riscv_rvc_jump_rela()
99 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_pcrel_hi20_rela() local
102 if (offset != (s32)offset) { in apply_r_riscv_pcrel_hi20_rela()
109 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_pcrel_hi20_rela()
181 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_got_hi20_rela() local
186 offset = module_emit_got_entry(me, v); in apply_r_riscv_got_hi20_rela()
187 offset = (void *)offset - (void *)location; in apply_r_riscv_got_hi20_rela()
195 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_got_hi20_rela()
203 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_call_plt_rela() local
204 s32 fill_v = offset; in apply_r_riscv_call_plt_rela()
207 if (offset != fill_v) { in apply_r_riscv_call_plt_rela()
210 offset = module_emit_plt_entry(me, v); in apply_r_riscv_call_plt_rela()
211 offset = (void *)offset - (void *)location; in apply_r_riscv_call_plt_rela()
220 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_call_plt_rela()
221 lo12 = (offset - hi20) & 0xfff; in apply_r_riscv_call_plt_rela()
230 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_call_rela() local
231 s32 fill_v = offset; in apply_r_riscv_call_rela()
234 if (offset != fill_v) { in apply_r_riscv_call_rela()
241 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_call_rela()
242 lo12 = (offset - hi20) & 0xfff; in apply_r_riscv_call_rela()
368 size_t offset = hi20_sym_val - hi20_loc; in apply_relocate_add() local
371 offset = module_emit_got_entry( in apply_relocate_add()
373 offset = offset - hi20_loc; in apply_relocate_add()
375 hi20 = (offset + 0x800) & 0xfffff000; in apply_relocate_add()
376 lo12 = offset - hi20; in apply_relocate_add()