mirror of
https://github.com/rhboot/gnu-efi
synced 2026-08-26 00:26:04 -04:00
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
58dce6991b
commit
708f66acfe
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue