Mach GCC cross compiler

Programming, for all ages and all languages.
User avatar
Firestryke31
Member
Member
Posts: 550
Joined: Sat Nov 29, 2008 1:07 pm
Location: Throw a dart at central Texas
Contact:

Re: Mach GCC cross compiler

Post by Firestryke31 »

Whee, another double-post.

So, I managed to get something working, but it's not what I wanted. I have an i686-pc-mach3-* system set up for use in MSYS and it outputs... a.out-mach, not mach-o. That means the Darwin bootloader won't load it, meaning it's pretty much useless to me. Why is there no Darwin support in binutils? So, I guess I'm going to have to go ahead and do my kernel development under OS X, unless someone is willing to tell me how to get a Mach-o file built under Windows.

For those that care of my pain, I had to build a GCC cross compiler for Windows on Linux, then use this to build a binutils cross-linker for mach on Windows. I couldn't get the GCC to compile using the Linux->Windows compiler, so I transferred the source (as well as the mach binutils) over to MSYS, and built the Windows->Mach GCC there. Then I compiled my simple test kernel and everything was happy, except for the fact that it was in the wrong format.

If anyone wants it for some strange reason, I can zip up my /mach folder and put it up here.
Owner of Fawkes Software.
Wierd Al wrote: You think your Commodore 64 is really neato,
What kind of chip you got in there, a Dorito?
Post Reply