From 29181007dfd5f1b467c4a767abd29388dc211878 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Wed, 19 Apr 2017 11:32:27 +0000 Subject: [PATCH] Update comment. llvm-svn: 300676 --- lld/ELF/Writer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index b4a25e63fa02..310b2c086795 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1217,8 +1217,9 @@ template void Writer::finalizeSections() { for (OutputSection *Sec : OutputSections) Sec->finalize(); - // Some sections may require compression. That happens for - // debug sections when --compress-debug-sections option used. + // If -compressed-debug-sections is specified, we need to compress + // .debug_* sections. Do it right now because it changes the size of + // output sections. parallelForEach(OutputSections.begin(), OutputSections.end(), [](OutputSection *S) { S->maybeCompress(); });