Kaynağa Gözat

[efi] Add support for R_ARM_REL32 relocations

The relocation type R_ARM_REL32 is generated when building
bin-arm32-efi/snp.efi using gcc 6.3 and ld 2.28.

R_ARM_REL32 is a program counter (PC) relative 32 bit relocation so we
can ignore it like all other PC relative relocations.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Heinrich Schuchardt 6 yıl önce
ebeveyn
işleme
8c17ee115d
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1
    0
      src/util/elf2efi.c

+ 1
- 0
src/util/elf2efi.c Dosyayı Görüntüle

@@ -631,6 +631,7 @@ static void process_reloc ( struct elf_file *elf, const Elf_Shdr *shdr,
631 631
 			break;
632 632
 		case ELF_MREL ( EM_386, R_386_PC32 ) :
633 633
 		case ELF_MREL ( EM_ARM, R_ARM_CALL ) :
634
+		case ELF_MREL ( EM_ARM, R_ARM_REL32 ) :
634 635
 		case ELF_MREL ( EM_ARM, R_ARM_THM_PC22 ) :
635 636
 		case ELF_MREL ( EM_ARM, R_ARM_THM_JUMP24 ) :
636 637
 		case ELF_MREL ( EM_ARM, R_ARM_V4BX ):

Loading…
İptal
Kaydet