<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 - lld/mac: Implement support for linker optimization hints (.loh)"
href="https://bugs.llvm.org/show_bug.cgi?id=51055">51055</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld/mac: Implement support for linker optimization hints (.loh)
</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>All
</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>MachO
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nicolasweber@gmx.de
</td>
</tr>
<tr>
<th>CC</th>
<td>gkm@fb.com, jezreel@gmail.com, llvm-bugs@lists.llvm.org, smeenai@fb.com
</td>
</tr></table>
<p>
<div>
<pre>LLVM supports `.loh` directives
(llvm/trunk/test/MC/AArch64/arm64-directive_loh.s). Per
<a href="https://reviews.llvm.org/D49929">https://reviews.llvm.org/D49929</a>:
"""
The hints are there so that the linker can turn (non-adjacent) ADRP/ADD
sequences, and similar, into ADR/NOP if the referenced symbol ends up close
enough; this saves a cycle or so on Apple CPUs. To do that the compiler marks
instruction-pairs used to generate a single address and saves that data off in
a special MachO load command. I suppose it is sort of a souped-up relocation
which specifies two addresses to be relocated instead of just one.
"""
I think we don't support that yet in lld.</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>