[llvm-bugs] [Bug 38744] New: [IA][arm64] unable to process :abs_g3: relocations

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 28 10:44:46 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38744

            Bug ID: 38744
           Summary: [IA][arm64] unable to process :abs_g3: relocations
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ndesaulniers at google.com
                CC: kristof.beyls at gmail.com, llvm-bugs at lists.llvm.org,
                    oliver.stannard at arm.com, srhines at google.com

>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:
https://stackoverflow.com/questions/38570495/aarch64-relocation-prefixes

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180828/6fb03923/attachment-0001.html>


More information about the llvm-bugs mailing list