diff options
Diffstat (limited to 'lld/ELF/Writer.cpp')
| -rw-r--r-- | lld/ELF/Writer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 3a6ead85d5c..64d68425a8f 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -268,6 +268,8 @@ template <class ELFT> void Writer<ELFT>::createSyntheticSections() { Out<ELFT>::VerDef = make<VersionDefinitionSection<ELFT>>(); // Initialize linker generated sections + Symtab<ELFT>::X->Sections.push_back(createCommentSection<ELFT>()); + if (Config->BuildId == BuildIdKind::Fast) In<ELFT>::BuildId = make<BuildIdFastHash<ELFT>>(); else if (Config->BuildId == BuildIdKind::Md5) |

