diff --git a/tools/yaml2obj/yaml2elf.cpp b/tools/yaml2obj/yaml2elf.cpp index bd4c1c3e998..672d1540daf 100644 --- a/tools/yaml2obj/yaml2elf.cpp +++ b/tools/yaml2obj/yaml2elf.cpp @@ -685,7 +685,8 @@ template bool ELFState::hasDynamicSymbols() const { Doc.DynamicSymbols.Local.size() > 0; } -template SmallVector ELFState::implicitSectionNames() const { +template +SmallVector ELFState::implicitSectionNames() const { if (!hasDynamicSymbols()) return {".symtab", ".strtab", ".shstrtab"}; return {".symtab", ".strtab", ".shstrtab", ".dynsym", ".dynstr"};