title: Where to get cross-linker?
body: <p>I found that providing few options to llvm-clang I can compile to other platform. This for example will compile for ios:</p>
  
  <p><code>clang -cc1 -triple arm-apple-darwin -emit-obj -mrelax-all -disable-free -main-file-name six.c -pic-level 1 -mdisable-fp-elim -masm-verbose -target-abi apcs-gnu -target-cpu arm7tdmi -msoft-float -mfloat-abi soft -target-feature +soft-float -target-feature +soft-float-abi -target-feature -neon  -ferror-limit 1 -fmessage-length 122 -stack-protector 1 -mstackrealign -fblocks -fsjlj-exceptions  -fcolor-diagnostics prog.c -o -c</code></p>
  
  <p>As a result you get the prog.o, which you need to copy to native platform and link with native ld. But object file is already compiled for that platform!</p>
  
  <p>Now the last step is to avoid using native linker on the remote. I need a cross-linker for that. But where to get one? Or does llvm contain one and I just need to use the right options? Or I need to compoile GNU LD with the support of cross-platform? From my experience, compiling LD is not possible without expert knowledge of it.</p>