diff options
Diffstat (limited to 'ELF/Writer.cpp')
| -rw-r--r-- | ELF/Writer.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ELF/Writer.cpp b/ELF/Writer.cpp index 24c3e1ee207c1..5feff456ffa96 100644 --- a/ELF/Writer.cpp +++ b/ELF/Writer.cpp @@ -427,13 +427,14 @@ template <class ELFT> void Writer<ELFT>::run() { if (errorCount()) return; + Script->assignAddresses(); + // 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, - [](OutputSection *Sec) { Sec->maybeCompress<ELFT>(); }); + for (OutputSection *Sec : OutputSections) + Sec->maybeCompress<ELFT>(); - Script->assignAddresses(); Script->allocateHeaders(Phdrs); // Remove empty PT_LOAD to avoid causing the dynamic linker to try to mmap a |
