Automatic date update in version.in
[deliverable/binutils-gdb.git] / gold / ChangeLog
CommitLineData
6831670d
AM
12019-09-23 Alan Modra <amodra@gmail.com>
2
3 * testsuite/plugin_new_section_layout.c (new_input_hook): Correct
4 return status enum values.
5
4c51daca
AM
62019-09-20 Alan Modra <amodra@gmail.com>
7
8 PR 24768
9 * layout.cc (Layout::Layout): Init lto_slim_object_.
10 * object.cc (Sized_relobj_file::do_layout): Wrap overlong line.
11 Don't use C cast. Validate section size. Don't copy contents.
12
e59a1001
AM
132019-09-20 Alan Modra <amodra@gmail.com>
14
15 * powerpc.cc (Target_powerpc::Scan::check_non_pic): Move REL24
16 to 32-bit supported.
17
e0b2a78c
SM
182019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
19
20 * testsuite/Makefile.in: Re-generate.
21
60391a25
PB
222019-09-09 Phil Blundell <pb@pbcl.net>
23
24 binutils 2.33 branch created.
25
b4c555cf
ML
262019-08-16 Martin Liska <mliska@suse.cz>
27
28 PR ld/24912
29 * object.cc (big_endian>::do_layout): Do not report error,
30 but only set a flag.
31 (big_endian>::do_add_symbols): Report error only for when
32 relocatable.
33
89c52ae3
AM
342019-08-02 Alan Modra <amodra@gmail.com>
35
36 * powerpc.cc (Target_powerpc::Scan::get_reference_flags): Set
37 flags for new relocations, and some missing older relocs.
38 (Target_powerpc::Scan::local): Handle new pcrel tls relocs.
39 Call set_has_static_tls for tprel relocs.
40 (Target_powerpc::Scan::global): Likewise.
41 (Target_powerpc::Relocate::relocate): Handle new pcrel tls relocs.
42
6a010cf6
AM
432019-08-02 Alan Modra <amodra@gmail.com>
44
45 * powerpc.cc (Powerpc_relocate_functions::rela, rela_ua): Perform
46 signed right shift for signed overflow check.
47
cc5277b1
ML
482019-07-29 Martin Liska <mliska@suse.cz>
49
50 PR 24768
51 * layout.h (class Layout): Add is_lto_slim_object and
52 set_lto_slim_object.
53 * object.cc (struct lto_section): Add lto_slim_object_.
54 (big_endian>::do_layout): Parse content of
55 .gnu_lto_.lto section.
56 (big_endian>::do_add_symbols): Report error for a missing
57 LTO plugin.
58
0c951c25
AM
592019-07-13 Alan Modra <amodra@gmail.com>
60
61 * powerpc.cc (xlate_pcrel_opt): New function.
62 (Target_powerpc::Relocate::relocate): Optimise PCREL34 and
63 GOT_PCREL34 sequences marked with PCREL_OPT.
64
c9b8abb7
AM
652019-07-13 Alan Modra <amodra@gmail.com>
66
67 * powerpc.cc (Powerpc_relobj::make_got_relative): New function.
68 (relative_value_is_known): New functions.
69 (Target_powerpc::Relocate::relocate): Edit code using
70 GOT16_HA, GOT16_LO_DS, and GOT_PCREL34 relocs.
71
e4dff765
AM
722019-07-13 Alan Modra <amodra@gmail.com>
73
74 * powerpc.cc (Target_powerpc): Add powerxx_stubs_ and accessor
75 functions.
76 (Target_powerpc::maybe_skip_tls_get_addr_call): Handle PLT_PCREL34
77 and PLT_PCREL34_NOTOC relocs.
78 (Powerpc_relocate_functions): Add addr34, addr34_hi, addr34_ha,
79 addr28, addr16_higher34, addr16_highera34, addr16_highest34,
80 addr16_highest34a functions.
81 (li_11_0, ori_11_11_0, sldi_11_11_34): Define.
82 (paddi_12_pc, pld_12_pc, pnop): Define.
83 (d34, ha34): New inline functions.
84 (Stub_table::add_plt_call_entry): Handle powerxx_stubs.
85 (Stub_table::add_eh_frame): Likewise.
86 (build_powerxx_offset): New function.
87 (Stub_table::plt_call_size): Handle powerxx_stubs.
88 (Stub_table::branch_stub_size): Likewise.
89 (Stub_table::do_write): Likewise.
90 (Target_powerpc::Scan::get_reference_flags): Handle new relocs.
91 (Target_powerpc::Scan::reloc_needs_plt_for_ifunc: Likewise.
92 (Target_powerpc::Scan::local, global, relocate): Likewise.
93
220f9906
AM
942019-07-13 Alan Modra <amodra@gmail.com>
95
96 * ehframe.cc (Fde::operator==): Delete.
97 (Cie::remove_fde): Delete.
98 (Eh_frame::remove_ehframe_for_plt): Delete fde_data and fde_length
99 parameters. Remove all post-map plt FDEs.
100 * ehframe.h (Fde:post_map): Make const, add variant to compare plt.
101 (Fde::operator==): Delete.
102 (Cie::remove_fde): Implement here.
103 (Cie::last_fde): New accessor.
104 (Eh_frame::remove_ehframe_for_plt): Update prototype.
105 * layout.cc (Layout::remove_eh_frame_for_plt): Delete fde_data and
106 fde_length parameters.
107 * layout.h (Layout::remove_eh_frame_for_plt): Update prototype.
108 * powerpc.cc (Stub_table::tls_get_addr_opt_bctrl_): Delete.
109 (Stub_table::plt_fde_len_, plt_fde_, init_plt_fde): Delete.
110 (Stub_table::add_plt_call_entry): Don't set tls_get_addr_opt_bctrl_.
111 (eh_advance): New function.
112 (stub_sort): New function.
113 (Stub_table::add_eh_frame): Emit eh_frame for notoc plt calls and
114 branches as well as __tls_get_addr_opt plt call stub.
115 (Stub_table::remove_eh_frame): Update to suit.
116
32f59844
AM
1172019-07-13 Alan Modra <amodra@gmail.com>
118
119 * powerpc.cc (Target_powerpc::maybe_skip_tls_get_addr_call): Handle
120 notoc calls.
121 (is_branch_reloc): Template on size. Return true for REL24_NOTOC.
122 Update all callers.
123 (max_branch_delta): Likewise.
124 (Target_powerpc::Branch_info::make_stub): Add a stub for notoc
125 calls to functions needing a valid toc pointer.
126 (Target_powerpc::do_relax): Layout stubs again if any need resize.
127 (add_12_11_12, addi_12_11, addis_12_11, ldx_12_11_12, ori_12_12_0),
128 (oris_12_12_0, sldi_12_12_32): Define.
129 (Stub_table::Plt_stub_ent): Add notoc_ and iter_ fields.
130 (Stub_table::Branch_stub_key, Branch_stub_key_hash): Rename from
131 Branch_stub_ent and Branch_stub_ent hash. Remove save_res_ from key.
132 (Stub_table::Branch_stub_ent): New struct.
133 (class Stub_table): Add need_resize and resizing vars.
134 (Stub_table::need_resize, branch_size): New accessors.
135 (Stub_table::set_resizing): New function.
136 (Stub_table::add_plt_call_entry): Handle notoc calls and resizing
137 on seeing such or a tocsave stubs after a normal stub using the
138 same sym.
139 (Stub_table::add_long_branch_entry): Similarly.
140 (Stub_table::find_long_branch_entry): Return a Branch_stub_ent*.
141 (Stub_table::define_stub_syms): Adjust
142 (Stub_table::build_tls_opt_head, build_tls_opt_tail): New functions.
143 (build_notoc_offset): New function.
144 (Stub_table::plt_call_size): Move out of line. Handle notoc calls.
145 (Stub_table::branch_stub_size): Similarly.
146 (Stub_table::do_write): Separate loop for ELFv2 stubs, handling
147 notoc calls. Simplify ELFv1 loop. Output notoc branch stubs.
148 Use build_tls_opt_head and build_tls_opt_tail.
149 (Target_powerpc::Scan::get_reference_flags): Handle REL24_NOTOC.
150 (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Likewise,
151 and PLTSEQ_NOTOC and PLTCALL_NOTOC.
152 (Target_powerpc::Scan::local, global, relocate): Likewise.
153
f60c61e6
AM
1542019-06-28 Alan Modra <amodra@gmail.com>
155
156 * powerpc.cc (Target_powerpc::Relocate::relocate): Don't look
157 at next/previous reloc when relnum is -1.
158
f073a3e8
AM
1592019-06-28 Alan Modra <amodra@gmail.com>
160
161 * powerpc.cc (Stub_table::plt_error): New function.
162 (Stub_table::do_write): Use it.
163 (Output_data_glink::do_write): Don't segfault emitting linkage
164 table error.
165
c432bbba
AM
1662019-06-28 Alan Modra <amodra@gmail.com>
167
168 * powerpc.cc (Target_powerpc::Scan::get_reference_flags): Handle
169 REL16_HIGH* relocs.
170 (Target_powerpc::Scan::local): Likewise.
171 (Target_powerpc::Scan::global): Likewise.
172 (Target_powerpc::Relocate::relocate): Likewise.
173
a3972330
ML
1742019-06-10 Martin Liska <mliska@suse.cz>
175
176 * errors.h: Include string.
177
e173ea00
JO
1782019-05-10 Joshua Oreman <oremanj@hudson-trading.com>
179
180 PR gold/21066
181 * gc.h (gc_process_relocs): Track relocations in .eh_frame sections
182 when ICF is enabled, even though the .eh_frame sections themselves
183 are not foldable.
184 * icf.cc (get_section_contents): Change arguments to permit operation
185 on just part of a section. Include extra identity regions in the
186 referring section's contents recursively.
187 (match_sections): Lock object here instead of in get_section_contents
188 so that get_section_contents can operate recursively.
189 (Icf::add_ehframe_links): New method.
190 (Icf::find_identical_sections): Pass .eh_frame sections to
191 add_ehframe_links(). Increase default iteration count from 2 to 3
192 because handling exception info typically requires one extra iteration.
193 * icf.h (Icf::extra_identity_list_): New data member with accessor.
194 (is_section_foldable_candidate): Include .gcc_except_table sections.
195 * options.h: Update documentation for new default ICF iteration count.
196 * testsuite/Makefile.am (icf_test_pr21066): New test case.
197 * testsuite/Makefile.in: Regenerate.
198 * testsuite/icf_test_pr21066.cc: New source file.
199 * testsuite/icf_test_pr21066.sh: New test script.
200
7ae39e2d
EB
2012019-02-19 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
202
203 PR gold/23870
204 * aarch64.cc (Target_aarch64::Scan::global): Check if a symbol with
205 R_AARCH64_MOVW_.ABS_* relocations requires a PLT entry.
206 * testsuite/Makefile.am: Add aarch64_pr23870 test case.
207 * testsuite/Makefile.in: Regenerate.
208 * testsuite/aarch64_pr23870_bar.c: New file.
209 * testsuite/aarch64_pr23870_foo.c: New file.
210 * testsuite/aarch64_pr23870_main.S: New file.
211
e4865945
NC
2122019-02-12 Nick Clifton <nickc@redhat.com>
213
214 * po/fr.po: Updated French translation.
215
375cd423
NC
2162019-01-21 Nick Clifton <nickc@redhat.com>
217
218 * po/uk.po: Updated Ukranian translation.
219
f48dfe41
NC
2202019-01-19 Nick Clifton <nickc@redhat.com>
221
222 * po/gold.pot: Regenerate.
223
f974f26c
NC
2242018-06-24 Nick Clifton <nickc@redhat.com>
225
226 2.32 branch created.
227
3107326d
AP
2282019-01-09 Andrew Paprocki <andrew@ishiboo.com>
229
230 * configure: Regenerate.
231
82704155
AM
2322019-01-01 Alan Modra <amodra@gmail.com>
233
234 Update year range in copyright notice of all files.
235
d5c04e1b 236For older changes see ChangeLog-2018
3499769a 237\f
d5c04e1b 238Copyright (C) 2019 Free Software Foundation, Inc.
3499769a
AM
239
240Copying and distribution of this file, with or without modification,
241are permitted in any medium without royalty provided the copyright
242notice and this notice are preserved.
243
244Local Variables:
245mode: change-log
246left-margin: 8
247fill-column: 74
248version-control: never
249End:
This page took 0.213781 seconds and 4 git commands to generate.