[gold commit] PR gold/18696: Fix internal error when linking an archive library with no preceding objects
Cary Coutant
ccoutant@gmail.com
Tue Jul 21 19:48:00 GMT 2015
I've committed the following patch to fix an internal error in gold,
when an archive library is the first item seen on the link line. Gold
doesn't determine the target until it sees the first object file, but
when searching an archive library, we want to know what the default
entry point is, which is target dependent.
-cary
2015-07-21 Cary Coutant <ccoutant@gmail.com>
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().
More information about the Binutils
mailing list