Re: Apple's Linker
Re: Apple's Linker
- Subject: Re: Apple's Linker
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 21 Nov 2008 20:19:34 +0100
Le 21 nov. 08 à 19:59, Daniel Corbe a écrit : It isn't Linux-centric as much as it is GNU-toolchain-centric. I could easily use Apple's toolchain if grub supported booting macho binaries (hint, it does, but its a hack).
Just for the info, It was also the case for OpenFirmware (the PPC mac firmware), that why Apple did a little mach-o to XCOFF converter in the BootX project (300 lines, and half is for structure declarations).
I don't know the ELF format, but it's maybe possible to do a similar tool to convert Mach-O to ELF.
Of course, using a cross compiler is probably a simpler solution, even if building a cross compiler can be a nightmare. If your going this road, you should have a look at crosstool. It a script to build cross compiler.
I already managed to get a bootable kernel going last night by using a FreeBSD box here at work as a temporary build machine, and I'm happy with the results.
I found a great tutorial last night on building a custom cross-compiling toolchain so that I don't need to employ the use of a build box any longer. I think that's going to be my best option for doing the meat of the dev work on my mac.
Regards, |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden