Bug 21471

Summary: ld rejects pe-bigobj-x86-64 target but shouldn't
Product: binutils Reporter: awson <kyrab>
Component: ldAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED FIXED    
Severity: normal CC: nickc
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: enable pe-bigobj-x86-64 target

Description awson 2017-05-08 10:45:00 UTC
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.
Comment 1 Sourceware Commits 2017-05-09 13:43:53 UTC
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.
Comment 2 Nick Clifton 2017-05-09 13:46:16 UTC
Patch approved and applied.  Thanks very much for reporting & fixing this problem!

Cheers
  Nick