Home
last modified time | relevance | path

Searched refs:rel (Results 1 – 25 of 57) sorted by relevance

123

/Zephyr-latest/include/zephyr/linker/
Drel-sections.ld4 * .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/riscv/core/
Delf.c200 int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel, in arch_elf_relocate() argument
204 elf_word reloc_type = ELF32_R_TYPE(rel->r_info); in arch_elf_relocate()
207 shdr->sh_info, rel); in arch_elf_relocate()
213 ret = llext_read_symbol(ldr, ext, rel, &sym); in arch_elf_relocate()
220 ret = llext_lookup_symbol(ldr, ext, &sym_base_addr_unsigned, rel, &sym, sym_name, shdr); in arch_elf_relocate()
251 __typeof__(rel->r_addend) target_alignment = 1; in arch_elf_relocate()
259 ret = llext_riscv_find_sym_pcrel(ldr, ext, rel, shdr, &sym, &sym_base_addr); in arch_elf_relocate()
279 jump_target = sym_base_addr + rel->r_addend; /* S + A */ in arch_elf_relocate()
284 UNALIGNED_PUT(sym_base_addr + rel->r_addend, loc64); /* S + A */ in arch_elf_relocate()
288 UNALIGNED_PUT(load_bias + rel->r_addend, loc_word); /* B + A */ in arch_elf_relocate()
[all …]
/Zephyr-latest/arch/arc/core/
Delf.c35 int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel, in arch_elf_relocate() argument
40 const uintptr_t loc = llext_get_reloc_instruction_location(ldr, ext, shdr->sh_info, rel); in arch_elf_relocate()
46 ret = llext_read_symbol(ldr, ext, rel, &sym); in arch_elf_relocate()
55 ret = llext_lookup_symbol(ldr, ext, &sym_base_addr, rel, &sym, sym_name, shdr); in arch_elf_relocate()
62 sym_base_addr += rel->r_addend; in arch_elf_relocate()
64 int reloc_type = ELF32_R_TYPE(rel->r_info); in arch_elf_relocate()
77 value = (sym_base_addr + rel->r_addend - (loc & ~0x3)) >> 2; in arch_elf_relocate()
/Zephyr-latest/arch/arm64/core/
Delf.c129 static int data_reloc_handler(elf_rela_t *rel, elf_word reloc_type, uintptr_t loc, in data_reloc_handler() argument
136 *(int64_t *)loc = reloc(AARCH64_RELOC_TYPE_ABS, loc, sym_base_addr, rel->r_addend); in data_reloc_handler()
140 x = reloc(AARCH64_RELOC_TYPE_ABS, loc, sym_base_addr, rel->r_addend); in data_reloc_handler()
148 x = reloc(AARCH64_RELOC_TYPE_ABS, loc, sym_base_addr, rel->r_addend); in data_reloc_handler()
156 *(int64_t *)loc = reloc(AARCH64_RELOC_TYPE_PREL, loc, sym_base_addr, rel->r_addend); in data_reloc_handler()
160 x = reloc(AARCH64_RELOC_TYPE_PREL, loc, sym_base_addr, rel->r_addend); in data_reloc_handler()
168 x = reloc(AARCH64_RELOC_TYPE_PREL, loc, sym_base_addr, rel->r_addend); in data_reloc_handler()
193 static int movw_reloc_handler(elf_rela_t *rel, elf_word reloc_type, uintptr_t loc, in movw_reloc_handler() argument
258 x = reloc(type, loc, sym_base_addr, rel->r_addend); in movw_reloc_handler()
297 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/xtensa/core/
Delf.c36 const elf_rela_t *rel, uintptr_t addr, in xtensa_elf_relocate() argument
82 ELF_R_SYM(rel->r_info) * sizeof(elf_sym_t)); in xtensa_elf_relocate()
99 rsym.st_value + rel->r_addend; in xtensa_elf_relocate()
115 rel->r_info, rel->r_offset); in xtensa_elf_relocate()
136 void arch_elf_relocate_local(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel, in arch_elf_relocate_local() argument
140 int type = ELF32_R_TYPE(rel->r_info); in arch_elf_relocate_local()
154 xtensa_elf_relocate(ldr, ext, rel, sh_addr, rel_addr, type, ELF_ST_BIND(sym->st_info), in arch_elf_relocate_local()
161 void arch_elf_relocate_global(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel, in arch_elf_relocate_global() argument
164 int type = ELF32_R_TYPE(rel->r_info); in arch_elf_relocate_global()
171 xtensa_elf_relocate(ldr, ext, rel, (uintptr_t)link_addr, rel_addr, type, in arch_elf_relocate_global()
/Zephyr-latest/subsys/llext/
Dllext_link.c29 __weak int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel, 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
148 int llext_read_symbol(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel, in llext_read_symbol() argument
154 + ELF_R_SYM(rel->r_info) * sizeof(elf_sym_t)); in llext_read_symbol()
168 const elf_rela_t *rel, const elf_sym_t *sym, const char *name, in llext_lookup_symbol() argument
171 if (ELF_R_SYM(rel->r_info) == 0) { in llext_lookup_symbol()
194 name, (size_t)rel->r_offset, shdr->sh_link); in llext_lookup_symbol()
369 elf_rela_t rel; in llext_link() local
465 ret = llext_read(ldr, &rel, shdr->sh_entsize); in llext_link()
[all …]
/Zephyr-latest/include/zephyr/llext/
Dllext.h370 int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel,
410 void arch_elf_relocate_local(struct llext_loader *loader, struct llext *ext, const elf_rela_t *rel,
424 void arch_elf_relocate_global(struct llext_loader *loader, struct llext *ext, const elf_rela_t *rel,
Dllext_internal.h68 const elf_rela_t *rel, const elf_sym_t *sym, const char *name,
74 int llext_read_symbol(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel,
/Zephyr-latest/tests/lib/cmsis_dsp/common/
Dtest_common.h282 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/
Defi.ld38 *(.data.rel*)
53 *(.rel.local)
/Zephyr-latest/soc/st/stm32/stm32mp1x/
Dlinker.ld15 #include <zephyr/linker/rel-sections.ld>
/Zephyr-latest/cmake/linker_script/arm/
Dlinker.cmake63 # 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/arch/arm/core/
Delf.c320 int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel, in arch_elf_relocate() argument
324 elf_word reloc_type = ELF32_R_TYPE(rel->r_info); in arch_elf_relocate()
326 const uintptr_t loc = llext_get_reloc_instruction_location(ldr, ext, shdr->sh_info, rel); in arch_elf_relocate()
331 ret = llext_read_symbol(ldr, ext, rel, &sym); in arch_elf_relocate()
340 ret = llext_lookup_symbol(ldr, ext, &sym_base_addr, rel, &sym, sym_name, shdr); in arch_elf_relocate()
/Zephyr-latest/scripts/build/
Dcheck_init_priorities_test.py63 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/
Ddoxytooltip.js77 link.rel = 'stylesheet';
/Zephyr-latest/soc/espressif/esp32c2/
Dmcuboot.ld260 /* linker rel sections*/
261 #include <zephyr/linker/rel-sections.ld>
/Zephyr-latest/soc/espressif/esp32c3/
Dmcuboot.ld260 /* linker rel sections*/
261 #include <zephyr/linker/rel-sections.ld>
/Zephyr-latest/soc/espressif/esp32c6/
Dmcuboot.ld260 /* linker rel sections*/
261 #include <zephyr/linker/rel-sections.ld>
/Zephyr-latest/include/zephyr/arch/sparc/
Dlinker.ld24 #include <zephyr/linker/rel-sections.ld>
/Zephyr-latest/include/zephyr/arch/mips/
Dlinker.ld47 #include <zephyr/linker/rel-sections.ld>
/Zephyr-latest/include/zephyr/arch/x86/intel64/
Dlinker.ld223 *(.rel.*)
/Zephyr-latest/soc/sensry/ganymed/sy1xx/common/
Dlinker.ld79 #include <zephyr/linker/rel-sections.ld>
/Zephyr-latest/soc/openisa/rv32m1/
Dlinker.ld88 #include <zephyr/linker/rel-sections.ld>
/Zephyr-latest/include/zephyr/arch/arm64/scripts/
Dlinker.ld83 #include <zephyr/linker/rel-sections.ld>
/Zephyr-latest/include/zephyr/arch/nios2/
Dlinker.ld86 #include <zephyr/linker/rel-sections.ld>

123