Lines Matching refs:ldr
35 static void xtensa_elf_relocate(struct llext_loader *ldr, struct llext *ext, in xtensa_elf_relocate() argument
59 *got_entry += (uintptr_t)llext_loaded_sect_ptr(ldr, ext, sh_ndx) - in xtensa_elf_relocate()
76 int ret = llext_seek(ldr, ldr->sects[LLEXT_MEM_SYMTAB].sh_offset + in xtensa_elf_relocate()
80 ret = llext_read(ldr, &rsym, sizeof(elf_sym_t)); in xtensa_elf_relocate()
93 uintptr_t link_addr = (uintptr_t)llext_loaded_sect_ptr(ldr, ext, rsym.st_shndx) + in xtensa_elf_relocate()
131 void arch_elf_relocate_local(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel, in arch_elf_relocate_local() argument
144 shdr->sh_addr : (uintptr_t)llext_loaded_sect_ptr(ldr, ext, sym->st_shndx); in arch_elf_relocate_local()
146 sh_addr = ldr->sects[LLEXT_MEM_TEXT].sh_addr; in arch_elf_relocate_local()
149 xtensa_elf_relocate(ldr, ext, rel, sh_addr, rel_addr, type, ELF_ST_BIND(sym->st_info)); in arch_elf_relocate_local()
155 void arch_elf_relocate_global(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel, in arch_elf_relocate_global() argument
165 xtensa_elf_relocate(ldr, ext, rel, (uintptr_t)link_addr, rel_addr, type, in arch_elf_relocate_global()