Linking ELFs with a linker script

Discussion in 'Mac Programming' started by brodeur235, Aug 29, 2009.

  1. brodeur235 macrumors newbie

    Joined:
    Aug 29, 2009
    #1
    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/
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    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).
     
  3. brodeur235 thread starter macrumors newbie

    Joined:
    Aug 29, 2009

Share This Page