Skip to content

Commit a672ef9

Browse files
committed
[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.
1 parent 96688d4 commit a672ef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/lib/Passes/PLTCall.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace opts {
2323
extern cl::OptionCategory BoltOptCategory;
2424

2525
static cl::opt<bolt::PLTCall::OptType>
26-
PLT("plt", cl::desc("optimize PLT calls (requires linking with -znow)"),
26+
PLT("plt", cl::desc("optimize PLT calls (sets DF_BIND_NOW/DF_1_NOW in the output binary)"),
2727
cl::init(bolt::PLTCall::OT_NONE),
2828
cl::values(clEnumValN(bolt::PLTCall::OT_NONE, "none",
2929
"do not optimize PLT calls"),

0 commit comments

Comments
 (0)