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: unassignedb...@nondot.org
          Reporter: k...@redstar.de
                CC: llvm-bugs@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@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to