[llvm-dev] [lld] Well lld support some advanced features like gnu linker in macOS?

gao ge via llvm-dev llvm-dev at lists.llvm.org
Wed Dec 13 23:22:45 PST 2017


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 !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171214/8e0b2cbd/attachment.html>


More information about the llvm-dev mailing list