Parcourir la source

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>
Callum Farmer il y a 1 an
Parent
commit
708f66acfe
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      gnuefi/reloc_riscv64.c

+ 1 - 2
gnuefi/reloc_riscv64.c

@@ -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;