[llvm-bugs] [Bug 26998] New: Linker complains 'R_AARCH64_ABS64 used with TLS symbol'
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Mar 19 05:31:09 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=26998
Bug ID: 26998
Summary: Linker complains 'R_AARCH64_ABS64 used with TLS
symbol'
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: AArch64
Assignee: unassignedbugs at nondot.org
Reporter: kai at redstar.de
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 16053
--> https://llvm.org/bugs/attachment.cgi?id=16053&action=edit
IR file demonstrating the bug
The attached file mars1.ll was generated from the following D code:
int array1[3];
void test()
{
array1[0] = 3;
}
array1 is a TLS variable. Compiling and linking with the commands
llc -filetype=obj mars1.ll
gcc -o cmain -g cmain.c mars1.o
results in the message
/usr/bin/ld: mars1.o(.debug_info+0x2c): R_AARCH64_ABS64 used with TLS symbol
_D5mars16array1G3i
cmain.c contains only:
extern void _D5mars14testFZv();
int main(int argc, char* argv[])
{
_D5mars14testFZv();
return 0;
}
LLVM: trunk at 263875
gcc: gcc version 4.9.2 (Ubuntu/Linaro 4.9.2-10ubuntu13)
--
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/20160319/120474c1/attachment.html>
More information about the llvm-bugs
mailing list