<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 --- - lld does not handle "3-in-1" relocations used by MIPS N64 ABI"
href="https://llvm.org/bugs/show_bug.cgi?id=27880">27880</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld does not handle "3-in-1" relocations used by MIPS N64 ABI
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>emaste@freebsd.org
</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>Attempting to build FreeBSD/mips64 with LLD fails when linking libc.so, with
many "relocation Unknown cannot be used when making a shared object; recompile
with -fPIC." errors.
The MIPS N64 ABI includes three separate relocation types in one rel/rela
entry, encoded as three bytes in the standard type field (per other
architectures) of r_info.
For example, the type field could contain 0x51807, which is
0x07 R_MIPS_GPREL16
0x18 R_MIPS_SUB
0x05 R_MIPS_HI16
(The error reports "relocation Unknown" because of course there's no one MIPS
relocation with type 0x51807)</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>