summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Config.h2
-rw-r--r--lld/ELF/Driver.cpp2
-rw-r--r--lld/ELF/Writer.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/Config.h b/lld/ELF/Config.h
index a92c5125a25..2ea9f7c9e3d 100644
--- a/lld/ELF/Config.h
+++ b/lld/ELF/Config.h
@@ -121,7 +121,7 @@ struct Configuration {
bool Verbose;
bool WarnCommon;
bool ZCombreloc;
- bool ZExecStack;
+ bool ZExecstack;
bool ZNodelete;
bool ZNow;
bool ZOrigin;
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index d9208f30b43..fee497b63f7 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -489,7 +489,7 @@ void LinkerDriver::readConfigs(opt::InputArgList &Args) {
error("--thinlto-jobs: number of threads must be > 0");
Config->ZCombreloc = !hasZOption(Args, "nocombreloc");
- Config->ZExecStack = hasZOption(Args, "execstack");
+ Config->ZExecstack = hasZOption(Args, "execstack");
Config->ZNodelete = hasZOption(Args, "nodelete");
Config->ZNow = hasZOption(Args, "now");
Config->ZOrigin = hasZOption(Args, "origin");
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index a7ba822fd23..d50deaea164 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -1103,7 +1103,7 @@ std::vector<PhdrEntry<ELFT>> Writer<ELFT>::createPhdrs() {
// PT_GNU_STACK is a special section to tell the loader to make the
// pages for the stack non-executable.
- if (!Config->ZExecStack) {
+ if (!Config->ZExecstack) {
Phdr &Hdr = *AddHdr(PT_GNU_STACK, PF_R | PF_W);
if (Config->ZStackSize != uint64_t(-1))
Hdr.H.p_memsz = Config->ZStackSize;
OpenPOWER on IntegriCloud