gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gold / parameters.cc
index 8eab000cf52ed8160fcaeafd9fe457235e18b11f..d677044a079dbbde43a9dd90ad52d5557a6ff5e0 100644 (file)
@@ -1,6 +1,6 @@
 // parameters.cc -- general parameters for a link using gold
 
-// Copyright (C) 2006-2015 Free Software Foundation, Inc.
+// Copyright (C) 2006-2020 Free Software Foundation, Inc.
 // Written by Ian Lance Taylor <iant@google.com>.
 
 // This file is part of gold.
@@ -237,7 +237,7 @@ const char*
 Parameters::entry() const
 {
   const char* ret = this->options().entry();
-  if (ret == NULL)
+  if (ret == NULL && parameters->target_valid())
     ret = parameters->target().entry_symbol_name();
   return ret;
 }
This page took 0.023481 seconds and 4 git commands to generate.