Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/llext/
Dllext_mem.c66 if (!ldr->sects[mem_idx].sh_size) { in llext_copy_section()
69 ext->mem_size[mem_idx] = ldr->sects[mem_idx].sh_size; in llext_copy_section()
72 if (ldr->sects[mem_idx].sh_type != SHT_NOBITS) { in llext_copy_section()
74 ext->mem[mem_idx] = llext_peek(ldr, ldr->sects[mem_idx].sh_offset); in llext_copy_section()
77 ldr->sects[mem_idx].sh_size); in llext_copy_section()
101 const uintptr_t sect_alloc = ROUND_UP(ldr->sects[mem_idx].sh_size, LLEXT_PAGE_SIZE); in llext_copy_section()
106 while (sect_alloc < ldr->sects[mem_idx].sh_size) { in llext_copy_section()
122 if (ldr->sects[mem_idx].sh_type == SHT_NOBITS) { in llext_copy_section()
123 memset(ext->mem[mem_idx], 0, ldr->sects[mem_idx].sh_size); in llext_copy_section()
125 ret = llext_seek(ldr, ldr->sects[mem_idx].sh_offset); in llext_copy_section()
[all …]
Dllext_load.c156 memset(ldr->sects, 0, sizeof(ldr->sects)); in llext_find_tables()
178 ldr->sects[LLEXT_MEM_SYMTAB] = *shdr; in llext_find_tables()
185 ldr->sects[LLEXT_MEM_SHSTRTAB] = *shdr; in llext_find_tables()
189 ldr->sects[LLEXT_MEM_STRTAB] = *shdr; in llext_find_tables()
199 if (!ldr->sects[LLEXT_MEM_SHSTRTAB].sh_type || in llext_find_tables()
200 !ldr->sects[LLEXT_MEM_STRTAB].sh_type || in llext_find_tables()
201 !ldr->sects[LLEXT_MEM_SYMTAB].sh_type) { in llext_find_tables()
288 elf_shdr_t *region = ldr->sects + mem_idx; in llext_map_sections()
371 elf_shdr_t *x = ldr->sects + i; in llext_map_sections()
372 elf_shdr_t *y = ldr->sects + j; in llext_map_sections()
[all …]
Dllext_link.c56 if (ldr->sects[i].sh_addr <= offset && in llext_file_offset()
57 ldr->sects[i].sh_addr + ldr->sects[i].sh_size > offset) { in llext_file_offset()
58 return offset - ldr->sects[i].sh_addr + ldr->sects[i].sh_offset; in llext_file_offset()
159 const elf_shdr_t *sym_shdr = ldr->sects + LLEXT_MEM_SYMTAB; in llext_link_plt()
220 ldr->sects[LLEXT_MEM_TEXT].sh_offset; in llext_link_plt()
268 (size_t)rela.r_offset, (size_t)ldr->sects[LLEXT_MEM_TEXT].sh_offset, stb); in llext_link_plt()
373 ret = llext_seek(ldr, ldr->sects[LLEXT_MEM_SYMTAB].sh_offset in llext_link()
Dllext.c36 ldr->sects[LLEXT_MEM_SHSTRTAB].sh_offset + in llext_get_section_header()
68 ldr->sects[LLEXT_MEM_SHSTRTAB].sh_offset + in llext_find_section()
/Zephyr-latest/arch/xtensa/core/
Dgen_vectors.py105 sects = list(offsets) variable
106 sects.sort(key=lambda s: offsets[s])
118 for s in sects:
Delf.c76 int ret = llext_seek(ldr, ldr->sects[LLEXT_MEM_SYMTAB].sh_offset + in xtensa_elf_relocate()
146 sh_addr = ldr->sects[LLEXT_MEM_TEXT].sh_addr; in arch_elf_relocate_local()
/Zephyr-latest/include/zephyr/llext/
Dloader.h100 elf_shdr_t sects[LLEXT_MEM_COUNT]; member
/Zephyr-latest/tests/subsys/llext/src/
Dtest_llext.c480 elf_shdr_t *text_region = detached_loader->sects + LLEXT_MEM_TEXT; in ZTEST()