This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[gold commit] PR gold/18696: Fix internal error when linking an archive library with no preceding objects
- From: Cary Coutant <ccoutant at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Tue, 21 Jul 2015 12:48:51 -0700
- Subject: [gold commit] PR gold/18696: Fix internal error when linking an archive library with no preceding objects
- Authentication-results: sourceware.org; auth=none
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().