<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Gold 2.24 on ARMv7 Thumb2 fails to self-host Clang/LLVM"
href="https://llvm.org/bugs/show_bug.cgi?id=27679">27679</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Gold 2.24 on ARMv7 Thumb2 fails to self-host Clang/LLVM
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>renato.golin@linaro.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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:
* GOOD:
bhi.n d4dae
<_ZN12_GLOBAL__N_119RegisterInfoEmitter13runTargetDescERN4llvm11raw_ostreamERNS1_13CodeGenT
...
bl 10315c <_ZN4llvm11raw_ostream5writeEPKcj>
...
b.n d4dc6
<_ZN12_GLOBAL__N_119RegisterInfoEmitter13runTargetDescERN4llvm11raw_ostreamERNS1_13CodeGenTar
* BAD:
bhi.n d29be
<_ZN12_GLOBAL__N_119RegisterInfoEmitter13runTargetDescERN4llvm11raw_ostreamERNS1_13CodeGenT
...
bl 100d6c <_ZN4llvm11raw_ostream5writeEPKcj>
...
b.n d29d6
<_ZN12_GLOBAL__N_119RegisterInfoEmitter13runTargetDescERN4llvm11raw_ostreamERNS1_13CodeGenTar
Both binaries attached for reference.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>