[LLVMdev] llvm-ld and native executables

Eli Friedman eli.friedman at gmail.com
Wed Jun 29 11:50:22 PDT 2011


On Wed, Jun 29, 2011 at 11:32 AM, llvmjp
<jpbonn-keyword-llvm.7c175e at corniceresearch.com> wrote:
> Does llvm-ld support linker scripts or have a mechanism for specifying
> where sections should be loaded?  It's unclear to me what the -native
> option really does.
>
> Is llvm-ld intended to be a full replacement for ld?

No, it's not a replacement; the supported way to do LTO is using a
native linker which supports LTO plugins. (On Mac, everything should
hopefully just work; on anything ELF, see
http://llvm.org/docs/GoldPlugin.html.)

The -native options just forces llvm-ld to actually build a normal executable.

-Eli




More information about the llvm-dev mailing list