llext: zero is a valid relocation offset

Zero offset in a relocation entry is valid, shouldn't ignore it.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2024-05-08 15:37:39 +02:00 committed by Maureen Helm
commit 518a712db0

View file

@ -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;