Created attachment 10040 [details] enable pe-bigobj-x86-64 target `ld` spits "Unsupported PEI architecture" when creating bigobj PECOFF object, i.e., when invoked with `-r --oformat pe-bigobj-x86-64`. In fact this is supported and should be allowed. Patch attached enables it.
The master branch has been updated by Nick Clifton <nickc@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a6da46304894741d50a6f4ca2263b5cc158740e4 commit a6da46304894741d50a6f4ca2263b5cc158740e4 Author: Awson <kyrab@mail.ru> Date: Tue May 9 14:42:43 2017 +0100 Support pe-bigobj-x86-64 as an output format in 64-bit PE based linkers. PR ld/21471 * pe-dll.c (pe_detail_list): Add entry for pe-bigobj-x86-64.
Patch approved and applied. Thanks very much for reporting & fixing this problem! Cheers Nick