]>
Commit | Line | Data |
---|---|---|
4a403be0 CC |
1 | 2021-03-12 Clément Chigot <clement.chigot@atos.net> |
2 | ||
3 | * reloc.c (BFD_RELOC_PPC_TOC16_HI, BFD_RELOC_PPC_TOC16_LO): | |
4 | New relocations. | |
5 | * bfd-in2.h: Regenerate. | |
6 | * libbfd.h: Regenerate. | |
7 | * coff-rs6000.c (xcoff_calculate_relocation): Call | |
8 | xcoff_reloc_type_toc for R_TOCU and R_TOCL. | |
9 | (xcoff_howto_table): Remove src_mask for TOC relocations. | |
10 | Add R_TOCU and R_TOCL howtos. | |
11 | (_bfd_xcoff_reloc_type_lookup): Add cases for | |
12 | BFD_RELOC_PPC_TOC16_HI and BFD_RELOC_PPC_TOC16_LO. | |
13 | (xcoff_reloc_type_toc): Compute the whole offset. | |
14 | Implement R_TOCU and R_TOCL. | |
15 | * coff64-rs6000.c (xcoff64_calculate_relocation): | |
16 | Likewise. | |
17 | (xcoff64_howto_table): Likewise. | |
18 | (xcoff64_reloc_type_lookup): Likewise. | |
19 | ||
2c1bef53 CC |
20 | 2021-03-12 Clément Chigot <clement.chigot@atos.net> |
21 | ||
22 | * coff-rs6000.c (xcoff_calculate_relocation): Correct and | |
23 | add new relocations. | |
24 | (xcoff_howto_table): Likewise. | |
25 | (xcoff_rtype2howto): Increase r_type maximum value. | |
26 | (xcoff_ppc_relocate_section): Reuse predefined HOWTOs instead | |
27 | of create a new one from scratch. Enable only some relocations | |
28 | to have a changing r_size. | |
29 | * coff64-rs6000.c (xcoff64_calculate_relocation): Likewise. | |
30 | (xcoff64_howto_table): Likewise. | |
31 | (xcoff64_rtype2howto): Likewise. | |
32 | (xcoff64_ppc_relocate_section): Likewise. | |
33 | * libxcoff.h (XCOFF_MAX_CALCULATE_RELOCATION): Fix value. | |
34 | ||
0c929e83 CC |
35 | 2021-03-12 Clément Chigot <clement.chigot@atos.net> |
36 | ||
37 | * coff64-rs6000.c (xcoff64_ppc_relocate_section): Move. | |
38 | ||
6d4d9328 CC |
39 | 2021-03-12 Clément Chigot <clement.chigot@atos.net> |
40 | ||
41 | * coff64-rs6000.c (xcoff64_write_object_contents): Remove. | |
42 | * coffcode.h (coff_write_object_contents): Add bfd_mach_ppc_620 | |
43 | support for o_cputype field. Avoid creating an empty a.out header | |
44 | for XCOFF64. | |
45 | ||
8aa2d023 CC |
46 | 2021-03-12 Clément Chigot <clement.chigot@atos.net> |
47 | ||
48 | * coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add | |
49 | missing smclass. | |
50 | ||
ebdcad3f NC |
51 | 2021-03-11 Nelson Chu <nelson.chu@sifive.com> |
52 | ||
53 | * elfnn-riscv.c (riscv_elf_link_hash_table): New boolean | |
54 | restart_relax, used to check if we need to run the whole | |
55 | relaxations from relax pass 0 to 2 again. | |
56 | (riscv_elf_link_hash_table_create): Init restart_relax to FALSE. | |
57 | (_bfd_riscv_relax_align): Remove obsolete sec_flg0 set. | |
58 | (_bfd_riscv_relax_delete): Set again to TRUE if we do delete the code. | |
59 | (bfd_elfNN_riscv_restart_relax_sections): New function. Called by | |
60 | after_allocation to check if we need to run the whole relaxations again. | |
61 | (_bfd_riscv_relax_section): We will only enter into the relax pass 3 | |
62 | when the restart_relax is FALSE; At last set restart_relax to TRUE if | |
63 | again is TRUE, too. | |
64 | * elfxx-riscv.h (bfd_elf32_riscv_restart_relax_sections): Declaration. | |
65 | (bfd_elf64_riscv_restart_relax_sections): Likewise. | |
66 | ||
67b0f684 JB |
67 | 2021-03-10 Jan Beulich <jbeulich@suse.com> |
68 | ||
69 | * cofflink.c (_bfd_coff_write_global_sym): Range-check symbol | |
70 | offset. | |
71 | ||
2dfa8341 AM |
72 | 2021-03-10 Alan Modra <amodra@gmail.com> |
73 | Jan Beulich <jbeulich@suse.com> | |
74 | ||
75 | * elf.c (bfd_elf_generic_reloc): Make references between debug | |
76 | sections use section relative values. | |
77 | ||
87fa7d56 JB |
78 | 2021-03-09 Jan Beulich <jbeulich@suse.com> |
79 | ||
80 | * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA. | |
81 | ||
8c0546e9 L |
82 | 2021-03-05 H.J. Lu <hongjiu.lu@intel.com> |
83 | ||
84 | PR ld/27425 | |
85 | PR ld/27432 | |
86 | * bfd.c (_bfd_get_link_info): New function. | |
87 | * elf-bfd.h (output_elf_obj_tdata): Add link_info. | |
88 | (elf_link_info): New. | |
89 | * libbfd-in.h (_bfd_get_link_info): New prototype. | |
90 | * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for | |
91 | R_AMD64_IMAGEBASE when generating x86-64 ELF executable. | |
92 | * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h". | |
93 | (pex64_link_add_symbols): New function. | |
94 | (coff_bfd_link_add_symbols): New macro. | |
95 | * libbfd.h: Regenerated. | |
96 | ||
db6092f3 AB |
97 | 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com> |
98 | Andrew Burgess <andrew.burgess@embecosm.com> | |
99 | ||
100 | * elf-bfd.h (elfcore_write_riscv_csr): Declare. | |
101 | * elf.c (elfcore_grok_riscv_csr): New function. | |
102 | (elfcore_grok_note): Handle NT_RISCV_CSR. | |
103 | (elfcore_write_riscv_csr): New function. | |
104 | (elfcore_write_register_note): Handle '.reg-riscv-csr'. | |
105 | ||
0897bb7d AB |
106 | 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com> |
107 | Andrew Burgess <andrew.burgess@embecosm.com> | |
108 | ||
109 | * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define. | |
110 | (PRPSINFO_PR_PSARGS_LENGTH): Define. | |
111 | (riscv_write_core_note): New function. | |
112 | (riscv_elf_grok_psinfo): Make use of two new length defines. | |
113 | (elf_backend_write_core_note): Define. | |
114 | ||
b63a5e38 AB |
115 | 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com> |
116 | Andrew Burgess <andrew.burgess@embecosm.com> | |
117 | ||
118 | * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function. | |
119 | * elf.c (elfcore_grok_gdb_tdesc): New function. | |
120 | (elfcore_grok_note): Handle NT_GDB_TDESC. | |
121 | (elfcore_write_gdb_tdesc): New function. | |
122 | (elfcore_write_register_note): Handle NT_GDB_TDESC. | |
123 | ||
2017f387 NC |
124 | 2021-03-05 Nick Clifton <nickc@redhat.com> |
125 | ||
126 | PR 27521 | |
127 | * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms. | |
128 | (read_indexed_string): Placeholder function. | |
129 | (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx* | |
130 | forms. | |
131 | ||
b01b5d9a AM |
132 | 2021-03-05 Alan Modra <amodra@gmail.com> |
133 | ||
134 | * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and | |
135 | 2020-09-16 changes. | |
136 | * coff-x86_64.c (coff_amd64_reloc): Do more or less the same | |
137 | adjustments here instead. Separate pc-relative adjustments | |
138 | from symbol related adjustments. Tidy comments and formatting. | |
139 | ||
6b5465b9 JB |
140 | 2021-03-04 Jan Beulich <jbeulich@suse.com> |
141 | ||
142 | * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in | |
143 | final PE images. | |
144 | ||
0b7733b6 AM |
145 | 2021-03-04 Alan Modra <amodra@gmail.com> |
146 | ||
147 | * rs6000-core.c (rs6000coff_core_p): Correct prototype. | |
148 | ||
5789f845 AM |
149 | 2021-03-03 Alan Modra <amodra@gmail.com> |
150 | ||
151 | PR 27500 | |
152 | * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop | |
153 | processing not when start/stop symbol section is unmarked but | |
154 | on first time a start/stop symbol is processed. | |
155 | ||
dc83f2d2 AM |
156 | 2021-03-03 Alan Modra <amodra@gmail.com> |
157 | ||
158 | * reloc.c: Include x86_64.h rather than internal.h. | |
159 | ||
ca8f6bc6 NC |
160 | 2021-03-02 Nick Clifton <nickc@redhat.com> |
161 | ||
162 | PR 27484 | |
163 | * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate | |
164 | function and variable tags and a second time to resolve their | |
165 | attributes. | |
166 | ||
211bcd01 NA |
167 | 2021-03-02 Nick Alcock <nick.alcock@oracle.com> |
168 | ||
169 | * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount. | |
170 | ||
b80e421f AM |
171 | 2021-03-02 Alan Modra <amodra@gmail.com> |
172 | ||
173 | PR 27451 | |
174 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized | |
175 | linker defined start/stop symbols when start_stop_gc. | |
176 | ||
f5b9c288 AM |
177 | 2021-03-02 Alan Modra <amodra@gmail.com> |
178 | ||
179 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got | |
180 | indirect to pc-relative or toc-relative for undefined symbols. | |
181 | ||
8ee10e86 AM |
182 | 2021-03-01 Alan Modra <amodra@gmail.com> |
183 | Fangrui Song <maskray@google.com> | |
184 | ||
185 | * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker | |
186 | defined start/stop symbols when start_stop_gc. | |
187 | (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise. | |
188 | (bfd_elf_define_start_stop): Don't modify ldscript_def syms. | |
189 | * linker.c (bfd_generic_define_start_stop): Likewise. | |
190 | ||
bbaddd4b AM |
191 | 2021-02-25 Alan Modra <amodra@gmail.com> |
192 | ||
193 | PR 27441 | |
194 | * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak. | |
195 | * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and | |
196 | use when deciding an as-needed library should be loaded instead | |
197 | of using the binding of the library definition. | |
198 | ||
93af1b04 AM |
199 | 2021-02-24 Alan Modra <amodra@gmail.com> |
200 | ||
201 | PR 27459 | |
202 | * coff-stgo32.c (go32exe_check_format): Sanity check size of | |
203 | header to avoid a buffer overflow. | |
204 | ||
e9d18e06 AM |
205 | 2021-02-22 Alan Modra <amodra@gmail.com> |
206 | ||
207 | * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16. | |
208 | * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise. | |
209 | ||
5a9f5403 NC |
210 | 2021-02-19 Nelson Chu <nelson.chu@sifive.com> |
211 | ||
212 | PR 27158 | |
213 | * elfnn-riscv.c (perform_relocation): Updated encoding macros. | |
214 | (_bfd_riscv_relax_call): Likewise. | |
215 | (_bfd_riscv_relax_lui): Likewise. | |
216 | * elfxx-riscv.c (howto_table): Likewise. | |
217 | ||
3d73d29e NC |
218 | 2021-02-18 Nelson Chu <nelson.chu@sifive.com> |
219 | ||
220 | * Makefile.am: Added cpu-riscv.h. | |
221 | * Makefile.in: Regenerated. | |
222 | * po/SRC-POTFILES.in: Regenerated. | |
223 | * cpu-riscv.h: Added to support spec versions controlling. | |
224 | Also added extern arrays and functions for cpu-riscv.c. | |
225 | (enum riscv_spec_class): Define all spec classes here uniformly. | |
226 | (struct riscv_spec): Added for all specs. | |
227 | (RISCV_GET_SPEC_CLASS): Added to reduce repeated code. | |
228 | (RISCV_GET_SPEC_NAME): Likewise. | |
229 | (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class. | |
230 | (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class. | |
231 | (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name. | |
232 | * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec. | |
233 | (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS. | |
234 | (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME. | |
235 | (riscv_priv_specs): Moved below. | |
236 | (riscv_get_priv_spec_class_from_numbers): Likewise, updated. | |
237 | (riscv_isa_specs): Moved from include/opcode/riscv.h. | |
238 | * elfnn-riscv.c: Included cpu-riscv.h. | |
239 | (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec. | |
240 | * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h. | |
241 | (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h. | |
242 | * elfxx-riscv.h: Removed extern functions to cpu-riscv.h. | |
243 | ||
b9b204b3 AM |
244 | 2021-02-17 Alan Modra <amodra@gmail.com> |
245 | ||
246 | * wasm-module.c: Guard include of limits.h. | |
247 | (CHAR_BIT): Provide backup define. | |
248 | (wasm_read_leb128): Use CHAR_BIT to size "result" in bits. | |
249 | Correct signed overflow checking. | |
250 | ||
0d6aab77 NC |
251 | 2021-02-17 Nelson Chu <nelson.chu@sifive.com> |
252 | ||
253 | PR 27200 | |
254 | * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay | |
255 | copying the elf flags from input BFD to output BFD, until we have | |
256 | checked if the input BFD has no code section or not. Also fix the | |
257 | problem that we only check the first section rather than the entire | |
258 | sections for input BFD. | |
259 | ||
7b54cadd AM |
260 | 2021-02-16 Alan Modra <amodra@gmail.com> |
261 | ||
262 | * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift. | |
263 | (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise. | |
264 | ||
8c674061 JB |
265 | 2021-02-15 Jan Beulich <jbeulich@suse.com> |
266 | ||
267 | * doc/Makefile.am: Replace "cp -p" by "$(LN_S)". | |
268 | * doc/Makefile.in: Re-generate. | |
269 | ||
1781a9d0 AM |
270 | 2021-02-15 Alan Modra <amodra@gmail.com> |
271 | ||
272 | * elf32-nds32.c (nds32_get_section_contents): Replace | |
273 | bfd_malloc_and_get_section with bfd_get_full_section_contents. | |
274 | (nds32_elf_relax_delete_blanks): Init contents. | |
275 | (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise. | |
276 | ||
8b78cbec AM |
277 | 2021-02-15 Alan Modra <amodra@gmail.com> |
278 | ||
279 | * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use | |
280 | bfd_get_full_section_contents. | |
281 | ||
d7a7af8f AM |
282 | 2021-02-14 Alan Modra <amodra@gmail.com> |
283 | ||
284 | * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply | |
285 | all fixes to bfd_generic_get_relocated_section_contents since this | |
286 | function was split out. | |
287 | ||
234b98ce AM |
288 | 2021-02-11 Alan Modra <amodra@gmail.com> |
289 | ||
290 | * config.bfd: Remove ia64 from obsolete list. | |
291 | ||
769c253f AM |
292 | 2021-02-11 Alan Modra <amodra@gmail.com> |
293 | ||
294 | PR ld/22269 | |
295 | * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234. | |
296 | ||
31c711a2 AM |
297 | 2021-02-11 Alan Modra <amodra@gmail.com> |
298 | ||
299 | PR 27294 | |
300 | * elf32-avr.c (avr_elf32_load_records_from_section): Use | |
301 | bfd_malloc_and_get_section. Use bfd_byte* vars and remove then | |
302 | unnecessary casts. | |
303 | ||
6db658c5 AM |
304 | 2021-02-11 Alan Modra <amodra@gmail.com> |
305 | ||
306 | PR 27291 | |
307 | * section.c (bfd_get_section_contents): Avoid possible overflow | |
308 | when range checking offset and count. | |
309 | (bfd_set_section_contents): Likewise. | |
310 | ||
95148614 NA |
311 | 2021-02-03 Nick Alcock <nick.alcock@oracle.com> |
312 | ||
313 | * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in | |
314 | favour of LIBINTL. | |
315 | * configure: Regenerated. | |
316 | ||
a57d1773 AM |
317 | 2021-02-09 Alan Modra <amodra@gmail.com> |
318 | ||
319 | * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed. | |
320 | * configure.ac: Delete symbian entries. | |
321 | * elf-bfd.h (enum elf_target_os): Delete is_symbian. | |
322 | * elf32-arm.c: Remove symbian support. Formatting. | |
323 | * targets.c: Delete symbian entries. | |
324 | * configure: Regenerate. | |
325 | ||
1a2f1b54 L |
326 | 2021-02-04 H.J. Lu <hongjiu.lu@intel.com> |
327 | ||
328 | PR ld/19609 | |
329 | * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more | |
330 | info when failed to convert GOTPCREL relocation. | |
331 | ||
24075dcc NC |
332 | 2021-02-04 Nelson Chu <nelson.chu@sifive.com> |
333 | ||
334 | * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*. | |
335 | ||
7d409ac0 AM |
336 | 2021-02-04 Alan Modra <amodra@gmail.com> |
337 | ||
338 | PR 27311 | |
339 | * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed | |
340 | libraries for IR references on pass over libraries after LTO | |
341 | recompilation. | |
342 | ||
f01fb44c AM |
343 | 2021-02-03 Alan Modra <amodra@gmail.com> |
344 | ||
345 | PR 27311 | |
346 | * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes. | |
347 | (elf_link_add_object_symbols): Here too. Don't pull in as-needed | |
348 | libraries when H is an indirect symbol after calling | |
349 | _bfd_elf_add_default_symbol. | |
350 | ||
69551367 AM |
351 | 2021-02-03 Alan Modra <amodra@gmail.com> |
352 | ||
353 | PR 27311 | |
354 | * elflink.c (_bfd_elf_add_default_symbol): Clear override when | |
355 | undecorated symbol will have a different version. | |
356 | ||
9918bff7 AM |
357 | 2021-02-02 Alan Modra <amodra@gmail.com> |
358 | ||
359 | PR 27311 | |
360 | * elflink.c (_bfd_elf_add_default_symbol): Add override parameter. | |
361 | Use when handling default versioned symbol. Rename existing | |
362 | override variable to nondef_override and use for non-default | |
363 | versioned symbol. | |
364 | (elf_link_add_object_symbols): Adjust call to suit. Don't | |
365 | pull in as-needed libraries when override is set. | |
366 | ||
1f568f9a EH |
367 | 2021-02-01 Emery Hemingway <ehmry@posteo.net> |
368 | ||
369 | * config.bfd: Add *-*-genode* as a target for AArch64 and x86. | |
370 | ||
34c10233 EV |
371 | 2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru> |
372 | ||
373 | PR 27254 | |
374 | * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of | |
375 | offset for the R_RL78_RH_SADDR relocation. | |
376 | ||
c4566785 AM |
377 | 2021-01-29 Alan Modra <amodra@gmail.com> |
378 | ||
379 | PR 27271 | |
380 | * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault | |
381 | on symbols defined in absolute or other special sections. | |
382 | ||
def97fb9 AM |
383 | 2021-01-28 Alan Modra <amodra@gmail.com> |
384 | ||
385 | PR 27259 | |
386 | * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to | |
387 | prevent endless looping of linked-to sections. | |
388 | ||
4cb1265b MS |
389 | 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com> |
390 | ||
391 | * bfd-elf.h (elfcore_write_file_note): New function. | |
392 | * elf.c (elfcore_write_file_note): New function. | |
393 | ||
4287950e AM |
394 | 2021-01-26 Alan Modra <amodra@gmail.com> |
395 | ||
396 | * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0]. | |
397 | ||
940d0202 L |
398 | 2021-01-24 H.J. Lu <hongjiu.lu@intel.com> |
399 | ||
400 | PR binutils/27231 | |
401 | * dwarf2.c (read_rnglists): Ignore empty range when parsing line | |
402 | number tables. | |
403 | ||
18454c15 L |
404 | 2021-01-23 H.J. Lu <hongjiu.lu@intel.com> |
405 | ||
406 | PR binutils/27231 | |
407 | * dwarf2.c (read_rnglists): Advance rngs_ptr after | |
408 | _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair. | |
409 | ||
4bd7c902 AM |
410 | 2021-01-20 Alan Modra <amodra@gmail.com> |
411 | ||
412 | * elf32-ppc.c: Delete outdated comment. | |
413 | (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define. | |
414 | * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define. | |
415 | ||
8bd10d6b AM |
416 | 2021-01-20 Alan Modra <amodra@gmail.com> |
417 | ||
418 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume | |
419 | section symbols are present. | |
420 | ||
30845f11 AM |
421 | 2021-01-19 Alan Modra <amodra@gmail.com> |
422 | ||
423 | * elf64-ppc.c (elf_hash_entry): New inline function. Use | |
424 | throughout to replace casts. | |
425 | (branch_reloc_hash_match): Remove const from params. | |
426 | (use_local_plt): New function. | |
427 | (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub), | |
428 | (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section): | |
429 | Use use_local_plt. | |
430 | * elf32-ppc.c (use_local_plt): New function. | |
431 | (allocate_dynrelocs, ppc_elf_relocate_section), | |
432 | (write_global_sym_plt): Use use_local_plt. | |
433 | ||
994b2513 L |
434 | 2021-01-17 H.J. Lu <hongjiu.lu@intel.com> |
435 | ||
436 | PR ld/27193 | |
437 | * elflink.c (elf_create_symbuf): Also ignore section symbols. | |
438 | ||
75a933f3 L |
439 | 2021-01-16 H.J. Lu <hongjiu.lu@intel.com> |
440 | ||
441 | PR ld/23169 | |
442 | * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't | |
443 | check pointer_equality_needed. | |
444 | ||
68b00778 L |
445 | 2021-01-15 H.J. Lu <hongjiu.lu@intel.com> |
446 | ||
447 | * elf-linker-x86.h (elf_linker_x86_params): Add | |
448 | report_relative_reloc. | |
449 | * elf32-i386.c (elf_i386_relocate_section): Call | |
450 | _bfd_x86_elf_link_report_relative_reloc to report relative | |
451 | relocations for -z report-relative-reloc. | |
452 | (elf_i386_finish_dynamic_symbol): Likewse. | |
453 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse. | |
454 | (elf_x86_64_finish_dynamic_symbol): Likewse. | |
455 | * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New | |
456 | function. | |
457 | * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New | |
458 | prototype. | |
459 | ||
ad92f33d AM |
460 | 2021-01-16 Alan Modra <amodra@gmail.com> |
461 | ||
462 | * compress.c (decompress_contents): Tidy inflateEnd result test. | |
463 | ||
eb6e6af8 AM |
464 | 2021-01-16 Alan Modra <amodra@gmail.com> |
465 | ||
466 | PR 26002 | |
467 | * elflink.c (elf_link_output_extsym): Use version 1 in | |
468 | .gnu.version for undefined unversioned symbols. | |
469 | ||
4bb5732e NC |
470 | 2021-01-15 Nelson Chu <nelson.chu@sifive.com> |
471 | ||
472 | * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that | |
473 | caused the by previous commit accidentally. | |
474 | ||
1942a048 NC |
475 | 2021-01-15 Nelson Chu <nelson.chu@sifive.com> |
476 | ||
477 | * elfnn-riscv.c: Indent, labels and GNU coding standards tidy, | |
478 | also aligned the code. | |
479 | ||
b800637e NC |
480 | 2021-01-15 Nelson Chu <nelson.chu@sifive.com> |
481 | ||
482 | * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages. | |
483 | ||
dcd709e0 NC |
484 | 2021-01-15 Nelson Chu <nelson.chu@sifive.com> |
485 | ||
486 | * elfnn-riscv.c: Comments tidy and improvement. | |
487 | * elfxx-riscv.c: Likewise. | |
488 | * elfxx-riscv.h: Likewise. | |
489 | ||
8ca9c7eb L |
490 | 2021-01-14 H.J. Lu <hongjiu.lu@intel.com> |
491 | ||
492 | PR ld/26688 | |
493 | * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC | |
494 | section for R_BFIN_FUNCDESC. | |
495 | ||
7e0d77ef NC |
496 | 2021-01-14 Nick Clifton <nickc@redhat.com> |
497 | ||
498 | * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0. | |
499 | ||
5347ed60 AM |
500 | 2021-01-13 Alan Modra <amodra@gmail.com> |
501 | ||
502 | * Makefile.in: Regenerate. | |
503 | * doc/Makefile.in: Regenerate. | |
504 | ||
b209b5a6 AM |
505 | 2021-01-13 Alan Modra <amodra@gmail.com> |
506 | ||
507 | PR 27160 | |
508 | * section.c (struct bfd_section): Remove pattern field. | |
509 | (BFD_FAKE_SECTION): Adjust to suit. | |
510 | * bfd-in2.h: Regenerate. | |
511 | * elflink.c (compare_link_order, elf_fixup_link_order): Delete. | |
512 | (bfd_elf_final_link): Don't call elf_fixup_link_order. | |
513 | ||
d546b610 L |
514 | 2021-01-12 H.J. Lu <hongjiu.lu@intel.com> |
515 | ||
516 | PR binutils/26792 | |
517 | * configure.ac: Use GNU_MAKE_JOBSERVER. | |
518 | * aclocal.m4: Regenerated. | |
519 | * configure: Likewise. | |
520 | ||
c2e9a4a3 L |
521 | 2021-01-12 H.J. Lu <hongjiu.lu@intel.com> |
522 | ||
523 | PR ld/27171 | |
524 | * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and | |
525 | R_AMD64_DIR32 relocations for PE/x86-64 inputs. | |
526 | ||
83b33c6c L |
527 | 2021-01-11 H.J. Lu <hongjiu.lu@intel.com> |
528 | ||
529 | PR ld/27173 | |
530 | * configure: Regenerated. | |
531 | ||
a8aa72b9 NC |
532 | 2021-01-11 Nick Clifton <nickc@redhat.com> |
533 | ||
534 | * po/fr.po: Updated French translation. | |
535 | * po/pt.po: Updated Portuguese translation. | |
536 | * po/sr.po: Updated Serbian translation. | |
537 | * po/uk.po: Updated Ukranian translation. | |
538 | ||
a4966cd9 L |
539 | 2021-01-09 H.J. Lu <hongjiu.lu@intel.com> |
540 | ||
541 | * configure: Regenerated. | |
542 | ||
0a94990b L |
543 | 2021-01-09 H.J. Lu <hongjiu.lu@intel.com> |
544 | ||
545 | PR ld/27166 | |
546 | * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle | |
547 | -z lam-u48 and -z lam-u57. | |
548 | ||
573fe3fb NC |
549 | 2021-01-09 Nick Clifton <nickc@redhat.com> |
550 | ||
551 | * version.m4: Change to 2.36.50. | |
552 | * configure: Regenerate. | |
553 | * po/bfd.pot: Regenerate. | |
554 | ||
055bc77a NC |
555 | 2021-01-09 Nick Clifton <nickc@redhat.com> |
556 | ||
557 | * 2.36 release branch crated. | |
558 | ||
ba9e922f L |
559 | 2021-01-08 H.J. Lu <hongjiu.lu@intel.com> |
560 | ||
561 | * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set | |
562 | LAM_U57 when setting LAM_U48. | |
563 | ||
b1b29aa5 L |
564 | 2021-01-08 H.J. Lu <hongjiu.lu@intel.com> |
565 | ||
566 | PR ld/26256 | |
567 | PR ld/27160 | |
568 | * elflink.c (elf_fixup_link_order): Verify that fixing up | |
569 | SHF_LINK_ORDER doesn't increase the output section size. | |
570 | ||
64307045 AM |
571 | 2021-01-09 Alan Modra <amodra@gmail.com> |
572 | ||
573 | * configure: Regenerate. | |
574 | ||
f4782128 ST |
575 | 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org> |
576 | ||
577 | * configure: Regenerate. | |
578 | ||
d1bcae83 L |
579 | 2021-01-07 H.J. Lu <hongjiu.lu@intel.com> |
580 | ||
581 | PR 27109 | |
582 | * aix386-core.c (core_aix386_vec): Initialize | |
583 | keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS. | |
584 | * aout-target.h (MY (vec)): Likewise. | |
585 | * binary.c (binary_vec): Likewise. | |
586 | * cisco-core.c (core_cisco_be_vec): Likewise. | |
587 | (core_cisco_le_vec): Likewise. | |
588 | * coff-alpha.c (alpha_ecoff_le_vec): Likewise. | |
589 | * coff-i386.c (TARGET_SYM): Likewise. | |
590 | (TARGET_SYM_BIG): Likewise. | |
591 | * coff-ia64.c (TARGET_SYM): Likewise. | |
592 | * coff-mips.c (mips_ecoff_le_vec): Likewise. | |
593 | (mips_ecoff_be_vec): Likewise. | |
594 | (mips_ecoff_bele_vec): Likewise. | |
595 | * coff-rs6000.c (rs6000_xcoff_vec): Likewise. | |
596 | (powerpc_xcoff_vec): Likewise. | |
597 | * coff-sh.c (sh_coff_small_vec): Likewise. | |
598 | (sh_coff_small_le_vec): Likewise. | |
599 | * coff-tic30.c (tic30_coff_vec): Likewise. | |
600 | * coff-tic54x.c (tic54x_coff0_vec): Likewise. | |
601 | (tic54x_coff0_beh_vec): Likewise. | |
602 | (tic54x_coff1_vec): Likewise. | |
603 | (tic54x_coff1_beh_vec): Likewise. | |
604 | (tic54x_coff2_vec): Likewise. | |
605 | (tic54x_coff2_beh_vec): Likewise. | |
606 | * coff-x86_64.c (TARGET_SYM): Likewise. | |
607 | (TARGET_SYM_BIG): Likewise. | |
608 | * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise. | |
609 | (rs6000_xcoff64_aix_vec): Likewise. | |
610 | * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise. | |
611 | (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise. | |
612 | (CREATE_LITTLE_COFF_TARGET_VEC): Likewise. | |
613 | * elfxx-target.h (TARGET_BIG_SYM): Likewise. | |
614 | (TARGET_LITTLE_SYM): Likewise. | |
615 | * hppabsd-core.c (core_hppabsd_vec): Likewise. | |
616 | * hpux-core.c (core_hpux_vec): Likewise. | |
617 | * i386msdos.c (i386_msdos_vec): Likewise. | |
618 | * ihex.c (ihex_vec): Likewise. | |
619 | * irix-core.c (core_irix_vec): Likewise. | |
620 | * mach-o-target.c (TARGET_NAME): Likewise. | |
621 | * mmo.c (mmix_mmo_vec): Likewise. | |
622 | * netbsd-core.c (core_netbsd_vec): Likewise. | |
623 | * osf-core.c (core_osf_vec): Likewise. | |
624 | * pdp11.c (MY (vec)): Likewise. | |
625 | * pef.c (pef_vec): Likewise. | |
626 | (pef_xlib_vec): Likewise. | |
627 | * plugin.c (plugin_vec): Likewise. | |
628 | * ppcboot.c (powerpc_boot_vec): Likewise. | |
629 | * ptrace-core.c (core_ptrace_vec): Likewise. | |
630 | * sco5-core.c (core_sco5_vec): Likewise. | |
631 | * som.c (hppa_som_vec): Likewise. | |
632 | * srec.c (srec_vec): Likewise. | |
633 | (symbolsrec_vec): Likewise. | |
634 | * tekhex.c (tekhex_vec): Likewise. | |
635 | * trad-core.c (core_trad_vec): Likewise. | |
636 | * verilog.c (verilog_vec): Likewise. | |
637 | * vms-alpha.c (alpha_vms_vec): Likewise. | |
638 | * vms-lib.c (alpha_vms_lib_txt_vec): Likewise. | |
639 | * wasm-module.c (wasm_vec): Likewise. | |
640 | * xsym.c (sym_vec): Likewise. | |
641 | * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED | |
642 | isn't set. | |
643 | (elf_map_symbols): Don't include ignored section symbols. | |
644 | * elfcode.h (elf_slurp_symbol_table): Also set | |
645 | BSF_SECTION_SYM_USED on STT_SECTION symbols. | |
646 | * elflink.c (bfd_elf_final_link): Generated section symbols only | |
647 | when emitting relocations or reqired. | |
648 | * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New. | |
649 | * syms.c (BSF_SECTION_SYM_USED): New. | |
650 | * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New. | |
651 | (bfd_target): Add keep_unused_section_symbols. | |
652 | (bfd_keep_unused_section_symbols): New. | |
653 | * bfd-in2.h: Regenerated. | |
654 | ||
17d60030 NC |
655 | 2021-01-07 Nick Clifton <nickc@redhat.com> |
656 | ||
657 | PR 25713 | |
658 | * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to | |
659 | absolute paths and check to see if they are longer than MAX_PATH. | |
660 | ||
aa881ecd PT |
661 | 2021-01-07 Philipp Tomsich <prt@gnu.org> |
662 | ||
663 | * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause. | |
664 | ||
2652cfad CXW |
665 | 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com> |
666 | Jim Wilson <jimw@sifive.com> | |
667 | Andrew Waterman <andrew@sifive.com> | |
668 | Maxim Blinov <maxim.blinov@embecosm.com> | |
669 | Kito Cheng <kito.cheng@sifive.com> | |
670 | Nelson Chu <nelson.chu@sifive.com> | |
671 | ||
672 | * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc. | |
673 | ||
d4e57b87 L |
674 | 2021-01-06 H.J. Lu <hongjiu.lu@intel.com> |
675 | ||
676 | * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect. | |
677 | (bfinfdpic_check_relocs): Likewise. | |
678 | ||
599c86c4 AM |
679 | 2021-01-06 Alan Modra <amodra@gmail.com> |
680 | ||
681 | * elf32-score.c (s3_bfd_score_info_to_howto): Report an error | |
682 | on unknown r_type. | |
683 | * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise. | |
684 | ||
3677b729 AM |
685 | 2021-01-06 Alan Modra <amodra@gmail.com> |
686 | ||
687 | * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec. | |
688 | (sparc64-*-solaris2*): Add sparc_elf64_vec and | |
689 | sparc_elf32_vec. | |
690 | ||
fbc09e7a MC |
691 | 2021-01-06 Marcus Comstedt <marcus@mc.pp.se> |
692 | ||
693 | * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and | |
694 | riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec. | |
695 | * configure.ac: Handle riscv_elf[32|64]_be_vec. | |
696 | * configure: Regenerate. | |
697 | * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for | |
698 | riscv_is_insn_reloc. | |
699 | (riscv_get_insn): RISC-V instructions are always little endian, but | |
700 | bfd_get may be used for big-endian, so add new riscv_get_insn to handle | |
701 | the insturctions. | |
702 | (riscv_put_insn): Likewsie. | |
703 | (riscv_is_insn_reloc): Check if we are relocaing an instruction. | |
704 | (perform_relocation): Call riscv_is_insn_reloc to decide if we should | |
705 | use riscv_[get|put]_insn or bfd_[get|put]. | |
706 | (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32 | |
707 | or bfd_[get|put]l16 for code. | |
708 | (riscv_elf_relocate_section): Likewise. | |
709 | (riscv_elf_finish_dynamic_symbol): Likewise. | |
710 | (riscv_elf_finish_dynamic_sections): Likewise. | |
711 | (_bfd_riscv_relax_call): Likewise. | |
712 | (_bfd_riscv_relax_lui): Likewise. | |
713 | (_bfd_riscv_relax_align): Likewise. | |
714 | (_bfd_riscv_relax_pc): Likewise. | |
715 | (riscv_elf_object_p): Handled for big endian. | |
716 | (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined. | |
717 | * targets.c: Add riscv_elf[32|64]_be_vec. | |
718 | (_bfd_target_vector): Likewise. | |
719 | ||
c8bad65e AM |
720 | 2021-01-05 Alan Modra <amodra@gmail.com> |
721 | ||
722 | * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export | |
723 | for relocatable executable. | |
724 | ||
de6a7ee4 AM |
725 | 2021-01-05 Alan Modra <amodra@gmail.com> |
726 | ||
727 | * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check. | |
728 | ||
18b98722 NC |
729 | 2021-01-05 Nelson Chu <nelson.chu@sifive.com> |
730 | ||
731 | * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde, | |
732 | make sure gp symbol is output as a dynamic symbol. | |
733 | ||
cd6d537c L |
734 | 2021-01-04 H.J. Lu <hongjiu.lu@intel.com> |
735 | ||
736 | PR ld/26256 | |
737 | * elflink.c (compare_link_order): Place unordered sections before | |
738 | ordered sections. | |
739 | (elf_fixup_link_order): Add a link info argument. Allow mixed | |
740 | ordered and unordered input sections for non-relocatable link. | |
741 | Sort the consecutive bfd_indirect_link_order sections with the | |
742 | same pattern. Change the offsets of the bfd_indirect_link_order | |
743 | sections only. | |
744 | (bfd_elf_final_link): Pass info to elf_fixup_link_order. | |
745 | * section.c (bfd_section): Add pattern. | |
746 | (BFD_FAKE_SECTION): Initialize pattern to NULL. | |
747 | * bfd-in2.h: Regenerated. | |
748 | ||
dbb078f6 AF |
749 | 2021-01-04 Alexander Fedotov <alfedotov@gmail.com> |
750 | ||
751 | * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value | |
752 | of private flags with 0x. | |
753 | * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise. | |
754 | ||
5b4293ba AM |
755 | 2021-01-04 Alan Modra <amodra@gmail.com> |
756 | ||
757 | PR 26822 | |
758 | * elflink.c (elf_link_input_bfd): Use the file base name in | |
759 | linker generated STT_FILE symbols. | |
760 | ||
4c0e540e NC |
761 | 2021-01-04 Nelson Chu <nelson.chu@sifive.com> |
762 | ||
763 | * elfxx-riscv.c (riscv_compare_subsets): Removed static. | |
764 | * elfxx-riscv.h: Add declaration. | |
765 | * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use | |
766 | riscv_compare_subsets to check the orders. | |
767 | (riscv_skip_prefix): Removed. | |
768 | (riscv_prefix_cmp): Removed. | |
769 | ||
e9cf3691 AM |
770 | 2021-01-04 Alan Modra <amodra@gmail.com> |
771 | ||
772 | PR 26741 | |
773 | * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after | |
774 | calculating subset version length. | |
775 | ||
f9a6a8f0 AM |
776 | 2021-01-01 Nicolas Boulenguez <nicolas@debian.org> |
777 | ||
778 | * xcofflink.c: Correct spelling in comments. | |
779 | ||
250d07de AM |
780 | 2021-01-01 Alan Modra <amodra@gmail.com> |
781 | ||
782 | Update year range in copyright notice of all files. | |
783 | ||
c2795844 | 784 | For older changes see ChangeLog-2020 |
3499769a | 785 | \f |
c2795844 | 786 | Copyright (C) 2021 Free Software Foundation, Inc. |
3499769a AM |
787 | |
788 | Copying and distribution of this file, with or without modification, | |
789 | are permitted in any medium without royalty provided the copyright | |
790 | notice and this notice are preserved. | |
791 | ||
792 | Local Variables: | |
793 | mode: change-log | |
794 | left-margin: 8 | |
795 | fill-column: 74 | |
796 | version-control: never | |
797 | End: |