[llvm] [BOLT] Allow missing DT_FINI{,_ARRAY} if instrumentation-sleep-time is used (PR #170086)

Vasily Leonenko via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 1 02:08:01 PST 2025


================
@@ -1616,9 +1621,14 @@ Error RewriteInstance::updateRtFiniReloc() {
   if (!RT || !RT->getRuntimeFiniAddress())
     return Error::success();
 
-  if (!BC->FiniArrayAddress || !BC->FiniArraySize)
+  if (!BC->FiniArrayAddress || !BC->FiniArraySize) {
+    // it is not mandatory to have finalization hooks if we have
+    // InstrumentationSleepTime>0
----------------
vleonen wrote:

Done.

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


More information about the llvm-commits mailing list