Lines Matching refs:sym
458 elf_sym_t sym; in llext_count_export_syms() local
478 ret = llext_read(ldr, &sym, ent_size); in llext_count_export_syms()
483 uint32_t stt = ELF_ST_TYPE(sym.st_info); in llext_count_export_syms()
484 uint32_t stb = ELF_ST_BIND(sym.st_info); in llext_count_export_syms()
485 uint32_t sect = sym.st_shndx; in llext_count_export_syms()
487 name = llext_string(ldr, ext, LLEXT_MEM_STRTAB, sym.st_name); in llext_count_export_syms()
520 struct llext_symbol *sym; in llext_export_symbols() local
536 for (i = 0, sym = ext->mem[LLEXT_MEM_EXPORT]; in llext_export_symbols()
538 i++, sym++) { in llext_export_symbols()
539 exp_tab->syms[i].name = sym->name; in llext_export_symbols()
540 exp_tab->syms[i].addr = sym->addr; in llext_export_symbols()
541 LOG_DBG("sym %p name %s in %p", sym->addr, sym->name, exp_tab->syms + i); in llext_export_symbols()
554 elf_sym_t sym; in llext_copy_symbols() local
571 ret = llext_read(ldr, &sym, ent_size); in llext_copy_symbols()
576 uint32_t stt = ELF_ST_TYPE(sym.st_info); in llext_copy_symbols()
577 uint32_t stb = ELF_ST_BIND(sym.st_info); in llext_copy_symbols()
578 unsigned int shndx = sym.st_shndx; in llext_copy_symbols()
582 const char *name = llext_string(ldr, ext, LLEXT_MEM_STRTAB, sym.st_name); in llext_copy_symbols()
593 sym_tab->syms[j].addr = (uint8_t *)sym.st_value + in llext_copy_symbols()
613 sym_tab->syms[j].addr = (uint8_t *)base + sym.st_value - in llext_copy_symbols()