changed rodynamic to be a -z keyword
diff --git a/ELF/Config.h b/ELF/Config.h
index 9269bdc..9ed87be 100644
--- a/ELF/Config.h
+++ b/ELF/Config.h
@@ -125,7 +125,6 @@
   bool OptRemarksWithHotness;
   bool Pie;
   bool PrintGcSections;
-  bool ReadOnlyDynamic;
   bool Relocatable;
   bool SaveTemps;
   bool SingleRoRx;
@@ -145,6 +144,7 @@
   bool ZNodlopen;
   bool ZNow;
   bool ZOrigin;
+  bool ZReadOnlyDynamic;
   bool ZRelro;
   bool ZText;
   bool ExitEarly;
diff --git a/ELF/Driver.cpp b/ELF/Driver.cpp
index 4dd9621..5f9fcfc 100644
--- a/ELF/Driver.cpp
+++ b/ELF/Driver.cpp
@@ -657,7 +657,6 @@
   Config->Pie = getArg(Args, OPT_pie, OPT_nopie, false);
   Config->PrintGcSections = Args.hasArg(OPT_print_gc_sections);
   Config->Rpath = getRpath(Args);
-  Config->ReadOnlyDynamic = Args.hasArg(OPT_rodynamic);
   Config->Relocatable = Args.hasArg(OPT_relocatable);
   Config->SaveTemps = Args.hasArg(OPT_save_temps);
   Config->SearchPaths = getArgs(Args, OPT_L);
@@ -688,6 +687,7 @@
   Config->ZNodlopen = hasZOption(Args, "nodlopen");
   Config->ZNow = hasZOption(Args, "now");
   Config->ZOrigin = hasZOption(Args, "origin");
+  Config->ZReadOnlyDynamic = hasZOption(Args, "rodynamic");
   Config->ZRelro = !hasZOption(Args, "norelro");
   Config->ZStackSize = getZOptionValue(Args, "stack-size", 0);
   Config->ZText = !hasZOption(Args, "notext");
@@ -788,8 +788,8 @@
   Config->IsRela = Config->Is64 || IsX32 || Config->MipsN32Abi;
   Config->Pic = Config->Pie || Config->Shared;
   Config->Wordsize = Config->Is64 ? 8 : 4;
-  //MIPS must unconditionally set ReadOnlyDynamic
-  Config->ReadOnlyDynamic = Machine == EM_MIPS ? true : Config->ReadOnlyDynamic;
+  //MIPS must unconditionally set ZReadOnlyDynamic
+  Config->ZReadOnlyDynamic = Machine == EM_MIPS ? true : Config->ZReadOnlyDynamic;
 }
 
 // Returns a value of "-format" option.
diff --git a/ELF/Options.td b/ELF/Options.td
index 701e83c..65a0e72 100644
--- a/ELF/Options.td
+++ b/ELF/Options.td
@@ -32,8 +32,6 @@
 
 def O: Joined<["-"], "O">, HelpText<"Optimize output file size">;
 
-def rodynamic: F<"rodynamic">, HelpText<"Force .dynamic to be read-only">;
-
 def Tbss: S<"Tbss">, HelpText<"Same as --section-start with .bss as the sectionname">;
 
 def Tdata: S<"Tdata">, HelpText<"Same as --section-start with .data as the sectionname">;
diff --git a/ELF/SyntheticSections.cpp b/ELF/SyntheticSections.cpp
index 638f98b..d370769 100644
--- a/ELF/SyntheticSections.cpp
+++ b/ELF/SyntheticSections.cpp
@@ -1029,7 +1029,7 @@
   // Additionally .dynamic section is not writable on MIPS.
   // See "Special Section" in Chapter 4 in the following document:
   // ftp://www.linux-mips.org/pub/linux/mips/doc/ABI/mipsabi.pdf
-  if (Config->ReadOnlyDynamic)
+  if (Config->ZReadOnlyDynamic)
     this->Flags = SHF_ALLOC;
 
   addEntries();
@@ -1075,7 +1075,7 @@
     add({DT_FLAGS_1, DtFlags1});
 
   //If .dynamic is read only then DT_DEBUG will cause a segfault.
-  if (!Config->Shared && !Config->Relocatable && !Config->ReadOnlyDynamic)
+  if (!Config->Shared && !Config->Relocatable && !Config->ZReadOnlyDynamic)
     add({DT_DEBUG, (uint64_t)0});
 }
 
diff --git a/ELF/Writer.cpp b/ELF/Writer.cpp
index fa32bf3..6e10844 100644
--- a/ELF/Writer.cpp
+++ b/ELF/Writer.cpp
@@ -363,9 +363,9 @@
       Add(Sec);
   }
 
-  //If ReadOnlyDynamic is set then we're going to need to emit a
+  //If ZReadOnlyDynamic is set then we're going to need to emit a
   //RldMapSection for DT_DEBUG_INDIRECT/DT_MIPS_RLD_MAP to point to.
-  if(!Config->Shared && HasDynSymTab && Config->ReadOnlyDynamic) {
+  if(!Config->Shared && HasDynSymTab && Config->ZReadOnlyDynamic) {
     In<ELFT>::RldMap = make<RldMapSection>();
     Add(In<ELFT>::RldMap);
   }
diff --git a/test/ELF/rodynamic.s b/test/ELF/rodynamic.s
index 4bf79a4..c921dd0 100644
--- a/test/ELF/rodynamic.s
+++ b/test/ELF/rodynamic.s
@@ -1,7 +1,7 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/rodynamic.s -o %td.o
 # RUN: ld.lld -shared %td.o -o %td.so
-# RUN: ld.lld -rodynamic %t.o %td.so -o %t.exe
+# RUN: ld.lld -z rodynamic %t.o %td.so -o %t.exe
 # RUN: llvm-readobj -sections -dynamic-table %t.exe | FileCheck %s
 
   .text