Hi Iain, Thanks for your reply! However, what I'm referring to is a lot more simple than that: I just want to build bare-metal binaries for Cortex-M devices from a Darwin/arm64 host. Not to produce Mach-O binaries that can run on Darwin/arm64.
Essentially, I just made the toolchain at https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm run on macOS/arm64. It still only produces Cortex-M ELF binaries. I'm looking for the right person at Arm to help them ship a pre-built arm64 image on the page above. I'm really trying to solve a very practical problem. My patches are super simple: - Fix their build-prerequisite.sh and build-toolchain.sh scripts - Fix GMP so it uses the proper macOS syntax on Arm - Fix libelf so it picks up stdlib.h - Fix a gcc-hook Thanks! - Romain On Tue, Nov 2, 2021 at 11:35 AM Iain Sandoe <i...@sandoe.co.uk> wrote: > Hi Romain > > > On 2 Nov 2021, at 13:09, Romain Goyet via Gcc-patches < > gcc-patches@gcc.gnu.org> wrote: > > > Arm distribute pre-built versions of GCC that targets bare-metal Cortex-M > > devices at > > > https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm > > > I have written a few small patches to get this toolchain to build and run > > on macOS/arm64. Should I submit them somewhere? > > The work to implement Arm64 on macOS is on-going (prototype is here: > https://github.com/iains/gcc-darwin-arm64) > > The patches for host-side support are mostly ready (probably your patches > will be > quite similar to those on the prototype, but if there’s something extra > we’ve missed so far > please feel free to post them to this list - please cc me). > > I am hoping to get the host-side stuff into master first (and reasonably > soon). > > thanks > Iain > > main host-side support: > > > https://github.com/iains/gcc-darwin-arm64/commit/af097efc24a72c005756b05f65f0f450e41340ed > + next four patches (deals with the fact that Arm64-darwin cannot use PCH). > > driver: > > https://github.com/iains/gcc-darwin-arm64/commit/5757cced1e1c8d4f0ec5458b9af7154d694e400b > > ada host-side tools. > > https://github.com/iains/gcc-darwin-arm64/commit/c16becf974da73646eb7b5e356323ffa4a585b21 > >