Home
last modified time | relevance | path

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

/Zephyr-latest/arch/riscv/core/
Delf.c43 static inline int riscv_relocation_fits(long long jump_target, long long max_distance, in riscv_relocation_fits() argument
46 if (llabs(jump_target) > max_distance) { in riscv_relocation_fits()
48 jump_target, (uint64_t)reloc_type, max_distance); in riscv_relocation_fits()
92 long long original_imm8, jump_target; in arch_elf_relocate() local
107 jump_target = sym_base_addr + rel->r_addend; /* S + A */ in arch_elf_relocate()
108 UNALIGNED_PUT((uint32_t)jump_target, loc32); in arch_elf_relocate()
109 return riscv_relocation_fits(jump_target, INT32_MAX, reloc_type); in arch_elf_relocate()
123 jump_target = sym_base_addr + rel->r_addend - loc; /* S + A - P */ in arch_elf_relocate()
125 imm8 = jump_target; in arch_elf_relocate()
129 return riscv_relocation_fits(jump_target, RISCV_MAX_JUMP_DISTANCE_B_TYPE, in arch_elf_relocate()
[all …]