diff --git a/gold/ChangeLog b/gold/ChangeLog index 8b99909294..38fd9eab54 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2016-12-08 Alan Modra + + * powerpc.cc (Powerpc_relobj::stub_table): Return NULL rather + then asserting. + 2016-12-08 Alan Modra * options.h (--stub-group-multi): Fix typo. diff --git a/gold/powerpc.cc b/gold/powerpc.cc index 068f5ca602..87cb8bc9fa 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -292,8 +292,8 @@ public: = static_cast*>( parameters->sized_target()); unsigned int indx = this->stub_table_index_[shndx]; - gold_assert(indx < target->stub_tables().size()); - return target->stub_tables()[indx]; + if (indx < target->stub_tables().size()) + return target->stub_tables()[indx]; } return NULL; }