Page 2 of 2

Re: Mach GCC cross compiler

Posted: Sun Jun 21, 2009 4:12 pm
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.