diff options
author | Alan Modra <amodra@gmail.com> | 2012-12-12 03:41:40 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-12-12 03:41:40 +0000 |
commit | d8f5a2749d0409237cb681bb47c4a625c410f238 (patch) | |
tree | 93b44ae70a52d02a1ba4f9a71e3dd27afde62523 /gold/options.h | |
parent | 6b467df6a58a2e96b7e6ff4bddad36af15ab5e4a (diff) | |
download | binutils-gdb-d8f5a2749d0409237cb681bb47c4a625c410f238.tar.gz |
* 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/options.h')
-rw-r--r-- | gold/options.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gold/options.h b/gold/options.h index 1a25b7b070d..38f0c00ad26 100644 --- a/gold/options.h +++ b/gold/options.h @@ -1109,8 +1109,13 @@ class General_options DEFINE_uint64(Ttext, options::ONE_DASH, '\0', -1U, N_("Set the address of the text segment"), N_("ADDRESS")); - DEFINE_bool(no_toc_optimize, options::TWO_DASHES, '\0', false, - N_("(PowerPC64 only) Don't optimize TOC code sequences"), NULL); + DEFINE_bool(toc_optimize, options::TWO_DASHES, '\0', true, + N_("(PowerPC64 only) Optimize TOC code sequences"), + N_("(PowerPC64 only) Don't optimize TOC code sequences")); + + DEFINE_bool(toc_sort, options::TWO_DASHES, '\0', true, + N_("(PowerPC64 only) Sort TOC and GOT sections"), + N_("(PowerPC64 only) Don't sort TOC and GOT sections")); DEFINE_set(undefined, options::TWO_DASHES, 'u', N_("Create undefined reference to SYMBOL"), N_("SYMBOL")); |