<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 4, 2013 at 11:40 AM, Jack Carter <span dir="ltr"><<a href="mailto:jack.carter@imgtec.com" target="_blank">jack.carter@imgtec.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 11/04/2013 11:15 AM, Eric Christopher wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
<br>
<br>
On Mon, Nov 4, 2013 at 11:05 AM, Shankar Easwaran<br></div><div class="im">
<<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a> <mailto:<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.<u></u>org</a>>> wrote:<br>
<br>
    Hi,<br>
<br>
    I was looking at the ARM ABI<br></div>
    docs(<a href="http://infocenter.arm." target="_blank">http://infocenter.arm.</a>__<u></u>com/help/topic/com.arm.doc.__<u></u>ihi0044e/IHI0044E_aaelf.pdf<br>
    <<a href="http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044e/IHI0044E_aaelf.pdf" target="_blank">http://infocenter.arm.com/<u></u>help/topic/com.arm.doc.<u></u>ihi0044e/IHI0044E_aaelf.pdf</a>>)<div class="im">
<br>
    and they mention.<br>
<br>
    "A binary file may use REL or RELA relocations or a mixture of the<br>
    two (but multiple relocations for the same<br>
    address must use only one type)."<br>
<br>
    Does LLVM emit rel/rela relocations with ARM ?<br>
<br>
<br>
I hope not. Ew.<br>
</div></blockquote>
<br>
The only reason this is Ew is that llvm has decided not to prepare for it. There shouldn't be a single rel/rela type for a given output. The one that works for the given situation for the given section should be used. The mechanism for handling both should not be complicated.<br>

<br>
There are rules about relocation order and multiple relocations can operate on a single point in the binary. There is no reason a section of .rel relocations cannot operate alongside a section of .rela relocations.<br>
<br></blockquote><div><br></div><div>True, however, I can think of no reasonable situation that you'd want to do that. RELA has been around long enough that it's the default for just about any ELF platform so the amount of legacy code is just someone not implementing RELA as they should.</div>
<div><br></div><div>-eric</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Unfortunately I believe the single rel/rela type is part and parcel to gnu as well and I have resigned myself to going with the flow for now.<br>
<br>
Jack<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
-eric<br>
<br>
    Any tests ?<br>
<br>
    Thanks<br>
<br>
    Shankar Easwaran<br>
<br>
    --<br>
    Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,<br>
    hosted by the Linux Foundation<br>
<br></div>
    ______________________________<u></u>___________________<br>
    LLVM Developers mailing list<br>
    <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <mailto:<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>

    <a href="http://lists.cs.uiuc.edu/__mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/__<u></u>mailman/listinfo/llvmdev</a><br>
    <<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a>><div class="im"><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
<br>
</div></blockquote>
<br>
<br>
</blockquote></div><br></div></div>