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:
parent
4cdcf2a37b
commit
fb3b3f4c66
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user