Index: ELF/SyntheticSections.cpp =================================================================== --- ELF/SyntheticSections.cpp +++ ELF/SyntheticSections.cpp @@ -1771,7 +1771,7 @@ for (std::pair &Pair : NamesAndTypes) { uint32_t Hash = hash(Pair.first); - size_t Offset = StringPool.add(Pair.first); + size_t Offset = StringPool.add({Pair.first, Hash}); bool IsNew; GdbSymbol *Sym;