Searched refs:shdr (Results 1 – 8 of 8) sorted by relevance
/Zephyr-latest/subsys/llext/ |
D | llext_link.c | 145 static void llext_link_plt(struct llext_loader *ldr, struct llext *ext, elf_shdr_t *shdr, in llext_link_plt() argument 148 unsigned int sh_cnt = shdr->sh_size / shdr->sh_entsize; in llext_link_plt() 156 (void *)llext_string(ldr, ext, LLEXT_MEM_SHSTRTAB, shdr->sh_name), in llext_link_plt() 157 shdr->sh_type, (size_t)shdr->sh_entsize, sh_cnt, (void *)text); in llext_link_plt() 165 int ret = llext_seek(ldr, shdr->sh_offset + i * shdr->sh_entsize); in llext_link_plt() 282 elf_shdr_t *shdr = ext->sect_hdrs + i; in llext_link() local 285 switch (shdr->sh_type) { in llext_link() 287 if (shdr->sh_entsize != sizeof(elf_rel_t)) { in llext_link() 289 (size_t)shdr->sh_entsize, i); in llext_link() 298 if (shdr->sh_entsize != sizeof(elf_rela_t)) { in llext_link() [all …]
|
D | llext_load.c | 160 elf_shdr_t *shdr = ext->sect_hdrs + i; in llext_find_tables() local 165 (size_t)shdr->sh_offset, in llext_find_tables() 166 shdr->sh_name, in llext_find_tables() 167 shdr->sh_type, in llext_find_tables() 168 (size_t)shdr->sh_flags, in llext_find_tables() 169 (size_t)shdr->sh_addr, in llext_find_tables() 170 (size_t)shdr->sh_size, in llext_find_tables() 171 shdr->sh_link, in llext_find_tables() 172 shdr->sh_info); in llext_find_tables() 174 switch (shdr->sh_type) { in llext_find_tables() [all …]
|
D | llext.c | 27 elf_shdr_t *shdr) in llext_get_section_header() argument 44 *shdr = *tmp; in llext_get_section_header() 54 elf_shdr_t *shdr; in llext_find_section() local 61 shdr = llext_peek(ldr, pos); in llext_find_section() 62 if (!shdr) { in llext_find_section() 69 shdr->sh_name); in llext_find_section() 72 return shdr->sh_offset; in llext_find_section()
|
/Zephyr-latest/arch/xtensa/core/ |
D | elf.c | 139 elf_shdr_t *shdr = ext->sect_hdrs + sym->st_shndx; in arch_elf_relocate_local() local 142 sh_addr = shdr->sh_addr && in arch_elf_relocate_local() 143 (!ldr_parm->section_detached || !ldr_parm->section_detached(shdr)) ? in arch_elf_relocate_local() 144 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 | 413 elf_shdr_t shdr; in ZTEST() local 421 res = llext_get_section_header(loader, ext, ".data", &shdr); in ZTEST() 423 zassert_equal(shdr.sh_offset, section_ofs, in ZTEST() 424 "different section offset %zd from get_section_header", shdr.sh_offset); in ZTEST() 450 static bool test_section_detached(const elf_shdr_t *shdr) in test_section_detached() argument 459 return shdr->sh_name == detached_shdr.sh_name; in test_section_detached()
|
/Zephyr-latest/include/zephyr/llext/ |
D | llext.h | 162 bool (*section_detached)(const elf_shdr_t *shdr); 371 const char *search_name, elf_shdr_t *shdr);
|