[LLVMbugs] [Bug 11981] New: ARM backend does not emit TLS ELF attribute for undefined TLS symbols

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 11 01:14:18 PST 2012


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: unassignedbugs at nondot.org
        ReportedBy: pdox at google.com
                CC: llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list