[LLVMbugs] [Bug 18554] New: ARM: debuginfo for tls variable contains wrong relocation

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jan 19 22:17:48 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=18554

            Bug ID: 18554
           Summary: ARM: debuginfo for tls variable contains wrong
                    relocation
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: kai at redstar.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

If you compile the following C program with debug info (-g)

__thread int x;

then gcc 4.8 generates in section .debug_info

    .word x(tlsldo)

but clang/LLVM generates

    .long x

This results in an error during link time. (All ARMv7.)

Found while porting LDC to the ARM platform.

-- 
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/20140120/25fe5d37/attachment.html>


More information about the llvm-bugs mailing list