* gold.cc (queue_middle_tasks): If no input files were opened,
[deliverable/binutils-gdb.git] / gold / gold.cc
index 275d0f92e235b419ed626a8f2389a808c46d8437..545057334233c1b57e8ba35f08fad8252499d10a 100644 (file)
@@ -532,6 +532,15 @@ queue_middle_tasks(const General_options& options,
         }
     }
 
+  // If we failed to open any input files, it's possible for
+  // THIS_BLOCKER to be NULL here.  There's no real point in
+  // continuing if that happens.
+  if (this_blocker == NULL)
+    {
+      gold_assert(parameters->errors()->error_count() > 0);
+      gold_exit(false);
+    }
+
   // When all those tasks are complete, we can start laying out the
   // output file.
   // TODO(csilvers): figure out a more principled way to get the target
This page took 0.024161 seconds and 4 git commands to generate.