Since elfxx-x86.lo needs elf64.lo with 64-bit BFD, add elf64.lo together
with elfxx-x86.lo to bfd_backends for 64-bit BFD.
	* configure.ac (bfd_backends): Add elf64.lo together with
	elfxx-x86.lo for 64-bit BFD.
	* configure: Regenerated.
+2017-08-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * configure.ac (bfd_backends): Add elf64.lo together with
+       elfxx-x86.lo for 64-bit BFD.
+       * configure: Regenerated.
+
 2017-08-31  James Bowman  <james.bowman@ftdichip.com>
 
        * elf32-ft32.c (ft32_elf_howto_table): Use complain_overflow_dont
 
     ;;
 esac
 
+# elfxx-x86.lo needs elf64.lo with 64-bit BFD.
+case "${bfd_backends}-${wordsize}" in
+  *elfxx-x86.lo*-64*)
+    bfd_backends="${bfd_backends} elf64.lo"
+    ;;
+esac
+
 tdefaults=""
 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
 
     ;;
 esac
 
+# elfxx-x86.lo needs elf64.lo with 64-bit BFD.
+case "${bfd_backends}-${wordsize}" in
+  *elfxx-x86.lo*-64*)
+    bfd_backends="${bfd_backends} elf64.lo"
+    ;;
+esac
+
 tdefaults=""
 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"