[PATCH] D62994: [ELF] Delete R_PPC64_CALL_PLT from isRelExpr()

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 6 22:33:21 PDT 2019


MaskRay created this revision.
MaskRay added reviewers: ruiu, sfertile.
Herald added subscribers: llvm-commits, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

It was added by D46654 <https://reviews.llvm.org/D46654> but is actually never used.
R_PPC64_CALL_PLT (was: R_PPC_CALL_PLT) is a static link-time constant.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D62994

Files:
  ELF/Relocations.cpp


Index: ELF/Relocations.cpp
===================================================================
--- ELF/Relocations.cpp
+++ ELF/Relocations.cpp
@@ -379,8 +379,7 @@
 // file (PC, or GOT for example).
 static bool isRelExpr(RelExpr Expr) {
   return oneof<R_PC, R_GOTREL, R_GOTPLTREL, R_MIPS_GOTREL, R_PPC64_CALL,
-               R_PPC64_CALL_PLT, R_PPC64_RELAX_TOC, R_AARCH64_PAGE_PC,
-               R_RELAX_GOT_PC>(Expr);
+               R_PPC64_RELAX_TOC, R_AARCH64_PAGE_PC, R_RELAX_GOT_PC>(Expr);
 }
 
 // Returns true if a given relocation can be computed at link-time.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62994.203496.patch
Type: text/x-patch
Size: 573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190607/80ff0182/attachment.bin>


More information about the llvm-commits mailing list