[llvm-dev] [lld] Well lld support some advanced features like gnu linker in macOS?
Rafael Avila de Espindola via llvm-dev
llvm-dev at lists.llvm.org
Fri Dec 15 07:22:57 PST 2017
I don't think the MachO side of lld is currently being developed.
Cheers,
Rafael
gao ge via llvm-dev <llvm-dev at lists.llvm.org> writes:
> Hi, llvm developers. I can't find a lld-dev mail list, so just mail to here.
>
> ld in macOS is legacy, lld a more modern linker. I have test,
> `-fuse-ld=lld, -Wl,--as-needed `, but its output is:
>
> /usr/local/bin/ld.lld: error: unknown argument: -dynamic
>
> /usr/local/bin/ld.lld: error: unknown argument: -arch
>
> /usr/local/bin/ld.lld: error: unknown argument: -search_paths_first
>
> /usr/local/bin/ld.lld: error: unknown emulation: acosx_version_min
>
> /usr/local/bin/ld.lld: error: unable to find library -lto_library
>
> /usr/local/bin/ld.lld: error:
> /usr/local/Cellar/llvm/5.0.0/lib/libLTO.dylib: invalid data encoding
>
> Seems lld is working in progress. I hope lld will support some advanced
> features like `--as-need` `--start-group` `--end-group` flags in macOS,
> they are very useful !
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
More information about the llvm-dev
mailing list