Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple's Linker




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.

http://kegel.com/crosstool/



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,
Daniel

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >Apple's Linker (From: "Daniel Corbe" <email@hidden>)
 >Re: Apple's Linker (From: Boyd Waters <email@hidden>)
 >Re: Apple's Linker (From: "Daniel Corbe" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.