[PATCH] D58489: ELF: Remove dead code. NFCI.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 21 10:54:59 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL354607: ELF: Remove dead code. NFCI. (authored by pcc, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D58489?vs=187721&id=187825#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58489/new/

https://reviews.llvm.org/D58489

Files:
  lld/trunk/ELF/SyntheticSections.cpp


Index: lld/trunk/ELF/SyntheticSections.cpp
===================================================================
--- lld/trunk/ELF/SyntheticSections.cpp
+++ lld/trunk/ELF/SyntheticSections.cpp
@@ -1514,9 +1514,8 @@
   // When linking glibc statically, .rel{,a}.plt contains R_*_IRELATIVE
   // relocations due to IFUNC (e.g. strcpy). sh_link will be set to 0 in that
   // case.
-  InputSection *SymTab = Config->Relocatable ? In.SymTab : In.DynSymTab;
-  if (SymTab && SymTab->getParent())
-    getParent()->Link = SymTab->getParent()->SectionIndex;
+  if (In.DynSymTab && In.DynSymTab->getParent())
+    getParent()->Link = In.DynSymTab->getParent()->SectionIndex;
   else
     getParent()->Link = 0;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58489.187825.patch
Type: text/x-patch
Size: 703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190221/9608f7a2/attachment.bin>


More information about the llvm-commits mailing list