diff --git a/bolt/lib/Rewrite/MachORewriteInstance.cpp b/bolt/lib/Rewrite/MachORewriteInstance.cpp --- a/bolt/lib/Rewrite/MachORewriteInstance.cpp +++ b/bolt/lib/Rewrite/MachORewriteInstance.cpp @@ -527,6 +527,7 @@ mapCodeSections(); mapInstrumentationSection("__counters"); mapInstrumentationSection("__tables"); + RTDyld->finalizeWithMemoryManagerLocking(); // TODO: Refactor addRuntimeLibSections to work properly on Mach-O // and use it here.