binutils for mac os x

Stan Shebs shebs@apple.com
Mon Feb 28 22:41:00 GMT 2005


nico wrote:

>
> is it possible to compile binutils for mac os x?
>
Not at the moment. Apple's equivalent of binutils, called "cctools",
is a totally independent implementation, except for the assembler,
which was forked from gas 1.38 (a pre BFD version). So there hasn't
been much motivation to port binutils.

The reading side of BFD has been ported, for the benefit of GDB,
which explains the "bfd/mach-o.c" etc that you see in the sources.

Patches for Mach-O gas were posted to this list some time ago, but
I think they've been overlooked. Doing Mach-O in the linker and
such would be pretty complicated; the file format sometimes resembles
ELF, but is different enough that wouldn't be much to share, and so
there'd be a lot of coding involved.

Stan




More information about the Binutils mailing list