<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - LinkOnceAnyLinkage doesn't seem to be handled well within ORC JIT (regression)"
href="https://bugs.llvm.org/show_bug.cgi?id=32276">32276</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LinkOnceAnyLinkage doesn't seem to be handled well within ORC JIT (regression)
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>4.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>georgellvmb@oss3d.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>There seems to be a regression in how LinkOnceAnyLinkage is handled in ORC JIT.
Specifically, inner symbols of the module are passed to the Resolver's
findSymbolInLogicalDylib, which then cannot resolve them via
compilerLayer.findSymbol(name,false)
(the above call returns nullptr)
This happens for symbols that have LinkOnceAnyLinkage. Iterating over the
module symbols (after module loading) and changing their linkage to
ExternalLinkage or InternalLinkage prevents symbols from being passed to
findSymbolInLogicalDylib, and things work as before.
This problem did not occur with LLVM 3.9.1 release.</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>