From: Hal Finkel <hfinkel@anl.gov>
Date: Thu, 8 Oct 2015 18:30:27 +0000 (+0000)
Subject: [PowerPC] Add R_PPC64_GLOB_DAT and R_PPC64_RELATIVE to PowerPC64.def
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ba239d93bf01091ddf850bb52a0a2ef22f943d2f;p=oota-llvm.git

[PowerPC] Add R_PPC64_GLOB_DAT and R_PPC64_RELATIVE to PowerPC64.def

These are not used by LLVM proper, but will be used by upcoming commits to lld
(and will receive test coverage there).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249714 91177308-0d34-0410-b5e6-96231b3b80d8
---

diff --git a/include/llvm/Support/ELFRelocs/PowerPC64.def b/include/llvm/Support/ELFRelocs/PowerPC64.def
index 218a856cf0e..3a47c5a0757 100644
--- a/include/llvm/Support/ELFRelocs/PowerPC64.def
+++ b/include/llvm/Support/ELFRelocs/PowerPC64.def
@@ -26,7 +26,9 @@
 #undef R_PPC64_GOT16_LO
 #undef R_PPC64_GOT16_HI
 #undef R_PPC64_GOT16_HA
+#undef R_PPC64_GLOB_DAT
 #undef R_PPC64_JMP_SLOT
+#undef R_PPC64_RELATIVE
 #undef R_PPC64_REL32
 #undef R_PPC64_ADDR64
 #undef R_PPC64_ADDR16_HIGHER
@@ -110,7 +112,9 @@ ELF_RELOC(R_PPC64_GOT16,                14)
 ELF_RELOC(R_PPC64_GOT16_LO,             15)
 ELF_RELOC(R_PPC64_GOT16_HI,             16)
 ELF_RELOC(R_PPC64_GOT16_HA,             17)
+ELF_RELOC(R_PPC64_GLOB_DAT,             20)
 ELF_RELOC(R_PPC64_JMP_SLOT,             21)
+ELF_RELOC(R_PPC64_RELATIVE,             22)
 ELF_RELOC(R_PPC64_REL32,                26)
 ELF_RELOC(R_PPC64_ADDR64,               38)
 ELF_RELOC(R_PPC64_ADDR16_HIGHER,        39)