llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.64k stars 11.37k forks source link

Gold 2.24 on ARMv7 Thumb2 fails to self-host Clang/LLVM #28053

Open rengolin opened 8 years ago

rengolin commented 8 years ago
Bugzilla Link 27679
Version unspecified
OS Linux
Attachments bad tblgen, good tblgen
CC @zatrazz,@vns-mn,@kbeyls

Extended Description

When using Gold 2.24 on Thumb2, llvm-tlbgen fails. BFD ld of the same version works fine.

Stack dump:
0.  Program arguments: /home/linaro/devel/llvm/bisect/build2/bin/llvm-tblgen -gen-intrinsic -I /home/linaro/devel/llvm/bisect/llvm/include/llvm/IR -I /home/linaro/devel/llvm/bisect/llvm/lib/Target -I /home/linaro/devel/llvm/bisect/llvm/include /home/linaro/devel/llvm/bisect/llvm/include/llvm/IR/Intrinsics.td -o /home/linaro/devel/llvm/bisect/build2/include/llvm/IR/Intrinsics.gen.tmp 
Bus error (core dumped)

Luckily, gold is failing to link stage2 llvm-tblgen, instead of stage1 Clang, which would be a lot harder to pick up.

The main difference seems to be on branch literals, so likely some relocation problem:

rengolin commented 8 years ago

Clang/LLVM revision 268875