Browse Source

[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 years ago
parent
commit
133f4c47ba
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/util/elf2efi.c

+ 1
- 0
src/util/elf2efi.c View File

@@ -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…
Cancel
Save