<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 --- - ARM inline assembly branch cannot reach "static" functions"
href="https://llvm.org/bugs/show_bug.cgi?id=23042">23042</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ARM inline assembly branch cannot reach "static" functions
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>axelheider@gmx.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>A brnach in ARM inline assembly cannot reach "static" functions.
---------------------------------------------
static void foo(void) { .... }
void bar(void)
{
__asm ("b foo");
}
---------------------------------------------
linking this with arm-none-eabi-ld fail with: "undefined reference to 'foo'.
However, when using this, everythign works fine:
---------------------------------------------
void bar(void)
{
__asm ("b %0"::"i"(foo));
}
---------------------------------------------
Given that the inline assembler seems well integrated into the compiler, is
there a reason why this is different. Is it possible that __asm ("b foo") could
simply be considered a shortcut form of __asm ("b %0"::"i"(foo)) ?</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>