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

             Bug #: 11981
           Summary: ARM backend does not emit TLS ELF attribute for
                    undefined TLS symbols
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Created attachment 8039
  --> http://llvm.org/bugs/attachment.cgi?id=8039
tls bitcode example

Create file foo.ll:

@foo = external thread_local global i32

define i32 @bar() nounwind {
entry:
  %0 = load i32* @foo, align 4
  ret i32 %0
}

Compile for ARM:
$ llc -march=arm foo.ll -o foo.o -filetype=obj

readelf reports:

     8: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND foo

The type of foo should be TLS, not NOTYPE.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to