<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 - Sparc claims HasJIT=true, but doesn't have relocation support"
href="https://bugs.llvm.org/show_bug.cgi?id=47885">47885</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Sparc claims HasJIT=true, but doesn't have relocation support
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Sun
</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: Sparc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>andres@anarazel.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, venkatra@cs.wisc.edu
</td>
</tr></table>
<p>
<div>
<pre>Hi,
Due to a Debian build failure of Postgres, which uses LLVM for JIT compilation,
I noticed that the sparc target claims to have JIT support, but does not
actually support JIT compilation:
llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp :
extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSparcTargetInfo() {
RegisterTarget<Triple::sparc, /*HasJIT=*/true> X(getTheSparcTarget(),
"sparc",
"Sparc", "Sparc");
RegisterTarget<Triple::sparcv9, /*HasJIT=*/true> Y(
getTheSparcV9Target(), "sparcv9", "Sparc V9", "Sparc");
RegisterTarget<Triple::sparcel, /*HasJIT=*/true> Z(
getTheSparcelTarget(), "sparcel", "Sparc LE", "Sparc");
}
but there's no relocation processing support at all:
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
void RuntimeDyldELF::resolveRelocation(const SectionEntry &Section,
uint64_t Offset, uint64_t Value,
uint32_t Type, int64_t Addend,
uint64_t SymOffset, SID SectionID) {
So it appears that HasJIT should be set to false instead?
Regards,
Andres</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>