Lines Matching full:location

47 static int apply_r_larch_none(struct module *mod, u32 *location, Elf_Addr v,  in apply_r_larch_none()  argument
53 static int apply_r_larch_error(struct module *me, u32 *location, Elf_Addr v, in apply_r_larch_error() argument
60 static int apply_r_larch_32(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_32() argument
63 *location = v; in apply_r_larch_32()
67 static int apply_r_larch_64(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_64() argument
70 *(Elf_Addr *)location = v; in apply_r_larch_64()
74 static int apply_r_larch_sop_push_pcrel(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_pcrel() argument
77 return rela_stack_push(v - (u64)location, rela_stack, rela_stack_top); in apply_r_larch_sop_push_pcrel()
80 static int apply_r_larch_sop_push_absolute(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_absolute() argument
86 static int apply_r_larch_sop_push_dup(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_dup() argument
106 Elf_Shdr *sechdrs, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_plt_pcrel() argument
109 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_larch_sop_push_plt_pcrel()
117 return apply_r_larch_sop_push_pcrel(mod, location, v, rela_stack, rela_stack_top, type); in apply_r_larch_sop_push_plt_pcrel()
120 static int apply_r_larch_sop(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_sop() argument
166 static int apply_r_larch_sop_imm_field(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_sop_imm_field() argument
171 union loongarch_instruction *insn = (union loongarch_instruction *)location; in apply_r_larch_sop_imm_field()
239 *location = (u32)opr1; in apply_r_larch_sop_imm_field()
257 static int apply_r_larch_add_sub(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_add_sub() argument
262 *(s32 *)location += v; in apply_r_larch_add_sub()
265 *(s64 *)location += v; in apply_r_larch_add_sub()
268 *(s32 *)location -= v; in apply_r_larch_add_sub()
271 *(s64 *)location -= v; in apply_r_larch_add_sub()
280 Elf_Shdr *sechdrs, u32 *location, Elf_Addr v, in apply_r_larch_b26() argument
283 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_larch_b26()
284 union loongarch_instruction *insn = (union loongarch_instruction *)location; in apply_r_larch_b26()
292 offset = (void *)v - (void *)location; in apply_r_larch_b26()
313 static int apply_r_larch_pcala(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_pcala() argument
316 union loongarch_instruction *insn = (union loongarch_instruction *)location; in apply_r_larch_pcala()
319 (void *)((Elf_Addr)location & ~0xfff); in apply_r_larch_pcala()
320 Elf_Addr anchor = (((Elf_Addr)location) & ~0xfff) + offset_hi20; in apply_r_larch_pcala()
348 Elf_Shdr *sechdrs, u32 *location, Elf_Addr v, in apply_r_larch_got_pc() argument
368 return apply_r_larch_pcala(mod, location, got, rela_stack, rela_stack_top, type); in apply_r_larch_got_pc()
371 static int apply_r_larch_32_pcrel(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_32_pcrel() argument
374 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_larch_32_pcrel()
376 *(u32 *)location = offset; in apply_r_larch_32_pcrel()
380 static int apply_r_larch_64_pcrel(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_64_pcrel() argument
383 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_larch_64_pcrel()
385 *(u64 *)location = offset; in apply_r_larch_64_pcrel()
392 * @location: the address at which the reloc is to be applied
399 typedef int (*reloc_rela_handler)(struct module *mod, u32 *location, Elf_Addr v,
431 void *location; in apply_relocate_add() local
442 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr + rel[i].r_offset; in apply_relocate_add()
467 sym->st_value, rel[i].r_addend, (u64)location); in apply_relocate_add()
472 err = apply_r_larch_b26(mod, sechdrs, location, in apply_relocate_add()
476 err = apply_r_larch_got_pc(mod, sechdrs, location, in apply_relocate_add()
480 err = apply_r_larch_sop_push_plt_pcrel(mod, sechdrs, location, in apply_relocate_add()
484 err = handler(mod, location, v, rela_stack, &rela_stack_top, type); in apply_relocate_add()