summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-04-19 11:32:27 +0000
committerRui Ueyama <ruiu@google.com>2017-04-19 11:32:27 +0000
commit29181007dfd5f1b467c4a767abd29388dc211878 (patch)
treebd643bcd73d20197a1777ee21fa169992425d9df
parent07c62c11748249612db59fe4c252180d341694a1 (diff)
downloadbcm5719-llvm-29181007dfd5f1b467c4a767abd29388dc211878.tar.gz
bcm5719-llvm-29181007dfd5f1b467c4a767abd29388dc211878.zip
Update comment.
llvm-svn: 300676
-rw-r--r--lld/ELF/Writer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index b4a25e63fa0..310b2c08679 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -1217,8 +1217,9 @@ template <class ELFT> void Writer<ELFT>::finalizeSections() {
for (OutputSection *Sec : OutputSections)
Sec->finalize<ELFT>();
- // 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<ELFT>(); });
OpenPOWER on IntegriCloud