[PATCH] D37837: Keep some relocations with undefined weak symbols

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 14 17:28:18 PDT 2017


ruiu added inline comments.


================
Comment at: ELF/Driver.cpp:1012-1013
 
+  Config->HasDynSymTab = !SharedFile<ELFT>::Instances.empty() || Config->Pic ||
+                         Config->ExportDynamic;
+
----------------
davide wrote:
> Maybe you can add a comment here? I remember the rule now, but I won't in a bit :)
Since this is computed based on other configurations, I'd move this to `setConfigs` because that's where other non-command-line parameters are set.


https://reviews.llvm.org/D37837





More information about the llvm-commits mailing list