<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 --- - llvm-objdump prints unknown for relocation info on PPC"
href="https://llvm.org/bugs/show_bug.cgi?id=25124">25124</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-objdump prints unknown for relocation info on PPC
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</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>llvm-dis
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kyle+llvm@iteratee.net
</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 llvm-objdump from head to disassemble a pic object file, with
llvm-objdump all of the relocations are marked as unknown:
__cxx_global_var_init:
0: 00 00 4c 3c addis 2, 12, 0
0000000000000000: R_PPC64_REL16_HA Unknown
4: 00 00 42 38 addi 2, 2, 0
0000000000000004: R_PPC64_REL16_LO Unknown
8: 00 00 62 3c addis 3, 2, 0
0000000000000008: R_PPC64_TOC16_HA Unknown
c: 00 00 63 38 addi 3, 3, 0
000000000000000c: R_PPC64_TOC16_LO Unknown
The same section from binutils objdump gives:
0000000000000000 <__cxx_global_var_init>:
0: 00 00 4c 3c addis r2,r12,0
0: R_PPC64_REL16_HA .TOC.
4: 00 00 42 38 addi r2,r2,0
4: R_PPC64_REL16_LO .TOC.+0x4
8: 00 00 62 3c addis r3,r2,0
8: R_PPC64_TOC16_HA
_ZGVN7wrapper7wrappedI1AE13unique_numberE
c: 00 00 63 38 addi r3,r3,0
c: R_PPC64_TOC16_LO
_ZGVN7wrapper7wrappedI1AE13unique_numberE</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>