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: unassignedclangb...@nondot.org
Reporter: ndesaulni...@google.com
CC: kristof.be...@gmail.com, llvm-bugs@lists.llvm.org,
oliver.stann...@arm.com, srhi...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs