Преглед на файлове

[build] Handle R_X86_64_PLT32 from binutils 2.31

Starting from binutils 2.31.0 (commit bd7ab16b) x86-64 assembler
generates R_X86_64_PLT32 instead of R_X86_64_PC32.

Acked-by: John Jolly <jjolly@suse.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Christian Hesse преди 6 години
родител
ревизия
133f4c47ba
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1
    0
      src/util/elf2efi.c

+ 1
- 0
src/util/elf2efi.c Целия файл

@@ -636,6 +636,7 @@ static void process_reloc ( struct elf_file *elf, const Elf_Shdr *shdr,
636 636
 		case ELF_MREL ( EM_ARM, R_ARM_THM_JUMP24 ) :
637 637
 		case ELF_MREL ( EM_ARM, R_ARM_V4BX ):
638 638
 		case ELF_MREL ( EM_X86_64, R_X86_64_PC32 ) :
639
+		case ELF_MREL ( EM_X86_64, R_X86_64_PLT32 ) :
639 640
 		case ELF_MREL ( EM_AARCH64, R_AARCH64_CALL26 ) :
640 641
 		case ELF_MREL ( EM_AARCH64, R_AARCH64_JUMP26 ) :
641 642
 		case ELF_MREL ( EM_AARCH64, R_AARCH64_ADR_PREL_LO21 ) :

Loading…
Отказ
Запис