[PATCH][gold] Mips: Fix emitting .reginfo section.

Cary Coutant ccoutant@gmail.com
Thu May 19 22:51:00 GMT 2016


> In Target_mips::do_should_include_section method we exclude all input .reginfo sections,
> so in Target_mips::do_make_output_section we won't create object of class Mips_output_section_reginfo,
> and we will never emit .reginfo section. This patch fixes that.

+  // Return whether there is a .reginfo section.
+  bool
+  has_reginfo_section() const
+  { return has_reginfo_section_; }

Need "this->".

@@ -7689,8 +7671,6 @@ Mips_output_section_reginfo<size,
big_endian>::do_write(Output_file* of)
   // Write the gp value.
   elfcpp::Swap<size, big_endian>::writeval(view + 20,
                                            this->target_->gp_value());
-
-  of->write_output_view(offset, data_size, view);

Why did you remove the call to write_output_view?

-cary



More information about the Binutils mailing list