Fix compile errors with GCC 4.2.
[external/binutils.git] / gold / ChangeLog
1 2017-01-11  Cary Coutant  <ccoutant@gmail.com>
2
3         PR gold/21040
4         * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry):
5         Remove unnecessary 'typename' keyword.
6         (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise.
7         (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise.
8         (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise.
9         * testsuite/copy_test_relro_1.cc (p, b, c, q): Add separate extern
10         declarations.
11
12 2017-01-11  Cary Coutant  <ccoutant@gmail.com>
13
14         PR gold/21039
15         * testsuite/script_test_13.sh: Adjust patterns to work for i386.
16         * testsuite/script_test_15a.sh: Likewise.
17         * testsuite/script_test_15b.sh: Likewise.
18         * testsuite/script_test_15c.sh: Likewise.
19
20 2017-01-11  Alan Modra  <amodra@gmail.com>
21
22         * powerpc.cc (class Powerpc_copy_relocs): New.
23         (Powerpc_copy_relocs::emit): New function.
24         (Powerpc_relobj::relatoc_, toc_, no_toc_opt_): New variables.
25         (Powerpc_relobj::toc_shndx, set_no_toc_opt, no_toc_opt): New inlines.
26         (Powerpc_relobj::do_relocate_sections): New function.
27         (Powerpc_relobj::make_toc_relative): Likewise.
28         (Powerpc_relobj::do_find_special_sections): Stash away .rela.toc
29         and .toc too.
30         (ok_lo_toc_insn): Move earlier, and handle more insns.
31         (Target_powerpc::Scan::local): If optimizing toc accesses, set
32         no_toc_opt for entries we can't edit.  Check insn validity.
33         Emit "toc optimization is not supported" warning, downgraded
34         from error.
35         (Target_powerpc::Scan::global): Likewise.
36         (Target_powerpc::Relocate::relocate): Edit TOC indirect code
37         to TOC relative.  Don't emit "toc optimization is not supported"
38         error here.
39
40 2017-01-10  Cary Coutant  <ccoutant@gmail.com>
41
42         * aarch64.cc (AArch64_relobj::do_relocate_sections): Call
43         Sized_relobj_file::relocate_section_range().
44         * arm.cc (Arm_relobj::do_relocate_sections): Likewise.
45         * object.h (Sized_relobj_file::relocate_section_range): New method.
46         * reloc.cc (Sized_relobj_file::do_relocate_sections): Move
47         implementation...
48         (Sized_relobj_file::relocate_section_range): ...to new method.
49
50 2017-01-10  Alan Modra  <amodra@gmail.com>
51
52         * testsuite/ver_test_8.sh: Accept .TOC. in lieu of
53         _GLOBAL_OFFSET_TABLE_.  Allow zero count.
54         * testsuite/copy_test_relro_1.cc (c, q): New vars.
55         * testsuite/copy_test_relro.cc: Rewrite to test read-only
56         status of variables directly.  Reference new vars in
57         read-only data.
58
59 2017-01-10  Alan Modra  <amodra@gmail.com>
60
61         * options.h: Add --secure-plt option.
62         * powerpc.cc (Target_powerpc::Scan::local): Detect and error
63         on -fPIC -mbss-plt code.
64         (Target_powerpc::Scan::global): Likewise.
65
66 2017-01-09  Alan Modra  <amodra@gmail.com>
67
68         * powerpc.cc (Target_powerpc::make_plt_section): Point sh_info of
69         ".rela.plt" at ".plt".
70
71 2017-01-07  Alan Modra  <amodra@gmail.com>
72
73         * powerpc.cc: Use shorter equivalent elfcpp typedef for
74         Reltype and reloc_size throughout.
75         (Target_powerpc::symval_for_branch): Exclude dynamic symbols.
76         (Target_powerpc::Scan::local): Use local var r_sym.
77         (Target_powerpc::Scan::global: Likewise.
78         (Target_powerpc::Relocate::relocate): Delete shadowing r_sym.
79
80 2017-01-02  Alan Modra  <amodra@gmail.com>
81
82         Update year range in copyright notice of all files.
83
84 For older changes see ChangeLog-2016
85 \f
86 Copyright (C) 2017 Free Software Foundation, Inc.
87
88 Copying and distribution of this file, with or without modification,
89 are permitted in any medium without royalty provided the copyright
90 notice and this notice are preserved.
91
92 Local Variables:
93 mode: change-log
94 left-margin: 8
95 fill-column: 74
96 version-control: never
97 End: