Fix internal error when linking an archive library with no preceding objects.
authorCary Coutant <ccoutant@gmail.com>
Tue, 21 Jul 2015 19:42:07 +0000 (12:42 -0700)
committerCary Coutant <ccoutant@gmail.com>
Tue, 21 Jul 2015 19:42:07 +0000 (12:42 -0700)
commitcb5cf5e26ea2e42937a2ce1b662e61e4772ba6f9
tree4ed81d81fa24984156a4cf11d54d4b5dbb42dd00
parentaf1b22f3004774f8c5c570abe7fab629026032f7
Fix internal error when linking an archive library with no preceding objects.

gold/
PR gold/18696
* archive.cc (Library_base::should_include_member): Don't use entry
point for relocatable links, or if target is not yet valid.
* parameters.cc (Parameters::entry): Check target_valid().
gold/ChangeLog
gold/archive.cc
gold/parameters.cc