[llvm] [BOLT] Skip _init; avoiding GOT breakage for static binaries (PR #117751)

Peter Waller via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 28 06:05:55 PST 2024


================
@@ -3047,6 +3064,10 @@ void RewriteInstance::selectFunctionsToProcess() {
     return true;
   };
 
+  if (auto *InitBD = BC->getBinaryDataByName("_init"))
----------------
peterwaller-arm wrote:

Thanks for spotting!

https://github.com/llvm/llvm-project/pull/117751


More information about the llvm-commits mailing list