Home
last modified time | relevance | path

Searched refs:reloc_offset (Results 1 – 18 of 18) sorted by relevance

/Linux-v6.6/arch/loongarch/kernel/
Drelocate.c19 #define RELOCATED(x) ((void *)((long)x + reloc_offset))
22 static unsigned long reloc_offset; variable
157 *new_addr = (unsigned long)reloc_offset; in update_reloc_offset()
176 reloc_offset = (unsigned long)_text - VMLINUX_LOAD_ADDRESS; in relocate_kernel()
190 reloc_offset += random_offset; in relocate_kernel()
195 update_reloc_offset(&reloc_offset, random_offset); in relocate_kernel()
198 if (reloc_offset) in relocate_kernel()
211 if (reloc_offset > 0) { in show_kernel_relocation()
213 pr_cont("Kernel relocated by 0x%lx\n", reloc_offset); in show_kernel_relocation()
/Linux-v6.6/arch/x86/boot/tools/
Dbuild.c201 u32 reloc_offset = size - PECOFF_RELOC_RESERVE - PECOFF_COMPAT_RESERVE; in update_pecoff_setup_and_reloc() local
203 u32 compat_offset = reloc_offset + PECOFF_RELOC_RESERVE; in update_pecoff_setup_and_reloc()
205 u32 setup_size = reloc_offset - setup_offset; in update_pecoff_setup_and_reloc()
208 update_pecoff_section_header(".reloc", reloc_offset, PECOFF_RELOC_RESERVE); in update_pecoff_setup_and_reloc()
214 put_unaligned_le32(reloc_offset + 10, &buf[reloc_offset]); in update_pecoff_setup_and_reloc()
215 put_unaligned_le32(10, &buf[reloc_offset + 4]); in update_pecoff_setup_and_reloc()
/Linux-v6.6/arch/arm64/kvm/hyp/nvhe/
Dgen-hyprel.c329 static size_t reloc_offset; in emit_rela_abs64() local
341 reloc_offset, HYP_SECTION_SYMBOL_PREFIX, sh_orig_name, in emit_rela_abs64()
344 reloc_offset += 4; in emit_rela_abs64()
/Linux-v6.6/arch/powerpc/kernel/
Dmisc.S28 _GLOBAL(reloc_offset)
39 _ASM_NOKPROBE_SYMBOL(reloc_offset)
Dearly_32.c21 unsigned long kva, offset = reloc_offset(); in early_init()
Dhead_book3s_32.S157 bl reloc_offset
172 bl reloc_offset
175 bl reloc_offset
186 bl reloc_offset
1163 bl reloc_offset
Dprom_init.c3307 unsigned long offset = reloc_offset(); in prom_init()
/Linux-v6.6/arch/powerpc/include/asm/
Dsetup.h15 extern unsigned long reloc_offset(void);
/Linux-v6.6/tools/objtool/include/objtool/
Delf.h236 static inline u64 reloc_offset(struct reloc *reloc) in reloc_offset() function
347 return sec_offset_hash(reloc->sec, reloc_offset(reloc)); in reloc_hash()
/Linux-v6.6/include/uapi/drm/
Detnaviv_drm.h141 __u64 reloc_offset; /* in, offset from start of reloc_bo */ member
Dmsm_drm.h196 __u64 reloc_offset; /* in, offset from start of reloc_bo */ member
/Linux-v6.6/tools/objtool/
Delf.c285 if (reloc_offset(reloc) >= offset && in find_reloc_by_dest_range()
286 reloc_offset(reloc) < offset + len) { in find_reloc_by_dest_range()
287 if (!r || reloc_offset(reloc) < reloc_offset(r)) in find_reloc_by_dest_range()
Dcheck.c515 idx = (reloc_offset(reloc) - sym->offset) / sizeof(unsigned long); in add_pv_ops()
519 off = reloc_offset(reloc) + 1; in add_pv_ops()
2023 if (prev_offset && reloc_offset(reloc) != prev_offset + 8) in add_jump_table()
2048 prev_offset = reloc_offset(reloc); in add_jump_table()
4310 reloc_offset(reloc) + 1, in validate_ibt_insn()
4311 (insn->offset + insn->len) - (reloc_offset(reloc) + 1))) { in validate_ibt_insn()
4396 reloc->sec->base, reloc_offset(reloc), in validate_ibt_data_reloc()
/Linux-v6.6/drivers/gpu/drm/etnaviv/
Detnaviv_gem_submit.c300 if (r->reloc_offset > bo->obj->base.size - sizeof(*ptr)) { in submit_reloc()
305 ptr[off] = bo->mapping->iova + r->reloc_offset; in submit_reloc()
/Linux-v6.6/arch/powerpc/platforms/powermac/
Dsleep.S304 bl reloc_offset
Dbootx_init.c470 unsigned long offset = reloc_offset(); in bootx_init()
/Linux-v6.6/arch/riscv/mm/
Dinit.c857 uintptr_t reloc_offset = kernel_map.virt_addr - KERNEL_LINK_ADDR; in relocate_kernel() local
878 relocated_addr += reloc_offset; in relocate_kernel()
/Linux-v6.6/drivers/gpu/drm/msm/
Dmsm_gem_submit.c523 iova += submit_reloc.reloc_offset; in submit_reloc()