Lines Matching refs:sect_map
44 enum llext_mem mem_idx = ldr->sect_map[sh_ndx].mem_idx; in llext_loaded_sect_ptr()
50 return (const uint8_t *)ext->mem[mem_idx] + ldr->sect_map[sh_ndx].offset; in llext_loaded_sect_ptr()
108 size_t sect_map_sz = ext->sect_cnt * sizeof(ldr->sect_map[0]); in llext_load_elf_data()
110 ldr->sect_map = llext_alloc(sect_map_sz); in llext_load_elf_data()
111 if (!ldr->sect_map) { in llext_load_elf_data()
116 ldr->sect_map[i].mem_idx = LLEXT_MEM_COUNT; in llext_load_elf_data()
117 ldr->sect_map[i].offset = 0; in llext_load_elf_data()
179 ldr->sect_map[i].mem_idx = LLEXT_MEM_SYMTAB; in llext_find_tables()
186 ldr->sect_map[i].mem_idx = LLEXT_MEM_SHSTRTAB; in llext_find_tables()
190 ldr->sect_map[i].mem_idx = LLEXT_MEM_STRTAB; in llext_find_tables()
224 if (ldr->sect_map[i].mem_idx != LLEXT_MEM_COUNT) { in llext_map_sections()
226 i, name, ldr->sect_map[i].mem_idx); in llext_map_sections()
287 ldr->sect_map[i].mem_idx = mem_idx; in llext_map_sections()
442 enum llext_mem mem_idx = ldr->sect_map[i].mem_idx; in llext_map_sections()
445 ldr->sect_map[i].offset = shdr->sh_offset - ldr->sects[mem_idx].sh_offset; in llext_map_sections()
643 ldr->sect_map = NULL; in do_llext_load()
738 llext_free(ldr->sect_map); in do_llext_load()
739 ldr->sect_map = NULL; in do_llext_load()