* mapfile.cc: New file.
[deliverable/binutils-gdb.git] / gold / options.cc
index 8d18c11fbc2f758445263c7a84b1ce7220877f90..da30a6da22364fb7fd243457c95b9f69c5e84c0c 100644 (file)
@@ -697,6 +697,13 @@ General_options::finalize()
       this->set_do_demangle(getenv("COLLECT_NO_DEMANGLE") == NULL);
     }
 
+  // -M is equivalent to "-Map -".
+  if (this->print_map() && !this->user_set_Map())
+    {
+      this->set_Map("-");
+      this->set_user_set_Map();
+    }
+
   // If --thread_count is specified, it applies to
   // --thread-count-{initial,middle,final}, though it doesn't override
   // them.
This page took 0.024642 seconds and 4 git commands to generate.