diff options
author | Russell Gallop <russell.gallop@gmail.com> | 2019-10-10 14:50:02 +0000 |
---|---|---|
committer | Russell Gallop <russell.gallop@gmail.com> | 2019-10-10 14:50:02 +0000 |
commit | acdb89e153e76b3ed3119c01b44a104f7a97f8a6 (patch) | |
tree | 9668d5c1394dd59068bd5589dcf7e02fec276678 | |
parent | de87c07e876a24b77b27add95a85cfe5e5ec83ac (diff) |
[LLD][ELF] Fix stale comments about doing ICF
Differential Revision: https://reviews.llvm.org/D68396
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@374362 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | ELF/Driver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ELF/Driver.cpp b/ELF/Driver.cpp index 616718b69..96257a4c7 100644 --- a/ELF/Driver.cpp +++ b/ELF/Driver.cpp @@ -1915,9 +1915,10 @@ template <class ELFT> void LinkerDriver::link(opt::InputArgList &args) { // Replace common symbols with regular symbols. replaceCommonSymbols(); - // Do size optimizations: garbage collection, merging of SHF_MERGE sections - // and identical code folding. + // Split SHF_MERGE and .eh_frame sections into pieces in preparation for garbage collection. splitSections<ELFT>(); + + // Garbage collection and removal of shared symbols from unused shared objects. markLive<ELFT>(); demoteSharedSymbols(); |