https://bugs.llvm.org/show_bug.cgi?id=42853
Bug ID: 42853
Summary: LLD chokes on R_AARCH64_TLSLE_MOVW_TPREL_G0
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: ELF
Assignee: unassignedb...@nondot.org
Reporter: j...@google.com
CC: llvm-bugs@lists.llvm.org, peter.sm...@linaro.org
Created attachment 22327
--> https://bugs.llvm.org/attachment.cgi?id=22327&action=edit
Contains exp.s and var.c, the files needed to reproduce the issue.
LLD is unable to link objects containing `R_AARCH64_TLSLE_MOVW_TPREL_G0`
relocations. It fails with the error:
ld.lld: error: exp.o:(.text+0x0): unrecognized relocation
R_AARCH64_TLSLE_MOVW_TPREL_G0
This is still failing at HEAD (tested at r367451). It looks like the failure
was introduced at r358950, lld built at r358949 can successfully link. A small
reproducer is attached, the issue can be reproduced like so:
$ clang --target=aarch64-pc-linux-gnu -c exp.s
$ clang --target=aarch64-pc-linux-gnu -c var.c
$ ld.lld -o/dev/null exp.o var.o
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs