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.
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
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
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) ?
I'll note that the current aarch64-pe support in binutils is quite broken.