From: Ian Lance Taylor Date: Fri, 26 Oct 2007 22:12:03 +0000 (+0000) Subject: Exit if we couldn't open any input files. X-Git-Tag: sid-snapshot-20071101~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c0aeda4590a505276e08fca93b7fa866cf27485;p=external%2Fbinutils.git Exit if we couldn't open any input files. --- diff --git a/gold/gold.cc b/gold/gold.cc index 86fc8e68..b64a97e 100644 --- a/gold/gold.cc +++ b/gold/gold.cc @@ -161,6 +161,13 @@ queue_middle_tasks(const General_options& options, Layout* layout, Workqueue* workqueue) { + if (input_objects->number_of_input_objects() == 0) + { + // We had some input files, but we weren't able to open any of + // them. + gold_fatal(_("no input files")); + } + int thread_count = options.thread_count_middle(); if (thread_count == 0) {