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:
parent
946fd3fda2
commit
518a712db0
1 changed files with 0 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue