[llvm-bugs] [Bug 25202] New: unrecognized reloc 23

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 16 04:09:11 PDT 2015


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

            Bug ID: 25202
           Summary: unrecognized reloc 23
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: ismail at i10z.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

λ clang -v
clang version 3.8.0 (trunk 250389)
Target: x86_64-suse-linux
Thread model: posix
InstalledDir: /opt/clang/bin
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/5
Selected GCC installation: /usr/lib64/gcc/x86_64-suse-linux/5
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64

λ cat test.c
#include <stdio.h>

__thread double tlvar;

// following line is needed so get_value() is not inlined by compiler

double get_value() __attribute__((noinline));
double get_value() { return tlvar; }

int main()
{

  double f = 0.0;
  tlvar = 1.0;
  return 0;
}

λ clang -fuse-ld=lld2 test.c -lm
unrecognized reloc 23
clang-3.8: error: linker command failed with exit code 1 (use -v to see
invocation)

-- 
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/20151016/206155d3/attachment.html>


More information about the llvm-bugs mailing list