diff options
Diffstat (limited to 'lld/wasm/InputFiles.cpp')
-rw-r--r-- | lld/wasm/InputFiles.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/wasm/InputFiles.cpp b/lld/wasm/InputFiles.cpp index e5da23db377..1c612cabdc4 100644 --- a/lld/wasm/InputFiles.cpp +++ b/lld/wasm/InputFiles.cpp @@ -240,6 +240,8 @@ void ObjFile::parse() { CustomSections.emplace_back(make<InputSection>(Section, this)); CustomSections.back()->setRelocations(Section.Relocations); CustomSectionsByIndex[SectionIndex] = CustomSections.back(); + if (Section.Name == "producers") + ProducersSection = &Section; } SectionIndex++; } |