PR gas/7025
[deliverable/binutils-gdb.git] / gold / gold.cc
index 6a536b8c7690fe71bcbe1ce318beb00417aa046f..ac321be33fa0299983b1abc0ca9fc806b7b5c8c6 100644 (file)
@@ -203,6 +203,7 @@ queue_middle_tasks(const General_options& options,
   if (!doing_static_link && options.is_static())
     {
       // We print out just the first .so we see; there may be others.
+      gold_assert(input_objects->dynobj_begin() != input_objects->dynobj_end());
       gold_error(_("cannot mix -static with dynamic object %s"),
                 (*input_objects->dynobj_begin())->name().c_str());
     }
This page took 0.023096 seconds and 4 git commands to generate.