[PATCH] D46876: [PPC64] Add R_PPC64_IRELATIVE relocation
Sean Fertile via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 15 06:22:38 PDT 2018
sfertile created this revision.
sfertile added reviewers: syzaara, hfinkel, echristo, ruiu.
Herald added a subscriber: nemanjai.
Patch adds the R_PPC64_IRELATIVE relocation for IFUNC support. This relocation is used by the linker so the accompanying test is in lld.
Repository:
rL LLVM
https://reviews.llvm.org/D46876
Files:
include/llvm/BinaryFormat/ELFRelocs/PowerPC64.def
Index: include/llvm/BinaryFormat/ELFRelocs/PowerPC64.def
===================================================================
--- include/llvm/BinaryFormat/ELFRelocs/PowerPC64.def
+++ include/llvm/BinaryFormat/ELFRelocs/PowerPC64.def
@@ -89,6 +89,7 @@
#undef R_PPC64_DTPREL16_HIGHESTA
#undef R_PPC64_TLSGD
#undef R_PPC64_TLSLD
+#undef R_PPC64_IRELATIVE
#undef R_PPC64_REL16
#undef R_PPC64_REL16_LO
#undef R_PPC64_REL16_HI
@@ -175,6 +176,7 @@
ELF_RELOC(R_PPC64_DTPREL16_HIGHESTA, 106)
ELF_RELOC(R_PPC64_TLSGD, 107)
ELF_RELOC(R_PPC64_TLSLD, 108)
+ELF_RELOC(R_PPC64_IRELATIVE, 248)
ELF_RELOC(R_PPC64_REL16, 249)
ELF_RELOC(R_PPC64_REL16_LO, 250)
ELF_RELOC(R_PPC64_REL16_HI, 251)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46876.146802.patch
Type: text/x-patch
Size: 769 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180515/6fe7ec55/attachment.bin>
More information about the llvm-commits
mailing list