Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

brodeur235

macrumors newbie
Original poster
Aug 29, 2009
3
0
I really need to be able to link object files with a specific linker script. Linux does it fine, but for some reason the version of ld that XCode installs doesn't support the "-T /file/path" option (to specify a linker script).... Help would be very much appreciated,

Brodeur235

Here's an ss: http://img137.imageshack.us/i/aaa.tif/
 
I really need to be able to link object files with a specific linker script. Linux does it fine, but for some reason the version of ld that XCode installs doesn't support the "-T /file/path" option (to specify a linker script).... Help would be very much appreciated,

Brodeur235

Here's an ss: http://img137.imageshack.us/i/aaa.tif/

First of all the ld provided by Apple is not GNU ld and as such has different properties. Secondly I would be surprised if it even managed to link correctly, Mac OS X does not use ELF binaries at all.

I've had a look through the Mac OS X ld documentation but unfortunately I couldn't see anything that would be of help to you. I would suggest though that you would most likely have better results if you compiled GNU ld from source and tried that instead (add a prefix to the binary name though otherwise you could get the two confused).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.