[PATCH] D52830: [ELF] - Set sh_info and sh_link for .rela.plt sections.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 4 03:14:08 PDT 2018


grimar added inline comments.


================
Comment at: ELF/SyntheticSections.cpp:1498
+  // as the link to suppress the warnings reported by GNU tools like readelf.
+  Link = In.DynSymTab ? In.DynSymTab->getParent()->SectionIndex
+                      : In.SymTab->getParent()->SectionIndex;
----------------
ruiu wrote:
> Why don't you directly assign it to getParent()->Link?
Just tried to be consistent with the existent code. Fixed.


https://reviews.llvm.org/D52830





More information about the llvm-commits mailing list