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