LLVM: llvm-as, llvm-ld and so on not contained in FreeBSD core contrib?

Roman Divacky rdivacky at freebsd.org
Sat Jun 25 08:27:15 UTC 2011

On Sat, Jun 25, 2011 at 09:57:52AM +0200, Hartmann, O. wrote:
> Hello.
> Just for my couriosity: I'm missing llvm-as, llvm-ld and other binutils 
> from LLVM and was wondering why they are contained in the port's llvm 
> collection but not in FreeBSD's source contribution.
There's no use for these utilities in FreeBSD base system.

> I build FreeBSD 9 with CLANG. But as a missing llvm-as and llvm-ld (or 
> llvm-ar) would imply, the binaries are generated via binutils from 
> theGNU suite, aren't they?

llvm-{as,ld,ar} are not replacements for those from binutils. llvm-*
work on the llvm bitcode only and are of no use for normal object

dim@ made a patch that adds those utilities if you really need them


By default when you compile things with clang it uses its own assembler
(ie. it goes directly from C -> .o) so typically only gnu ld is used
in the compilation chain.


More information about the freebsd-current mailing list