Linking ELFs with a linker script

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

  1. brodeur235 macrumors newbie

    Aug 29, 2009
    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,


    Here's an ss:
  2. Cromulent macrumors 603


    Oct 2, 2006
    The Land of Hope and Glory
    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

    Aug 29, 2009

Share This Page