Skip to content

Commit 21f16ce

Browse files
committed
llext: zero is a valid relocation offset
Zero offset in a relocation entry is valid, shouldn't ignore it. Signed-off-by: Guennadi Liakhovetski <[email protected]>
1 parent dff2b6c commit 21f16ce

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

subsys/llext/llext.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -738,11 +738,6 @@ static void llext_link_plt(struct llext_loader *ldr, struct llext *ext,
738738
continue;
739739
}
740740

741-
if (!rela.r_offset) {
742-
LOG_WRN("PLT: zero offset idx %u name %s", j, name);
743-
continue;
744-
}
745-
746741
/* Resolve the symbol */
747742
*(const void **)(text + got_offset) = link_addr;
748743
break;

0 commit comments

Comments
 (0)