Mips: Omit empty objects for merging processor-specific data.
authorVladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
Wed, 15 Mar 2017 23:46:26 +0000 (16:46 -0700)
committerCary Coutant <ccoutant@gmail.com>
Wed, 15 Mar 2017 23:51:35 +0000 (16:51 -0700)
commit4d78db49e6eee097365e31f9b5b47e5391243979
tree9597291b8862c3812ed0b940aa7768b6f8e730d7
parent152c92b261fd9e4655688bef746ca32352f56bc4
Mips: Omit empty objects for merging processor-specific data.

gold/
* mips.cc (Mips_relobj::merge_processor_specific_data_): New data
member.
(Mips_relobj::merge_processor_specific_data): New method.
(Mips_relobj::do_read_symbols): Set merge_processor_specific_data_
to false, only if the input file is a binary or if object has no
contents except the section name string table and an empty symbol
table with the undefined symbol.
(Target_mips::do_finalize_sections): Refactor.  Skip empty object files
for merging processor-specific data.
gold/ChangeLog
gold/mips.cc