This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gold commit] PR gold/18696: Fix internal error when linking an archive library with no preceding objects


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().


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]