[LLVMdev] Assertion fails resolving R_X86_64_PC32 relocation

Aliaksei Zasenka listhex at gmail.com
Mon May 26 08:51:06 PDT 2014


Hi llvm-community,

I use llc (3.4-final) to generate object file:

*llc code.bc -mtriple=x86_64-pc-win32-elf -mcpu=x86-64
-filetype=obj -code-model=large -o=code.o*

then I load it with *RuntimeDyld + SectionMemoryManager* in my app.

I faced the problem described in 15356
<http://llvm.org/bugs/show_bug.cgi?id=15356>bug. Debug assertion fails at
/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp:273.
I noticed that R_X86_64_PC32 relocations are used only within .eh_frame
section. Why aren't R_X86_64_64 relocations used in that case?

Is there any working solution of this problem?

Thank you in advance.

--
Best regards,
Alexey Zasenko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140526/1cc9b0e1/attachment.html>


More information about the llvm-dev mailing list