From f0527b5571e947092457859e22d2426e780d9a64 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Thu, 7 Sep 2023 16:51:50 +0200 Subject: [PATCH] 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 --- subsys/llext/llext.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subsys/llext/llext.c b/subsys/llext/llext.c index 83f05f121c5..d46e021b894 100644 --- a/subsys/llext/llext.c +++ b/subsys/llext/llext.c @@ -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;