<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">I ran into a similar error a while back
and it turned out to be user error on my part. I had relocated
some of the sections in the object file, but not others. As a
result, I'd ended up with one (unrelocated) section with a
reference to another (relocated) section which was more than 32
bits away. You may want to double check your memory layout. What
caught my eye about your question was that ".eh_frame" was one of
the sections in question for me too. <br>
<br>
Philip<br>
<br>
On 05/26/2014 08:51 AM, Aliaksei Zasenka wrote:<br>
</div>
<blockquote
cite="mid:CAJGtzLMPUcLY59xD6tPy9aq4m_-S8QBg8eXP-LGq2_657g3vPg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi llvm-community,<br>
<br>
</div>
I use llc (3.4-final) to generate object file:<br>
<br>
<i>llc code.bc -mtriple=x86_64-pc-win32-elf -mcpu=x86-64
-filetype=obj -code-model=large -o=code.o</i><br>
<br>
</div>
then I load it with <i>RuntimeDyld + SectionMemoryManager</i>
in my app.<br>
<br>
I faced the problem described in <a
moz-do-not-send="true"
href="http://llvm.org/bugs/show_bug.cgi?id=15356">15356
</a><a moz-do-not-send="true">bug</a>. Debug assertion
fails at
/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp:273.<br>
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? <br>
</div>
<div><br>
</div>
<div>Is there any working solution of this problem?<br>
</div>
<br>
</div>
Thank you in advance.<br>
<br>
--<br>
<font style="font-size:9pt" color="#6b6b6b" face="Tahoma">Best
regards,</font><br>
</div>
Alexey Zasenko<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
</body>
</html>