Fixed issue #22

This commit is contained in:
bzt 2021-11-22 18:45:38 +01:00
parent 7ba599ad0f
commit f2aa5d000c
2 changed files with 2 additions and 2 deletions

View file

@ -178,7 +178,7 @@ efi_status_t uefi_init (
if (rel && relent) {
while (relsz > 0) {
if(ELF64_R_TYPE (rel->r_info) == R_AARCH64_RELATIVE)
{ addr = (unsigned long *)(ldbase + rel->r_offset); *addr += ldbase; break; }
{ addr = (unsigned long *)(ldbase + rel->r_offset); *addr += ldbase; }
rel = (Elf64_Rel*) ((char *) rel + relent);
relsz -= relent;
}

View file

@ -172,7 +172,7 @@ efi_status_t uefi_init (
if (rel && relent) {
while (relsz > 0) {
if(ELF64_R_TYPE (rel->r_info) == R_X86_64_RELATIVE)
{ addr = (unsigned long *)(ldbase + rel->r_offset); *addr += ldbase; break; }
{ addr = (unsigned long *)(ldbase + rel->r_offset); *addr += ldbase; }
rel = (Elf64_Rel*) ((char *) rel + relent);
relsz -= relent;
}