<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 - [IA][arm64] unable to process :abs_g3: relocations"
   href="https://bugs.llvm.org/show_bug.cgi?id=38744">38744</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[IA][arm64] unable to process :abs_g3: relocations
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ndesaulniers@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>kristof.beyls@gmail.com, llvm-bugs@lists.llvm.org, oliver.stannard@arm.com, srhines@google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>From trying to assemble the Linux kernel with Clang, Clang's IA barfs on the
use of a few symbols meant to be relocations:

<instantiation>:7:12: error: immediate must be an integer in range [0, 65535].
 movz x30, :abs_g3:-142936536793088
           ^
<instantiation>:1:1: note: while in macro instantiation
mov_q x30, -142936536793088
^
arch/arm64/kernel/entry.S:282:2: note: while in macro instantiation
 tramp_alias x30, tramp_exit_native
 ^
/tmp/entry-5a0f31.s:1486:2: note: while in macro instantiation
 kernel_exit 0
 ^

Looks like there's errors for :abs_g3:, :abs_g2_nc:, :abs_g1_nc:, and
:abs_g0_nc:.

The author confirmed that this was relocation based, and this SO post seems to
be the most informative on the topic:
<a href="https://stackoverflow.com/questions/38570495/aarch64-relocation-prefixes">https://stackoverflow.com/questions/38570495/aarch64-relocation-prefixes</a></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>