https://llvm.org/bugs/show_bug.cgi?id=24135

            Bug ID: 24135
           Summary: R_ARM_TLS_DTPMOD32 uses incorrect symbol when
                    generated for static __thread variable
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

This bug seems to be arm-only, testing for x86 x86_64 yelds expected
ELF_R_SYM(r_info) == 0 - compiling for arm produces following relocation:

...
00003f7c  00000111 R_ARM_TLS_DTPMOD32     00003e20   .tbss
...

     1: 00003e20     0 SECTION LOCAL  DEFAULT   17 


Here is the test I was comliling

static __thread int t = 0;

extern "C" int* get_thread_local_int() {
  return &t;
}

-- 
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