/Zephyr-latest/arch/riscv/core/ |
D | elf.c | 64 int arch_elf_relocate(elf_rela_t *rel, uintptr_t loc_unsigned, uintptr_t sym_base_addr_unsigned, in arch_elf_relocate() argument 68 elf_word reloc_type = ELF32_R_TYPE(rel->r_info); in arch_elf_relocate() 94 __typeof__(rel->r_addend) target_alignment = 1; in arch_elf_relocate() 107 jump_target = sym_base_addr + rel->r_addend; /* S + A */ in arch_elf_relocate() 112 UNALIGNED_PUT(sym_base_addr + rel->r_addend, loc64); /* S + A */ in arch_elf_relocate() 116 UNALIGNED_PUT(load_bias + rel->r_addend, loc_word); /* B + A */ in arch_elf_relocate() 123 jump_target = sym_base_addr + rel->r_addend - loc; /* S + A - P */ in arch_elf_relocate() 132 jump_target = sym_base_addr + rel->r_addend - loc; /* S + A - P */ in arch_elf_relocate() 144 jump_target = sym_base_addr + rel->r_addend - loc; /* S + A - P */ in arch_elf_relocate() 210 jump_target = sym_base_addr + rel->r_addend; /* S + A */ in arch_elf_relocate() [all …]
|
/Zephyr-latest/include/zephyr/linker/ |
D | rel-sections.ld | 4 * .rel.* are for relocation. 9 SECTION_PROLOGUE(.rel.plt,,) 11 *(.rel.plt) 14 *(.rel.iplt) 27 SECTION_PROLOGUE(.rel.dyn,,) 29 *(.rel.*)
|
/Zephyr-latest/arch/xtensa/core/ |
D | elf.c | 36 const elf_rela_t *rel, uintptr_t addr, in xtensa_elf_relocate() argument 77 ELF_R_SYM(rel->r_info) * sizeof(elf_sym_t)); in xtensa_elf_relocate() 94 rsym.st_value + rel->r_addend; in xtensa_elf_relocate() 110 rel->r_info, rel->r_offset); in xtensa_elf_relocate() 131 void arch_elf_relocate_local(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel, in arch_elf_relocate_local() argument 135 int type = ELF32_R_TYPE(rel->r_info); in arch_elf_relocate_local() 149 xtensa_elf_relocate(ldr, ext, rel, sh_addr, rel_addr, type, ELF_ST_BIND(sym->st_info)); in arch_elf_relocate_local() 155 void arch_elf_relocate_global(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel, in arch_elf_relocate_global() argument 158 int type = ELF32_R_TYPE(rel->r_info); in arch_elf_relocate_global() 165 xtensa_elf_relocate(ldr, ext, rel, (uintptr_t)link_addr, rel_addr, type, in arch_elf_relocate_global()
|
/Zephyr-latest/arch/arm64/core/ |
D | elf.c | 128 static int data_reloc_handler(elf_rela_t *rel, elf_word reloc_type, uintptr_t loc, in data_reloc_handler() argument 135 *(int64_t *)loc = reloc(AARCH64_RELOC_TYPE_ABS, loc, sym_base_addr, rel->r_addend); in data_reloc_handler() 139 x = reloc(AARCH64_RELOC_TYPE_ABS, loc, sym_base_addr, rel->r_addend); in data_reloc_handler() 147 x = reloc(AARCH64_RELOC_TYPE_ABS, loc, sym_base_addr, rel->r_addend); in data_reloc_handler() 155 *(int64_t *)loc = reloc(AARCH64_RELOC_TYPE_PREL, loc, sym_base_addr, rel->r_addend); in data_reloc_handler() 159 x = reloc(AARCH64_RELOC_TYPE_PREL, loc, sym_base_addr, rel->r_addend); in data_reloc_handler() 167 x = reloc(AARCH64_RELOC_TYPE_PREL, loc, sym_base_addr, rel->r_addend); in data_reloc_handler() 192 static int movw_reloc_handler(elf_rela_t *rel, elf_word reloc_type, uintptr_t loc, in movw_reloc_handler() argument 257 x = reloc(type, loc, sym_base_addr, rel->r_addend); in movw_reloc_handler() 296 static int imm_reloc_handler(elf_rela_t *rel, elf_word reloc_type, uintptr_t loc, in imm_reloc_handler() argument [all …]
|
/Zephyr-latest/arch/arc/core/ |
D | elf.c | 34 int arch_elf_relocate(elf_rela_t *rel, uintptr_t loc, uintptr_t sym_base_addr, const char *sym_name, in arch_elf_relocate() argument 41 sym_base_addr += rel->r_addend; in arch_elf_relocate() 43 int reloc_type = ELF32_R_TYPE(rel->r_info); in arch_elf_relocate() 56 value = (sym_base_addr + rel->r_addend - (loc & ~0x3)) >> 2; in arch_elf_relocate()
|
/Zephyr-latest/subsys/llext/ |
D | llext_link.c | 29 __weak int arch_elf_relocate(elf_rela_t *rel, uintptr_t loc, in arch_elf_relocate() argument 36 const elf_rela_t *rel, const elf_sym_t *sym, uint8_t *rel_addr, in arch_elf_relocate_local() argument 42 const elf_rela_t *rel, const elf_sym_t *sym, uint8_t *rel_addr, in arch_elf_relocate_global() argument 275 elf_rela_t rel; in llext_link() local 367 ret = llext_read(ldr, &rel, shdr->sh_entsize); in llext_link() 374 + ELF_R_SYM(rel.r_info) * sizeof(elf_sym_t)); in llext_link() 388 i, j, (size_t)rel.r_info, (size_t)ELF_R_TYPE(rel.r_info), in llext_link() 389 (size_t)ELF_R_SYM(rel.r_info), (size_t)rel.r_offset, in llext_link() 395 op_loc = sect_base + rel.r_offset; in llext_link() 397 if (ELF_R_SYM(rel.r_info) == 0) { in llext_link() [all …]
|
/Zephyr-latest/include/zephyr/llext/ |
D | llext.h | 343 int arch_elf_relocate(elf_rela_t *rel, uintptr_t loc, 383 void arch_elf_relocate_local(struct llext_loader *loader, struct llext *ext, const elf_rela_t *rel, 397 void arch_elf_relocate_global(struct llext_loader *loader, struct llext *ext, const elf_rela_t *rel,
|
/Zephyr-latest/tests/lib/cmsis_dsp/common/ |
D | test_common.h | 282 float64_t rel, delta, average; in test_rel_error_f64() local 289 rel = delta / average; in test_rel_error_f64() 291 if (rel > threshold) { in test_rel_error_f64() 305 float32_t rel, delta, average; in test_rel_error_f32() local 312 rel = delta / average; in test_rel_error_f32() 314 if (rel > threshold) { in test_rel_error_f32() 329 float32_t rel, delta, average; in test_rel_error_f16() local 336 rel = delta / average; in test_rel_error_f16() 338 if (rel > threshold) { in test_rel_error_f16()
|
/Zephyr-latest/arch/x86/zefi/ |
D | efi.ld | 38 *(.data.rel*) 53 *(.rel.local)
|
/Zephyr-latest/soc/st/stm32/stm32mp1x/ |
D | linker.ld | 15 #include <zephyr/linker/rel-sections.ld>
|
/Zephyr-latest/cmake/linker_script/arm/ |
D | linker.cmake | 63 # should go to a relocation.cmake - from include/linker/rel-sections.ld - start 64 zephyr_linker_section(NAME .rel.plt HIDDEN) 66 zephyr_linker_section(NAME .rel.dyn) 68 # should go to a relocation.cmake - from include/linker/rel-sections.ld - end 82 zephyr_linker_section_configure(SECTION .rel.plt INPUT ".rel.iplt")
|
/Zephyr-latest/scripts/build/ |
D | check_init_priorities_test.py | 63 rel = mock.Mock(spec=Section) 64 mock_elf.iter_sections.return_value = [sts, rel] 96 rel = mock.Mock(spec=Section) 97 mock_elf.iter_sections.return_value = [sts, rel]
|
/Zephyr-latest/doc/_extensions/zephyr/doxytooltip/static/ |
D | doxytooltip.js | 77 link.rel = 'stylesheet';
|
/Zephyr-latest/soc/espressif/esp32c2/ |
D | mcuboot.ld | 268 /* linker rel sections*/ 269 #include <zephyr/linker/rel-sections.ld>
|
/Zephyr-latest/soc/espressif/esp32c3/ |
D | mcuboot.ld | 268 /* linker rel sections*/ 269 #include <zephyr/linker/rel-sections.ld>
|
/Zephyr-latest/soc/espressif/esp32c6/ |
D | mcuboot.ld | 266 /* linker rel sections*/ 267 #include <zephyr/linker/rel-sections.ld>
|
/Zephyr-latest/arch/arm/core/ |
D | elf.c | 319 int arch_elf_relocate(elf_rela_t *rel, uintptr_t loc, uintptr_t sym_base_addr, in arch_elf_relocate() argument 323 elf_word reloc_type = ELF32_R_TYPE(rel->r_info); in arch_elf_relocate()
|
/Zephyr-latest/include/zephyr/arch/sparc/ |
D | linker.ld | 24 #include <zephyr/linker/rel-sections.ld>
|
/Zephyr-latest/include/zephyr/arch/mips/ |
D | linker.ld | 47 #include <zephyr/linker/rel-sections.ld>
|
/Zephyr-latest/soc/sensry/ganymed/sy1xx/common/ |
D | linker.ld | 79 #include <zephyr/linker/rel-sections.ld>
|
/Zephyr-latest/include/zephyr/arch/x86/intel64/ |
D | linker.ld | 223 *(.rel.*)
|
/Zephyr-latest/soc/openisa/rv32m1/ |
D | linker.ld | 88 #include <zephyr/linker/rel-sections.ld>
|
/Zephyr-latest/include/zephyr/arch/arm64/scripts/ |
D | linker.ld | 83 #include <zephyr/linker/rel-sections.ld>
|
/Zephyr-latest/include/zephyr/arch/nios2/ |
D | linker.ld | 86 #include <zephyr/linker/rel-sections.ld>
|
/Zephyr-latest/include/zephyr/arch/arc/v2/ |
D | linker.ld | 82 #include <zephyr/linker/rel-sections.ld>
|