Bug 21471 - ld rejects pe-bigobj-x86-64 target but shouldn't
Summary: ld rejects pe-bigobj-x86-64 target but shouldn't
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-08 10:45 UTC by awson
Modified: 2017-05-09 13:46 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
enable pe-bigobj-x86-64 target (267 bytes, patch)
2017-05-08 10:45 UTC, awson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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