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: unassignedb...@nondot.org
Reporter: jh7370.2...@my.bristol.ac.uk
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs