[lld] r283910 - Make variable name consistent with other -z options.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 11 10:46:48 PDT 2016
Author: ruiu
Date: Tue Oct 11 12:46:48 2016
New Revision: 283910
URL: http://llvm.org/viewvc/llvm-project?rev=283910&view=rev
Log:
Make variable name consistent with other -z options.
Modified:
lld/trunk/ELF/Config.h
lld/trunk/ELF/Driver.cpp
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Config.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Config.h?rev=283910&r1=283909&r2=283910&view=diff
==============================================================================
--- lld/trunk/ELF/Config.h (original)
+++ lld/trunk/ELF/Config.h Tue Oct 11 12:46:48 2016
@@ -121,7 +121,7 @@ struct Configuration {
bool Verbose;
bool WarnCommon;
bool ZCombreloc;
- bool ZExecStack;
+ bool ZExecstack;
bool ZNodelete;
bool ZNow;
bool ZOrigin;
Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=283910&r1=283909&r2=283910&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Tue Oct 11 12:46:48 2016
@@ -489,7 +489,7 @@ void LinkerDriver::readConfigs(opt::Inpu
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");
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=283910&r1=283909&r2=283910&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Tue Oct 11 12:46:48 2016
@@ -1103,7 +1103,7 @@ std::vector<PhdrEntry<ELFT>> Writer<ELFT
// 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;
More information about the llvm-commits
mailing list