[TextAPI] Add missing flag input for <=tbdv3 formats

This commit is contained in:
Cyndy Ishida 2023-09-15 08:17:50 -07:00
parent fcbdcb13ce
commit dc787bc94c

View File

@ -663,10 +663,10 @@ template <> struct MappingTraits<const InterfaceFile *> {
}
for (auto &Symbol : Section.WeakDefSymbols)
File->addSymbol(SymbolKind::GlobalSymbol, Symbol, Targets,
SymbolFlags::WeakDefined);
SymbolFlags::WeakDefined | Flags);
for (auto &Symbol : Section.TLVSymbols)
File->addSymbol(SymbolKind::GlobalSymbol, Symbol, Targets,
SymbolFlags::ThreadLocalValue);
SymbolFlags::ThreadLocalValue | Flags);
}
for (const auto &Section : Undefineds) {