Make the sh_info field of .rel.plt point to .plt (MIPS).
[external/binutils.git] / gold / ChangeLog
1 2017-01-23  Vladimir Radosavljevic  <Vladimir.Radosavljevic@imgtec.com>
2
3         * mips.cc (Mips_output_data_plt::rel_plt): Remove const from return
4         type.
5         (Target_mips::make_plt_entry): Make the sh_info field of .rel.plt
6         point to .plt.
7
8 2017-01-23  Vladimir Radosavljevic  <Vladimir.Radosavljevic@imgtec.com>
9
10         PR gold/21054
11         * mips.cc (Mips_got_info::record_global_got_symbol): Don't add symbol
12         to the dynamic symbol table if it is forced to local visibility.
13         (Target_mips::do_finalize_sections): Don't add __RLD_MAP symbol to the
14         dynamic symbol table if it is forced to local visibility.
15
16 2017-01-20  Nick Clifton  <nickc@redhat.com>
17
18         * aarch64.cc (Stub_template_repertoire): Change ST_E_835769_INSNS
19         from a pointer to an array.
20
21 2017-01-13  H.J. Lu  <hongjiu.lu@intel.com>
22
23         PR gold/21040
24         * powerpc.cc (Powerpc_relobj<size, big_endian>::make_toc_relative):
25         Cast 0x80008000 to uint64_t.
26
27 2017-01-12  Cary Coutant  <ccoutant@gmail.com>
28
29         * object.cc (Sized_relobj_file): Fix byte counts for calls to memmem.
30
31 2017-01-11  Cary Coutant  <ccoutant@gmail.com>
32
33         PR gold/21040
34         * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry):
35         Remove unnecessary 'typename' keyword.
36         (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise.
37         (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise.
38         (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise.
39         (Output_data_plt_x86_64_bnd::do_write): Likewise.
40
41 2017-01-11  Cary Coutant  <ccoutant@gmail.com>
42
43         PR gold/21040
44         * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry):
45         Remove unnecessary 'typename' keyword.
46         (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise.
47         (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise.
48         (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise.
49         * testsuite/copy_test_relro_1.cc (p, b, c, q): Add separate extern
50         declarations.
51
52 2017-01-11  Cary Coutant  <ccoutant@gmail.com>
53
54         PR gold/21039
55         * testsuite/script_test_13.sh: Adjust patterns to work for i386.
56         * testsuite/script_test_15a.sh: Likewise.
57         * testsuite/script_test_15b.sh: Likewise.
58         * testsuite/script_test_15c.sh: Likewise.
59
60 2017-01-11  Alan Modra  <amodra@gmail.com>
61
62         * powerpc.cc (class Powerpc_copy_relocs): New.
63         (Powerpc_copy_relocs::emit): New function.
64         (Powerpc_relobj::relatoc_, toc_, no_toc_opt_): New variables.
65         (Powerpc_relobj::toc_shndx, set_no_toc_opt, no_toc_opt): New inlines.
66         (Powerpc_relobj::do_relocate_sections): New function.
67         (Powerpc_relobj::make_toc_relative): Likewise.
68         (Powerpc_relobj::do_find_special_sections): Stash away .rela.toc
69         and .toc too.
70         (ok_lo_toc_insn): Move earlier, and handle more insns.
71         (Target_powerpc::Scan::local): If optimizing toc accesses, set
72         no_toc_opt for entries we can't edit.  Check insn validity.
73         Emit "toc optimization is not supported" warning, downgraded
74         from error.
75         (Target_powerpc::Scan::global): Likewise.
76         (Target_powerpc::Relocate::relocate): Edit TOC indirect code
77         to TOC relative.  Don't emit "toc optimization is not supported"
78         error here.
79
80 2017-01-10  Cary Coutant  <ccoutant@gmail.com>
81
82         * aarch64.cc (AArch64_relobj::do_relocate_sections): Call
83         Sized_relobj_file::relocate_section_range().
84         * arm.cc (Arm_relobj::do_relocate_sections): Likewise.
85         * object.h (Sized_relobj_file::relocate_section_range): New method.
86         * reloc.cc (Sized_relobj_file::do_relocate_sections): Move
87         implementation...
88         (Sized_relobj_file::relocate_section_range): ...to new method.
89
90 2017-01-10  Alan Modra  <amodra@gmail.com>
91
92         * testsuite/ver_test_8.sh: Accept .TOC. in lieu of
93         _GLOBAL_OFFSET_TABLE_.  Allow zero count.
94         * testsuite/copy_test_relro_1.cc (c, q): New vars.
95         * testsuite/copy_test_relro.cc: Rewrite to test read-only
96         status of variables directly.  Reference new vars in
97         read-only data.
98
99 2017-01-10  Alan Modra  <amodra@gmail.com>
100
101         * options.h: Add --secure-plt option.
102         * powerpc.cc (Target_powerpc::Scan::local): Detect and error
103         on -fPIC -mbss-plt code.
104         (Target_powerpc::Scan::global): Likewise.
105
106 2017-01-09  Alan Modra  <amodra@gmail.com>
107
108         * powerpc.cc (Target_powerpc::make_plt_section): Point sh_info of
109         ".rela.plt" at ".plt".
110
111 2017-01-07  Alan Modra  <amodra@gmail.com>
112
113         * powerpc.cc: Use shorter equivalent elfcpp typedef for
114         Reltype and reloc_size throughout.
115         (Target_powerpc::symval_for_branch): Exclude dynamic symbols.
116         (Target_powerpc::Scan::local): Use local var r_sym.
117         (Target_powerpc::Scan::global: Likewise.
118         (Target_powerpc::Relocate::relocate): Delete shadowing r_sym.
119
120 2017-01-02  Alan Modra  <amodra@gmail.com>
121
122         Update year range in copyright notice of all files.
123
124 For older changes see ChangeLog-2016
125 \f
126 Copyright (C) 2017 Free Software Foundation, Inc.
127
128 Copying and distribution of this file, with or without modification,
129 are permitted in any medium without royalty provided the copyright
130 notice and this notice are preserved.
131
132 Local Variables:
133 mode: change-log
134 left-margin: 8
135 fill-column: 74
136 version-control: never
137 End: