summaryrefslogtreecommitdiff
path: root/gold/gold.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2008-10-07 23:40:21 +0000
committerCary Coutant <ccoutant@google.com>2008-10-07 23:40:21 +0000
commit4e1e25e084aa25b58cc1d6bd24d820af94d5af78 (patch)
tree8db4763b4deb3973e3749c9c535c749a46d3921f /gold/gold.cc
parentc289427b7dcbeb9d5ee0ad4d177bc36c9d8990f5 (diff)
downloadbinutils-gdb-4e1e25e084aa25b58cc1d6bd24d820af94d5af78.tar.gz
* options.c (General_options::finalize): Add check for -static and
-shared. * gold.cc (queue_middle_tasks): Assert that list of dynamic objects is not empty.
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());
}