The Classic and Parallel DWARF Linkers in dsymutil
dsymutil links the DWARF from a program’s object files into a .dSYM bundle. The part that does the actual work is the DWARF linker. LLVM provides two implementations: the original classic linker and the parallel linker, a modern rewrite that became the default in June after it was deemed ready for widespread adoption. The classic linker remains available through --linker=classic. Both take the same input and should produce equivalent debug info. The classic linker does most of its work on one thread in a fixed order, while the parallel linker distributes the work across all available cores. The parallel linker must make its output independent of the order in which threads complete their work. I’ve written about the classic linker’s lockstep algorithm before. This post puts the two side by side. ...