[llvm-bugs] [Bug 40086] New: llvm-objdump failed to compute relocation: R_X86_64_DTPOFF64

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 18 08:35:12 PST 2018


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

            Bug ID: 40086
           Summary: llvm-objdump failed to compute relocation:
                    R_X86_64_DTPOFF64
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-objdump
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: llvm-bugs at lists.llvm.org

This is very similar to bug 39992, but the fix for that issue did not fix this
issue for me:

For a simple input like the following:

// bar.cpp
thread_local int bar = 42;

int main(){
    return bar;
}

Compiling with clang and debug information, and running llvm-objdump produces
an error:
C:\llvm\build\Debug\bin\clang.exe --target=x86_64-pc-linux -c bar.cpp -g
C:\llvm\build\Debug\bin\llvm-objdump bar.o -d -S
bar.o:  file format ELF64-x86-64

Disassembly of section .text:
main:
error: failed to compute relocation: R_X86_64_DTPOFF64, Invalid data was
encountered while parsing the file
; int main(){
       0:       55      pushq   %rbp
...

I'm guessing the issue is a similar cause as bug 39992, but I haven't dug into
it yet.

-- 
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/20181218/77d55d93/attachment.html>


More information about the llvm-bugs mailing list