[llvm-dev] Problems using Clang with LLD on embedded ARM

Joerg Sonnenberger via llvm-dev llvm-dev at lists.llvm.org
Mon Feb 27 15:19:44 PST 2017


On Mon, Feb 27, 2017 at 10:51:09PM +0000, Renato Golin via llvm-dev wrote:
> On 26 February 2017 at 11:10, Sean Silva <chisophugis at gmail.com> wrote:
> > For that triple, Clang seems to be calling into GCC driver
> > (/usr/bin/arm-none-eabi-gcc) for linking and GCC doesn't recognize
> > -fuse-ld=lld (supposedly -fuse-ld=gold selects ld.gold, -fuse-ld=bfd selects
> > ld.bfd and you would expect -fuse-lld=lld to select ld.lld, but it doesn't
> > work like that apparently).
> 
> This is really odd, but since LLD is not officially supported on ARM
> yet (Peter is almost there!), we haven't got around using it for
> anything serious.
> 
> It smells like yet-another clang driver kerfuffle when cross-compiling.

Not really. The generic none target has a fallback in clang to GCC,
because it can't know by definition how to link for such a target.
At this point in time it might be better to just error out...

Joerg


More information about the llvm-dev mailing list