llvm-ld and native executables

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

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