llext: add a weak arch_elf_relocate() stub

The module linking API can be used for shared objects with no
architecture-specific relocation code. Add a weak function for such
cases.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2023-09-07 16:51:50 +02:00 committed by Carles Cufí
parent ade72c2b3a
commit f0527b5571

View file

@ -403,6 +403,10 @@ out:
return ret;
}
__weak void arch_elf_relocate(elf_rel_t *rel, uintptr_t opaddr, uintptr_t opval)
{
}
static int llext_link(struct llext_loader *ldr, struct llext *ext)
{
int ret = 0;