riscv64: ignore unknown relocs

Sometimes ld emits relocs such as R_RISCV_64 for unwind symbols
these don't need to be handled yet so just can be skipped otherwise
the binary will never load

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
Callum Farmer 2023-06-21 11:32:28 +01:00
parent 58dce6991b
commit 708f66acfe

View file

@ -81,8 +81,7 @@ EFI_STATUS EFIAPI _relocate(long ldbase, Elf_Dyn *dyn)
*addr = ldbase + rel->r_addend;
break;
default:
/* Panic */
while (1) ;
break;
}
rel = (Elf_Rela *)((char *)rel + relent);
relsz -= relent;