summaryrefslogtreecommitdiff
path: root/gold/output.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-12-12 03:41:40 +0000
committerAlan Modra <amodra@gmail.com>2012-12-12 03:41:40 +0000
commitd8f5a2749d0409237cb681bb47c4a625c410f238 (patch)
tree93b44ae70a52d02a1ba4f9a71e3dd27afde62523 /gold/output.h
parent6b467df6a58a2e96b7e6ff4bddad36af15ab5e4a (diff)
* options.h (General_options): Add --toc-sort/--no-toc-sort.
Replace no_toc_optimize with toc_optimize. * output.h (Output_section::input_sections): Provide non-const variant. * powerpc.cc (Powerpc_relobj::has_small_toc_reloc_, set_has_small_toc_reloc, has_small_toc_reloc): New variable and accessors. (Target_powerpc::Scan::local, global): Call set_has_small_toc_reloc. (class Sort_toc_sections): New. (Target_powerpc::do_finalize_sections): Sort toc sections. (Target_powerpc::Relocate::relocate): Update toc_optimize test.
Diffstat (limited to 'gold/output.h')
-rw-r--r--gold/output.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/output.h b/gold/output.h
index bd108bbd41..a8fe59405b 100644
--- a/gold/output.h
+++ b/gold/output.h
@@ -3941,6 +3941,10 @@ class Output_section : public Output_data
input_sections() const
{ return this->input_sections_; }
+ Input_section_list&
+ input_sections()
+ { return this->input_sections_; }
+
protected:
// Return the output section--i.e., the object itself.
Output_section*