Make variable name consistent with other -z options.
authorRui Ueyama <ruiu@google.com>
Tue, 11 Oct 2016 17:46:48 +0000 (17:46 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 11 Oct 2016 17:46:48 +0000 (17:46 +0000)
llvm-svn: 283910

lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/Writer.cpp

index a92c512..2ea9f7c 100644 (file)
@@ -121,7 +121,7 @@ struct Configuration {
   bool Verbose;
   bool WarnCommon;
   bool ZCombreloc;
-  bool ZExecStack;
+  bool ZExecstack;
   bool ZNodelete;
   bool ZNow;
   bool ZOrigin;
index d9208f3..fee497b 100644 (file)
@@ -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");
index a7ba822..d50deae 100644 (file)
@@ -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;