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 committed by Nigel Croxon
parent 4cdcf2a37b
commit fb3b3f4c66

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;