From 518a712db0eee8b4c4ded5eb3edd72b90dad1a2b Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Wed, 8 May 2024 15:37:39 +0200 Subject: [PATCH] llext: zero is a valid relocation offset Zero offset in a relocation entry is valid, shouldn't ignore it. Signed-off-by: Guennadi Liakhovetski --- subsys/llext/llext.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/subsys/llext/llext.c b/subsys/llext/llext.c index de90670916a..ec145cdd4df 100644 --- a/subsys/llext/llext.c +++ b/subsys/llext/llext.c @@ -738,11 +738,6 @@ static void llext_link_plt(struct llext_loader *ldr, struct llext *ext, continue; } - if (!rela.r_offset) { - LOG_WRN("PLT: zero offset idx %u name %s", j, name); - continue; - } - /* Resolve the symbol */ *(const void **)(text + got_offset) = link_addr; break;