[llvm] [BOLT][NFC] Clarify requirement of PLTCall pass (PR #164280)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 20 09:32:20 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-bolt
Author: Gergely Bálint (bgergely0)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/164280.diff
1 Files Affected:
- (modified) bolt/lib/Passes/PLTCall.cpp (+1-1)
``````````diff
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"),
``````````
</details>
https://github.com/llvm/llvm-project/pull/164280
More information about the llvm-commits
mailing list