summaryrefslogtreecommitdiff
path: root/gold/gold.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/gold.cc')
-rw-r--r--gold/gold.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/gold.cc b/gold/gold.cc
index 6a536b8c769..ac321be33fa 100644
--- a/gold/gold.cc
+++ b/gold/gold.cc
@@ -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());
}