[llvm-bugs] [Bug 42853] New: LLD chokes on R_AARCH64_TLSLE_MOVW_TPREL_G0
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jul 31 14:02:40 PDT 2019
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: unassignedbugs at nondot.org
Reporter: jkz at google.com
CC: llvm-bugs at lists.llvm.org, peter.smith at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190731/28cc0f28/attachment.html>
More information about the llvm-bugs
mailing list