summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Config.h2
-rw-r--r--lld/ELF/Driver.cpp4
-rw-r--r--lld/ELF/Writer.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/Config.h b/lld/ELF/Config.h
index b208cddc99d..99999e21b7e 100644
--- a/lld/ELF/Config.h
+++ b/lld/ELF/Config.h
@@ -117,7 +117,7 @@ struct Configuration {
bool NoUndefinedVersion;
bool Nostdlib;
bool OFormatBinary;
- bool OMagic;
+ bool Omagic;
bool OptRemarksWithHotness;
bool Pie;
bool PrintGcSections;
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 2334bf0a80d..0d83f9fbd9f 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -548,7 +548,7 @@ void LinkerDriver::readConfigs(opt::InputArgList &Args) {
Config->NoUndefinedVersion = Args.hasArg(OPT_no_undefined_version);
Config->Nostdlib = Args.hasArg(OPT_nostdlib);
Config->OFormatBinary = isOutputFormatBinary(Args);
- Config->OMagic = Args.hasArg(OPT_omagic);
+ Config->Omagic = Args.hasArg(OPT_omagic);
Config->OptRemarksFilename = getString(Args, OPT_opt_remarks_filename);
Config->OptRemarksWithHotness = Args.hasArg(OPT_opt_remarks_with_hotness);
Config->Optimize = getInteger(Args, OPT_O, 1);
@@ -606,7 +606,7 @@ void LinkerDriver::readConfigs(opt::InputArgList &Args) {
// .text segments are writable. Today, the option is still in use to
// create special-purpose programs such as boot loaders. It doesn't
// make sense to create PT_GNU_RELRO for such executables.
- if (Config->OMagic)
+ if (Config->Omagic)
Config->ZRelro = false;
if (!Config->Relocatable)
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 397d86bc17d..445fe723934 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -1251,7 +1251,7 @@ template <class ELFT> static bool needsPtLoad(OutputSection *Sec) {
// cannot create a PT_LOAD there.
template <class ELFT>
static typename ELFT::uint computeFlags(typename ELFT::uint F) {
- if (Config->OMagic)
+ if (Config->Omagic)
return PF_R | PF_W | PF_X;
if (Config->SingleRoRx && !(F & PF_W))
return F | PF_X;
OpenPOWER on IntegriCloud