[PATCH] D53993: [ELF] Change sh_link of .rel{, a}.plt to make GNU strip happy

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 1 15:22:39 PDT 2018


ruiu added inline comments.


================
Comment at: ELF/SyntheticSections.cpp:1497
+  // case.
+  if (InputSection *SymTab = Config->Relocatable ? In.SymTab : In.DynSymTab)
+    getParent()->Link = SymTab->getParent()->SectionIndex;
----------------
Please move the assignment out of the `if`.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D53993





More information about the llvm-commits mailing list