Test case please.<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 16, 2012 at 11:31 AM, Roman Divacky <span dir="ltr"><<a href="mailto:rdivacky@freebsd.org" target="_blank">rdivacky@freebsd.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: rdivacky<br>
Date: Thu Aug 16 13:31:29 2012<br>
New Revision: 162035<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=162035&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=162035&view=rev</a><br>
Log:<br>
Add PPC64 relocations definitions, by Adhemerval Zanella.<br>
<br>
Modified:<br>
llvm/trunk/include/llvm/Support/ELF.h<br>
<br>
Modified: llvm/trunk/include/llvm/Support/ELF.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ELF.h?rev=162035&r1=162034&r2=162035&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ELF.h?rev=162035&r1=162034&r2=162035&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm/Support/ELF.h (original)<br>
+++ llvm/trunk/include/llvm/Support/ELF.h Thu Aug 16 13:31:29 2012<br>
@@ -441,6 +441,7 @@<br>
R_MICROBLAZE_COPY = 21<br>
};<br>
<br>
+// ELF Relocation types for PPC32<br>
enum {<br>
R_PPC_NONE = 0, /* No relocation. */<br>
R_PPC_ADDR32 = 1,<br>
@@ -459,6 +460,21 @@<br>
R_PPC_REL32 = 26<br>
};<br>
<br>
+// ELF Relocation types for PPC64<br>
+enum {<br>
+ R_PPC64_ADDR16_LO = 4,<br>
+ R_PPC64_ADDR16_HA = 6,<br>
+ R_PPC64_ADDR14 = 7,<br>
+ R_PPC64_REL24 = 10,<br>
+ R_PPC64_ADDR64 = 38,<br>
+ R_PPC64_TOC16 = 47,<br>
+ R_PPC64_TOC16_LO = 48,<br>
+ R_PPC64_TOC16_HI = 49,<br>
+ R_PPC64_TOC16_HA = 50,<br>
+ R_PPC64_TOC = 51,<br>
+ R_PPC64_TOC16_DS = 63<br>
+};<br>
+<br>
// ARM Specific e_flags<br>
enum { EF_ARM_EABIMASK = 0xFF000000U };<br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>