Fix problems emitting MIPS .reginfo section.
authorVladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
Fri, 10 Jun 2016 22:32:33 +0000 (15:32 -0700)
committerCary Coutant <ccoutant@gmail.com>
Fri, 10 Jun 2016 22:37:19 +0000 (15:37 -0700)
commit82e498727a5086d51656a7407977a69d3f45720c
tree23cde6b2811b181a5a9029c8e23cc4afcb1aebab
parent695bfa52ccf22058e371828c3636a3d74424ec5b
Fix problems emitting MIPS .reginfo section.

gold/
* mips.cc (Mips_relobj::Mips_relobj): Initialize
has_reginfo_section_.
(Mips_relobj::has_reginfo_section_): New data member.
(Mips_relobj::has_reginfo_section): New method.
(class Mips_output_section_reginfo): Change base class to
Output_section_data, and set masks of the output .reginfo section
in constructor.
(Mips_output_section_reginfo::as_mips_output_section_reginfo):
Remove.
(Mips_output_section_reginfo::set_masks): Likewise.
(Mips_output_section_reginfo::set_final_data_size): Likewise.
(Mips_output_section_reginfo::do_print_to_mapfile): New method.
(Target_mips::do_make_output_section): Remove.
(Mips_relobj::do_read_symbols): Set has_reginfo_section_ to true
if the object contains a .reginfo section.
(Target_mips::do_finalize_sections): Create a .reginfo output
section if needed.
gold/ChangeLog
gold/mips.cc