[llvm] [BOLT][NFC] Clarify requirement of PLTCall pass (PR #164280)

Gergely Bálint via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 20 09:31:28 PDT 2025


https://github.com/bgergely0 created https://github.com/llvm/llvm-project/pull/164280

PLTCall does not depend on linking the input with -znow: it sets the
DF_BIND_NOW and/or DF_1_NOW tags for the output binary.
The requirement is that the input contains either FLAGS or FLAGS_1
dynamic entries.

>From a672ef9cc218a84d9fa27aec746f9cdea4da2468 Mon Sep 17 00:00:00 2001
From: Gergely Balint <gergely.balint at arm.com>
Date: Mon, 20 Oct 2025 16:23:46 +0000
Subject: [PATCH] [BOLT][NFC] Clarify requirement of PLTCall pass

PLTCall does not depend on linking the input with -znow: it sets the
DF_BIND_NOW and/or DF_1_NOW tags for the output binary.
The requirement is that the input contains either FLAGS or FLAGS_1
dynamic entries.
---
 bolt/lib/Passes/PLTCall.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bolt/lib/Passes/PLTCall.cpp b/bolt/lib/Passes/PLTCall.cpp
index 90b5f586a7bad..db0e8f93f80ee 100644
--- a/bolt/lib/Passes/PLTCall.cpp
+++ b/bolt/lib/Passes/PLTCall.cpp
@@ -23,7 +23,7 @@ namespace opts {
 extern cl::OptionCategory BoltOptCategory;
 
 static cl::opt<bolt::PLTCall::OptType>
-    PLT("plt", cl::desc("optimize PLT calls (requires linking with -znow)"),
+    PLT("plt", cl::desc("optimize PLT calls (sets DF_BIND_NOW/DF_1_NOW in the output binary)"),
         cl::init(bolt::PLTCall::OT_NONE),
         cl::values(clEnumValN(bolt::PLTCall::OT_NONE, "none",
                               "do not optimize PLT calls"),



More information about the llvm-commits mailing list