Bug 29964 - When will binutils support Windows on ARM (aarch64-pe) ?
Summary: When will binutils support Windows on ARM (aarch64-pe) ?
Status: UNCONFIRMED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: unspecified
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-05 07:33 UTC by Brecht Sanders
Modified: 2023-01-16 02:17 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brecht Sanders 2023-01-05 07:33:38 UTC
Is it known when the aarch64 PE target (used by Windows on ARM, and supported by MinGW-w64) will be supported in binutils?

I recently came across https://sourceware.org/pipermail/binutils/2021-December/118998.html which seems to pretty much do what is needed (except for pe-bigobj-aarch64 support), but it seems like that patch was never accepted.
Comment 1 Nick Clifton 2023-01-06 11:07:46 UTC
Hi Brecht,

  Support for AArch64 PE will be present in the about-to-be-released 2.40
  release of the GNU binutils.

  Support is already in the mainline sources as well, so you can always
  use those to build and test an assembler and linker.

Cheers
  Nick
Comment 2 Brecht Sanders 2023-01-15 08:58:22 UTC
I just tried binutils 2.40 but when targeting Windows on Arm ./configure gives me the following error:

*** BFD does not support target aarch64-w64-mingw32
Comment 3 Brecht Sanders 2023-01-15 14:39:52 UTC
target aarch64-w64-mingw32 support can be fixed to build by replacing:

aarch64-*-pe*)

with:

aarch64-*-pe* | aarch64-*-mingw*)

in the following files:

bfd/config.bfd
ld/configure.tgt
gas/configure.tgt

The resulting ld.exe now reports the following supported targets when running ld --help:

pe-aarch64-little
pei-aarch64-little

Question:
Is there also a need for pe-bigobj-aarch64-little (similar to pe-bigobj-i386 and pe-bigobj-x86-64) ?
Comment 4 Alan Modra 2023-01-16 02:17:05 UTC
I'll note that the current aarch64-pe support in binutils is quite broken.