forked from OSchip/llvm-project
[LLD][ELF] Fix stale comments about doing ICF
Differential Revision: https://reviews.llvm.org/D68396 llvm-svn: 374362
This commit is contained in:
parent
a5e65c1cf7
commit
6d6ec1b869
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue