The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: brodeur235 on September 07, 2009, 01:26:42 AM

Title: GNU ld on Snow Leopard
Post by: brodeur235 on September 07, 2009, 01:26:42 AM
I want to be able to test build and run my OS project on my mac partition. To do this, I need a few tools: bochs emulator, nasm assembler, and GNU's ld linker. I've got the first two working, but the latter has been a problem. The ld that comes with XCode is apparently not GNU and does not support linker scripts, which I need support for. I downloaded the source to ld, with the understanding that since OS X is unix based, it would build fine, but it didn't. I can't remember the exact error I got, but it was something to the effect of: "Target Darwin is not supported by ld." Darwin is the name of OS X's unix base... What can I do?

Brodeur235
Title: Re: GNU ld on Snow Leopard
Post by: hutch-- on September 07, 2009, 03:07:26 AM
Probably the best you can do is find out what linker is used when building x86 mac code. I would have a good look at the GNU sites to see if there is any variation in versions for the LD code that may suit an x86 mac. They must use something to build executable files with as there is enough of it around.