[PATCH] D149244: [BOLT] Make sure Mach-O binaries are actually linked

Job Noorman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 26 01:33:54 PDT 2023


jobnoorman created this revision.
jobnoorman added reviewers: rafauler, maksfb, yota9, Amir.
Herald added subscribers: asb, treapster, pmatos, ayermolo.
Herald added a project: All.
jobnoorman requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Note that this issue is also solved by D147544 <https://reviews.llvm.org/D147544>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149244

Files:
  bolt/lib/Rewrite/MachORewriteInstance.cpp


Index: bolt/lib/Rewrite/MachORewriteInstance.cpp
===================================================================
--- bolt/lib/Rewrite/MachORewriteInstance.cpp
+++ 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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149244.517091.patch
Type: text/x-patch
Size: 495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230426/ca485e53/attachment.bin>


More information about the llvm-commits mailing list