<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 --- - "Unknown ELF relocation type" assertion failure in llvm-mc for aarch64"
href="https://llvm.org/bugs/show_bug.cgi?id=24652">24652</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"Unknown ELF relocation type" assertion failure in llvm-mc for aarch64
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>Backend: AArch64
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mgabka@gmail.com
</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>The following piece of code is causing a hang in llvm-mc when built without
assertions,
and hit an assertion when llvm-mc is built with assertions:
.section test,"x"
.global string_table
string_table:
.byte 0xa
.byte 0xb
string_base_64: .byte string_table
.end
./bin/llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj test.s -o test.o
Unknown ELF relocation type
UNREACHABLE executed at
/home/mgabka/repos_dir/llvm_disslib/shoji/open_source/llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp:244!
Although this piece of code looks incorrect, it can be compiled with triple
defined as
-triple=armv7-eabi</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>