blob: 9f20784eba03bc701d502b64aa073d43b372a588 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001binutils : enable x86_64-pep for producing EFI binaries on x86-64
2
3Add x86_64-pep emulation support to the set enabled for x86_64 targets
4to enable the linker to produce Portable Executables for EFI binaries.
5
6Enables building the x86-64 EFI variant of the Xen hypervisor for
7the OpenXT Project.
8
9Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
10
11Upstream-Status: Inappropriate [OE configuration specific]
12---
13diff --git a/bfd/config.bfd b/bfd/config.bfd
14index c882421..dc705b6 100644
15--- a/bfd/config.bfd
16+++ b/bfd/config.bfd
17@@ -688,7 +688,7 @@ case "${targ}" in
18 ;;
19 x86_64-*-linux-*)
20 targ_defvec=x86_64_elf64_vec
21- targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
22+ targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec x86_64_pe_vec x86_64_pe_be_vec i386_pe_vec"
23 want64=true
24 ;;
25 x86_64-*-nacl*)
26diff --git a/ld/configure.tgt b/ld/configure.tgt
27index a1db7ad..65a984a 100644
28--- a/ld/configure.tgt
29+++ b/ld/configure.tgt
30@@ -253,8 +253,9 @@ x86_64-*-linux-gnux32) targ_emul=elf32_x86_64
31 tdir_elf_iamcu=`echo ${targ_alias} | sed -e 's/x86_64/i386/' -e 's/-linux-gnux32/-linux-gnu/'`
32 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/' -e 's/-linux-gnux32/-linux-gnu/'` ;;
33 x86_64-*-linux-*) targ_emul=elf_x86_64
34- targ_extra_emuls="elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om"
35- targ_extra_libpath="elf_i386 elf32_x86_64 elf_l1om elf_k1om"
36+ targ_extra_emuls="elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om i386pe i386pep"
37+ targ_extra_libpath="elf_i386 elf32_x86_64 elf_l1om elf_k1om i386pep"
38+ targ_extra_ofiles="deffilep.o pep-dll.o pe-dll.o"
39 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` ;;
40 i[3-7]86-*-redox*) targ_emul=elf_i386
41 targ_extra_emuls=elf_x86_64 ;;