* options.h (General_options): Add --toc-sort/--no-toc-sort.
authorAlan Modra <amodra@gmail.com>
Wed, 12 Dec 2012 03:41:40 +0000 (03:41 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 12 Dec 2012 03:41:40 +0000 (03:41 +0000)
commitd8f5a2749d0409237cb681bb47c4a625c410f238
tree93b44ae70a52d02a1ba4f9a71e3dd27afde62523
parent6b467df6a58a2e96b7e6ff4bddad36af15ab5e4a
* 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.
gold/ChangeLog
gold/options.h
gold/output.h
gold/powerpc.cc