diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-26 22:12:03 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-26 22:12:03 +0000 |
commit | 2c0aeda4590a505276e08fca93b7fa866cf27485 (patch) | |
tree | 8548b9e2c403a01e1bb89c8786ce02f538130228 /gold/gold.cc | |
parent | 2007-10-26 H.J. Lu <hongjiu.lu@intel.com> (diff) | |
download | binutils-gdb-2c0aeda4590a505276e08fca93b7fa866cf27485.tar.gz binutils-gdb-2c0aeda4590a505276e08fca93b7fa866cf27485.tar.bz2 binutils-gdb-2c0aeda4590a505276e08fca93b7fa866cf27485.zip |
Exit if we couldn't open any input files.
Diffstat (limited to 'gold/gold.cc')
-rw-r--r-- | gold/gold.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/gold.cc b/gold/gold.cc index 86fc8e6847c..b64a97e97b6 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) { |