Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jun 2011 15:36:53 +0200
From:      Erik Cederstrand <erik@cederstrand.dk>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        toolchain@freebsd.org
Subject:   Re: Adding additional llvm/clang goodies (was: Re: llvm-ia64 is off the ground...)
Message-ID:  <ADD45CD3-A811-4A72-8E55-1B6F1FBA39D8@cederstrand.dk>
In-Reply-To: <4DFA783D.8040207@FreeBSD.org>
References:  <DE479A12-24B5-4947-90CF-702AA234BE39@xcllnt.net> <20110610072512.GA35144@freebsd.org> <5A6AC098-FB0D-474A-B92D-190121CA400F@xcllnt.net> <4DFA783D.8040207@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Den 16/06/2011 kl. 23.40 skrev Dimitry Andric:

> Here is a diff to do just that, when you define WITH_CLANG_EXTRAS in
> src.conf, in the environment, or on the make command line.  In
> particular, it will build and install the following extras:
>=20
> * bugpoint
> * llc
> * lli
> * llvm-ar
> * llvm-as
> * llvm-bcanalyzer
> * llvm-diff
> * llvm-dis
> * llvm-extract
> * llvm-ld
> * llvm-link
> * llvm-mc
> * llvm-nm
> * llvm-objdump
> * llvm-prof
> * llvm-ranlib
> * llvm-rtdyld
> * llvm-stub
> * macho-dump
> * opt

Does anyone have an overview of which of these are actually useable on =
FreeBSD ELF binaries? Here's my impression from the audience (please =
correct me if I'm wrong):

* llvm-nm and llvm-objdump have been converted to Michael Spencer's =
object file library =
(http://www.llvm.org/devmtg/2010-11/Spencer-ObjectFiles.pdf) and should =
work on our binaries.

* lvm-ld only works on LLVM bitcode and either doesn't produce ELF =
binaries or uses binutils ld for this. Michael Spencer has plans for an =
llvm-ld that can replace binutils ld, but it's probably at least a year =
before something useful is ready. It would be great because it would =
bring LTO to FreeBSD.

* llvm-as is used by us already on i386/amd64(?)

* llvm-ar and llvm-ranlib are less useful as we have our own ar and =
ranlib by kaiw@


I don't know about the rest.

Thanks,
Erik=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ADD45CD3-A811-4A72-8E55-1B6F1FBA39D8>