News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

GNU ld on Snow Leopard

Started by brodeur235, September 07, 2009, 01:26:42 AM

Previous topic - Next topic

brodeur235

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

hutch--

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.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php