/Zephyr-latest/subsys/llext/ |
D | llext_link.c | 30 const elf_shdr_t *shdr) in arch_elf_relocate() argument 169 const elf_shdr_t *shdr) in llext_lookup_symbol() argument 194 name, (size_t)rel->r_offset, shdr->sh_link); in llext_lookup_symbol() 231 static void llext_link_plt(struct llext_loader *ldr, struct llext *ext, elf_shdr_t *shdr, in llext_link_plt() argument 234 unsigned int sh_cnt = shdr->sh_size / shdr->sh_entsize; in llext_link_plt() 242 (void *)llext_section_name(ldr, ext, shdr), in llext_link_plt() 243 shdr->sh_type, (size_t)shdr->sh_entsize, sh_cnt, (void *)text); in llext_link_plt() 251 int ret = llext_seek(ldr, shdr->sh_offset + i * shdr->sh_entsize); in llext_link_plt() 375 elf_shdr_t *shdr = ext->sect_hdrs + i; in llext_link() local 378 switch (shdr->sh_type) { in llext_link() [all …]
|
D | llext_load.c | 163 elf_shdr_t *shdr = ext->sect_hdrs + i; in llext_find_tables() local 168 (size_t)shdr->sh_offset, in llext_find_tables() 169 shdr->sh_name, in llext_find_tables() 170 shdr->sh_type, in llext_find_tables() 171 (size_t)shdr->sh_flags, in llext_find_tables() 172 (size_t)shdr->sh_addr, in llext_find_tables() 173 (size_t)shdr->sh_addralign, in llext_find_tables() 174 (size_t)shdr->sh_size, in llext_find_tables() 175 shdr->sh_link, in llext_find_tables() 176 shdr->sh_info); in llext_find_tables() [all …]
|
D | llext.c | 43 elf_shdr_t *shdr) in llext_get_section_header() argument 52 *shdr = ext->sect_hdrs[ret]; in llext_get_section_header() 58 elf_shdr_t *shdr; in llext_find_section() local 65 shdr = llext_peek(ldr, pos); in llext_find_section() 66 if (!shdr) { in llext_find_section() 73 shdr->sh_name); in llext_find_section() 76 return shdr->sh_offset; in llext_find_section()
|
D | llext_mem.c | 217 elf_shdr_t *shdr = ext->sect_hdrs + i; in llext_copy_regions() local 219 const char *name = llext_section_name(ldr, ext, shdr); in llext_copy_regions()
|
/Zephyr-latest/include/zephyr/llext/ |
D | llext_internal.h | 48 const elf_shdr_t *shdr) in llext_section_name() argument 50 return llext_string(ldr, ext, LLEXT_MEM_SHSTRTAB, shdr->sh_name); in llext_section_name() 69 const elf_shdr_t *shdr);
|
D | llext.h | 166 bool (*section_detached)(const elf_shdr_t *shdr); 371 const elf_shdr_t *shdr); 398 const char *search_name, elf_shdr_t *shdr);
|
/Zephyr-latest/arch/arc/core/ |
D | elf.c | 36 const elf_shdr_t *shdr) 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() 55 ret = llext_lookup_symbol(ldr, ext, &sym_base_addr, rel, &sym, sym_name, shdr); in arch_elf_relocate()
|
/Zephyr-latest/arch/riscv/core/ |
D | elf.c | 83 const elf_rela_t *pcrel_lo12, const elf_shdr_t *shdr, in llext_riscv_find_sym_pcrel() argument 95 const elf_word rel_cnt = shdr->sh_size / shdr->sh_entsize; in llext_riscv_find_sym_pcrel() 96 const uintptr_t sect_base = (uintptr_t)llext_loaded_sect_ptr(ldr, ext, shdr->sh_info); in llext_riscv_find_sym_pcrel() 116 ret = llext_seek(ldr, shdr->sh_offset + i * shdr->sh_entsize); in llext_riscv_find_sym_pcrel() 121 ret = llext_read(ldr, &candidate, shdr->sh_entsize); in llext_riscv_find_sym_pcrel() 181 symbol_name, shdr); in llext_riscv_find_sym_pcrel() 201 const elf_shdr_t *shdr) in arch_elf_relocate() argument 207 shdr->sh_info, rel); in arch_elf_relocate() 220 ret = llext_lookup_symbol(ldr, ext, &sym_base_addr_unsigned, rel, &sym, sym_name, shdr); in arch_elf_relocate() 259 ret = llext_riscv_find_sym_pcrel(ldr, ext, rel, shdr, &sym, &sym_base_addr); in arch_elf_relocate()
|
/Zephyr-latest/arch/xtensa/core/ |
D | elf.c | 144 elf_shdr_t *shdr = ext->sect_hdrs + sym->st_shndx; in arch_elf_relocate_local() local 147 sh_addr = shdr->sh_addr && in arch_elf_relocate_local() 148 (!ldr_parm->section_detached || !ldr_parm->section_detached(shdr)) ? in arch_elf_relocate_local() 149 shdr->sh_addr : (uintptr_t)llext_loaded_sect_ptr(ldr, ext, sym->st_shndx); in arch_elf_relocate_local()
|
/Zephyr-latest/include/zephyr/stats/ |
D | stats.h | 230 void stats_init(struct stats_hdr *shdr, uint8_t size, uint16_t cnt, 245 int stats_register(const char *name, struct stats_hdr *shdr); 280 void stats_reset(struct stats_hdr *shdr);
|
/Zephyr-latest/subsys/stats/ |
D | stats.c | 259 stats_init_and_reg(struct stats_hdr *shdr, uint8_t size, uint16_t cnt, in stats_init_and_reg() argument 265 stats_init(shdr, size, cnt, map, map_cnt); in stats_init_and_reg() 267 rc = stats_register(name, shdr); in stats_init_and_reg()
|
/Zephyr-latest/tests/subsys/llext/src/ |
D | test_llext.c | 500 elf_shdr_t shdr; in ZTEST() local 508 res = llext_get_section_header(loader, ext, ".data", &shdr); in ZTEST() 510 zassert_equal(shdr.sh_offset, section_ofs, in ZTEST() 511 "different section offset %zd from get_section_header", shdr.sh_offset); in ZTEST() 537 static bool test_section_detached(const elf_shdr_t *shdr) in test_section_detached() argument 546 return shdr->sh_name == detached_shdr.sh_name; in test_section_detached()
|
/Zephyr-latest/arch/arm64/core/ |
D | elf.c | 435 const elf_shdr_t *shdr) in arch_elf_relocate() argument 440 const uintptr_t loc = llext_get_reloc_instruction_location(ldr, ext, shdr->sh_info, rel); in arch_elf_relocate() 454 ret = llext_lookup_symbol(ldr, ext, &sym_base_addr, rel, &sym, sym_name, shdr); in arch_elf_relocate()
|
/Zephyr-latest/arch/arm/core/ |
D | elf.c | 321 const elf_shdr_t *shdr) in arch_elf_relocate() argument 326 const uintptr_t loc = llext_get_reloc_instruction_location(ldr, ext, shdr->sh_info, rel); in arch_elf_relocate() 340 ret = llext_lookup_symbol(ldr, ext, &sym_base_addr, rel, &sym, sym_name, shdr); in arch_elf_relocate()
|