]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
[gdb/build, s390x] Fix build after gdbarch_tdep changes
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
cf487499
NC
12021-10-19 Nick Clifton <nickc@redhat.com>
2
3 * linker.c (_bfd_generic_link_add_one_symbol): Test for a NULL
4 name before checking to see if the symbol is __gnu_lto_slim.
5 * archive.c (_bfd_compute_and_write_armap): Likewise.
6
b9004024
NA
72021-09-27 Nick Alcock <nick.alcock@oracle.com>
8
9 * configure: Regenerate.
10
b4745472
AB
112021-09-15 Andrew Burgess <andrew.burgess@embecosm.com>
12
13 * archures.c (bfd_arch_list): Use 'char *' instead of 'char **'
14 when calculating space for a string list.
15
09a7e912
CZ
162021-09-014 Cupertino Miranda <cmiranda@synopsys.com>
17 Claudiu Zissulescu <claziss@synopsys.com>
18
19 * arc-got.h (arc_static_sym_data): New structure.
20 (get_static_sym_data): New function.
21 (relocate_fix_got_relocs_for_got_info): Move the computation fo
22 symbol value and section to above introduced function, and use
23 this new function.
24
64dbf74d
LM
252021-09-07 Luis Machado <luis.machado@linaro.org>
26
27 Revert: [AArch64] MTE corefile support
28
29 2021-05-21 Luis Machado <luis.machado@linaro.org>
30
31 * elf.c (elfcore_make_memtag_note_section): New function.
32 (elfcore_grok_note): Handle NT_MEMTAG note types.
33
3f1a2892
NC
342021-09-07 Nick Clifton <nickc@redhat.com>
35
9dc2f267
NC
36 PR 28305
37 * elf32-xtensa.c (elf_xtensa_do_reloc): Add check for put of range
38 reloc.
39
3f1a2892
NC
40 PR 28303
41 * elfxx-riscv.c (riscv_elf_add_sub_reloc): Add check for out of
42 range relocs.
43
3ee0cd9e
NC
442021-08-10 Nick Clifton <nickc@redhat.com>
45
46 * po/sr.po: Updated Serbian translation.
47
5c9cbf07
NC
482021-07-18 Nick Clifton <nickc@redhat.com>
49
50 * config.bfd: Move pending obsoletion targets to obsolete list.
51
05a1dd47
GB
522021-07-16 Giulio Benetti <giulio.benetti@benettiengineering.com>
53
54 * elf32-or1k.c (or1k_elf_relocate_section): Use a separate entry
55 in switch case R_OR1K_INSN_REL_26 where we need to check for
56 !SYMBOL_CALLS_LOCAL() instead of !SYMBOL_REFERENCES_LOCAL().
57
51d29b8c
CC
582021-07-14 Clément Chigot <clement.chigot@atos.net>
59
60 * libxcoff.h (struct xcoff_dwsect_name): Add DWARF name.
61 * coff-rs6000.c (xcoff_dwsect_names): Update.
62 * coffcode.h (sec_to_styp_flags): Likewise.
63 (coff_new_section_hook): Likewise.
64
f8dd3646
AM
652021-07-10 Alan Modra <amodra@gmail.com>
66
67 * dwarf2.c (read_address): Remove accidental commit.
68 (read_ranges): Compare offset rather than pointers.
69
f1cee837
NC
702021-07-08 Nick Clifton <nickc@redhat.com>
71
72 * po/pt.po: Updated Portuguese translation.
73
ca52626b
NC
742021-07-07 Nick Clifton <nickc@redhat.com>
75
76 * elfcode.h (elf_swap_symbol_out): Revert accidental change that
77 removed an abort if the shndx pointer is NULL.
78
f07afc65
RO
792021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
80
81 * sysdep.h [!ENABLE_NLS]: Prevent inclusion of <libintl.h> on
82 Solaris.
83
b737d304
RO
842021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
85
86 * configure.ac: Check for strnlen declaration.
87 * configure, config.in: Regenerate.
88
ffa5352c
NC
892021-07-07 Nick Clifton <nickc@redhat.com>
90
91 PR 28051
92 * coff-rs6000.c (xcoff_reloc_type_tls): Reformat error messages in
93 order to fix problems when translating.
94 * cofflink.c (_bfd_coff_write_global_sym): Likewise.
95 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
96 Likewise.
97 * po/bfd.pot: Regenerate.
98
235f5ef4
MM
992021-07-06 Michael Matz <matz@suse.de>
100
101 PR ld/28021
102 * elfnn-riscv.c (riscv_relax_delete_bytes): Check for any
103 versioning.
104
07b2745f
AM
1052021-07-06 Alan Modra <amodra@gmail.com>
106
107 PR 28055
108 * elf64-bpf.c (bpf_elf_generic_reloc): Add missing ATTRIBUTE_UNUSED.
109
b4c4b8aa
AM
1102021-07-05 Alan Modra <amodra@gmail.com>
111
112 PR 28055
113 * elf64-bpf.c (bpf_elf_generic_reloc): Use correct bfd for bfd_put
114 and bfd_put_32 calls. Correct section limit checks.
115
346d80ef
NC
1162021-07-03 Nick Clifton <nickc@redhat.com>
117
118 * version.m4: Update version number.
119 * configure: Regenerate.
120 * po/opcodes.pot: Regenerate.
121
51419248
NC
1222021-07-03 Nick Clifton <nickc@redhat.com>
123
124 * 2.37 release branch created.
125
49910fd8
NC
1262021-07-02 Nick Clifton <nickc@redhat.com>
127
128 PR 28046
129 * dwarf2.c (read_ranges): Check that range_ptr does not exceed
130 range_end.
131
9a39f738
YS
1322021-06-30 YunQiang Su <yunqiang.su@cipunited.com>
133
134 PR mips/28009
135 * bfd/elfxx-mips.c (_bfd_mips_elf_section_from_shdr,
136 _bfd_mips_elf_fake_sections): Mark LTO debug info as
137 SHT_MIPS_DWARF.
138
c2ce8313
NC
1392021-06-29 Nick Clifton <nickc@redhat.com>
140
141 * config.bfd (obsolete configurations): Add netbsdpe.
142
50331d64
NC
1432021-06-22 Nelson Chu <nelson.chu@sifive.com>
144
145 * elfnn-riscv.c (riscv_pcrel_hi_reloc): Added field to store
146 the original relocation type, in case the type is converted to
147 R_RISCV_HI20.
148 (riscv_pcrel_lo_reloc): Removed unused name field.
149 (riscv_pcrel_relocs): Added comments.
150 (riscv_zero_pcrel_hi_reloc): Removed unused input_bfd.
151 (riscv_record_pcrel_hi_reloc): Updated.
152 (riscv_record_pcrel_lo_reloc): Likewise.
153 (riscv_resolve_pcrel_lo_relocs): Likewise. Check the original
154 type of auipc, to make sure the %pcrel_lo without any addends.
155 Otherwise, report dangerous relocation error.
156 (riscv_elf_relocate_section): Updated above functions are changed.
157 For R_RISCV_GOT_HI20, report dangerous relocation error when addend
158 isn't zero.
159
406b4ada
L
1602021-06-19 H.J. Lu <hongjiu.lu@intel.com>
161
162 PR ld/27998
163 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Count PLT for GOTOFF
164 relocation against IFUNC symbols.
165 (_bfd_x86_elf_adjust_dynamic_symbol): Likewise.
166
83b1d8f4
L
1672021-06-19 H.J. Lu <hongjiu.lu@intel.com>
168
169 * elflink.c (bfd_elf_final_link): Correct DT_TEXTREL warning in
170 PDE.
171
5a767724
L
1722021-06-18 H.J. Lu <hongjiu.lu@intel.com>
173
174 * elf-properties.c (_bfd_elf_parse_gnu_properties): Handle
175 GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI,
176 GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI.
177 (elf_merge_gnu_properties): Likewise.
178
f64b9b13
AM
1792021-06-11 Alan Modra <amodra@gmail.com>
180
181 PR 27952
182 * elf-bfd.h (struct elf_obj_tdata): Add is_pie.
183 * elflink.c (elf_link_add_object_symbols): Set is_pie.
184
f75bcf7e
NC
1852021-06-09 Nick Clifton <nickc@redhat.com>
186
187 PR 27666
188 * config.bfd: Do not add the sparc_elf32_vec or sparc_elf64_vec
189 vectors to Sparc Solaris2 targets.
190
5804373d
MM
1912021-06-08 Michael Matz <matz@suse.de>
192
193 * elf.c (bfd_section_from_shdr): Set has_secondary_relocs flag.
194 (_bfd_elf_slurp_secondary_reloc_section): Use it for early-out.
195
6bee34a1
JB
1962021-06-07 Jan Beulich <jbeulich@suse.com>
197
198 * dwarf2.c (read_ranges, read_rnglists): Add u suffix to constant.
199
45342c7c
AM
2002021-06-02 Alan Modra <amodra@gmail.com>
201
202 * elf-attrs.c (_bfd_elf_parse_attributes): Break out of loop if
203 subsection length is too small to cover tag and length field.
204
ef9d2565
NC
2052021-05-31 Nelson Chu <nelson.chu@sifive.com>
206 Lifang Xia <lifang_xia@c-sky.com>
207
208 PR 27566
209 * elfnn-riscv.c (struct riscv_elf_link_hash_table): New integer pointer
210 to monitor the data segment phase.
211 (bfd_elfNN_riscv_set_data_segment_info): New function called by
212 after_allocation, to set the data_segment_phase from expld.dataseg.
213 (_bfd_riscv_relax_section): Don't relax when data_segment_phase is
214 exp_seg_relro_adjust (0x4).
215 * elfxx-riscv.h (bfd_elf32_riscv_set_data_segment_info): New extern.
216 (bfd_elf64_riscv_set_data_segment_info): Likewise
217
1273b2f8
L
2182021-05-28 H.J. Lu <hongjiu.lu@intel.com>
219
220 PR ld/27905
221 * elf32-i386.c: Don't include "libiberty.h".
222 (elf_howto_table): Revert commits a7664973b24 and 50c95a739c9.
223 (elf_i386_rtype_to_howto): Revert commit 50c95a739c9.
224 (elf_i386_info_to_howto_rel): Likewise.
225 (elf_i386_tls_transition): Likewise.
226 (elf_i386_relocate_section): Likewise.
227 * elf64-x86-64.c (x86_64_elf_howto_table): Revert commits
228 a7664973b24 and 50c95a739c9.
229 (elf_x86_64_rtype_to_howto): Revert commit 50c95a739c9.
230 * elfxx-x86.c (_bfd_x86_elf_parse_gnu_properties): Likewise.
231 * elfxx-x86.h (elf_x86_obj_tdata): Likewise.
232 (elf_x86_has_code16): Likewise.
233
50c95a73
L
2342021-05-26 H.J. Lu <hongjiu.lu@intel.com>
235
236 PR ld/27905
237 * elf32-i386.c: Include "libiberty.h".
238 (elf_howto_table): Add 16-bit R_386_PC16 entry.
239 (elf_i386_rtype_to_howto): Add a BFD argument. Use 16-bit
240 R_386_PC16 if input has 16-bit mode instructions.
241 (elf_i386_info_to_howto_rel): Update elf_i386_rtype_to_howto
242 call.
243 (elf_i386_tls_transition): Likewise.
244 (elf_i386_relocate_section): Likewise.
245 * elf64-x86-64.c (x86_64_elf_howto_table): Add 16-bit
246 R_X86_64_PC16 entry.
247 (elf_x86_64_rtype_to_howto): Use 16-bit R_X86_64_PC16 if input
248 has 16-bit mode instructions.
249 * elfxx-x86.c (_bfd_x86_elf_parse_gnu_properties): Set
250 elf_x86_has_code16 if relocatable input is marked with
251 GNU_PROPERTY_X86_FEATURE_2_CODE16.
252 * elfxx-x86.h (elf_x86_obj_tdata): Add has_code16.
253 (elf_x86_has_code16): New.
254
fe1f847d
NC
2552021-05-26 Nelson Chu <nelson.chu@sifive.com>
256
257 * elfxx-riscv.h (check_unknown_prefixed_ext): New bool.
258 * elfxx-riscv.c (riscv_parse_prefixed_ext): Do not check the
259 prefixed extension name if check_unknown_prefixed_ext is false.
260 * elfnn-riscv.c (riscv_merge_arch_attr_info): Set
261 check_unknown_prefixed_ext to false for linker.
262
74fd118f
NC
2632021-05-25 Nick Clifton <nickc@redhat.com>
264
265 * elf32-arn.c (struct elf_arm_obj_tdata): Add num_entries field.
266 (elf32_arm_num_entries): New macro.
267 (elf32_arm_allocate_local_sym_info): Initialise the new field.
268 Allocate arrays individually so that buffer overruns can be
269 detected by memory checkers.
270 (elf32_arm_create_local_iplt): Check num_entries.
271 (elf32_arm_get_plt_info): Likewise.
272 (elf32_arm_final_link_relocate): Likewise.
273 (elf32_arm_check_relocs): Likewise.
274 (elf32_arm_size_dynamic_sections): Likewise.
275 (elf32_arm_output_arch_local_syms): Likewise.
276
cc850f74
NC
2772021-05-25 Nick Clifton <nickc@redhat.com>
278
279 * elf32-arm.c: Fix formatting.
280
4be1e8db
AM
2812021-05-25 Alan Modra <amodra@gmail.com>
282
283 * elf-attrs.c (elf_attr_strdup): New function.
284 (_bfd_elf_attr_strdup): Use it here.
285 (elf_add_obj_attr_string): New function, extracted from..
286 (bfd_elf_add_obj_attr_string): ..here.
287 (elf_add_obj_attr_int_string): New function, extracted from..
288 (bfd_elf_add_obj_attr_int_string): ..here.
289 (_bfd_elf_parse_attributes): Don't allocate an extra byte for a
290 string terminator. Instead ensure parsing doesn't go past
291 end of sub-section. Use size_t variables for lengths.
292
574ec108
AM
2932021-05-22 Alan Modra <amodra@gmail.com>
294
295 * libbfd.c (_bfd_safe_read_leb128): Remove length_return parameter.
296 Replace data pointer with pointer to pointer. Increment pointer
297 over bytes read.
298 * libbfd-in.h (_bfd_safe_read_leb128): Update prototype.
299 * elf-attrs.c (_bfd_elf_parse_attributes): Adjust to suit. Be
300 careful not to increment data pointer past end. Remove now
301 redundant pr17512 check.
302 * wasm-module.c (READ_LEB128): Adjust to suit changes to
303 _bfd_safe_read_leb128.
304 * dwarf2.c (read_n_bytes): New inline function, old one renamed to..
305 (read_blk): ..this. Allocate and return block. Increment bfd_byte**
306 arg.
307 (read_3_bytes): New function.
308 (read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes),
309 (read_8_bytes, read_string, read_indirect_string),
310 (read_indirect_line_string, read_alt_indirect_string): Take a
311 byte_byte** arg which is incremented over bytes read. Remove any
312 bytes_read return. Rewrite limit checks to compare lengths
313 rather than pointers.
314 (read_abbrevs, read_attribute_value, read_formatted_entries),
315 (decode_line_info, find_abstract_instance, read_ranges),
316 (read_rnglists, scan_unit_for_symbols, parse_comp_unit),
317 (stash_comp_unit): Adjust to suit. Rewrite limit checks to
318 compare lengths rather than pointers.
319 * libbfd.h: Regenerate.
320
894982bf
LM
3212021-05-21 Luis Machado <luis.machado@linaro.org>
322
323 * elf.c (elfcore_make_memtag_note_section): New function.
324 (elfcore_grok_note): Handle NT_MEMTAG note types.
325
427e4066
AB
3262021-05-20 Andrew Burgess <andrew.burgess@embecosm.com>
327
328 * section.c (bfd_get_section_by_name): Return NULL if name is
329 NULL.
330 (bfd_get_section_by_name_if): Likewise.
331 * dwarf2.c (read_section): Remove unneeded NULL check.
332 (find_debug_info): Likewise.
333
83b0a686
NC
3342021-05-19 Nick Clifton <nickc@redhat.com>
335
336 * plugin.c (bfd_plugin_open_input): Inform the user if the limit
337 on the number of open files is reached. If possible, try to
338 increase this limit before failing.
339
75f03fa7
NC
3402021-05-14 Nelson Chu <nelson.chu@sifive.com>
341
342 * elfnn-riscv.c (riscv_resolve_pcrel_lo_relocs): Check the values
343 of %pcrel_hi, before and after adding the addend. Make sure the
344 value won't be changed, otherwise, report dangerous error.
345
7671eff8
NC
3462021-05-13 Nelson Chu <nelson.chu@sifive.com>
347
348 * elfxx-riscv.c (check_implicit_always): The check_func, always add
349 the implicit subset without checking.
350 (check_implicit_for_i): The check_func for i, only add zicsr and
351 zifencei when the version of i less than 2.1.
352 (struct riscv_implicit_subset): Record the subsets and their
353 corresponding implicit subsets.
354 (riscv_implicit_subsets): Table records all implicit informations.
355 (riscv_parse_add_implicit_subsets): Updated and add implicit subsets
356 according to riscv_implicit_subsets. Remove the redundant codes.
357
4863cddb
AM
3582021-05-13 Alan Modra <amodra@gmail.com>
359
360 PR 27858
361 * elf32-sh.c (sh_elf_info_to_howto): Correct check for last valid
362 reloc howto.
363
f0bbe8ba
LM
3642021-05-12 Luis Machado <luis.machado@linaro.org>
365
366 * elf-bfd.h (elfcore_write_aarch_mte): New prototype.
367 * elf.c (elfcore_grok_aarch_mte, elfcore_write_aarch_mte): New
368 functions.
369 (elfcore_grok_note): Handle notes of type NT_ARM_TAGGED_ADDR_CTRL.
370 (elfcore_write_register_note): Handle MTE notes.
371
8ca5537b
AM
3722021-05-11 Alan Modra <amodra@gmail.com>
373
374 PR 27844
375 * pdp11.c (aout_get_external_symbols): Clear first four bytes of
376 strings array, not just the first byte.
377 * aoutx.h (aout_get_external_symbols): Likewise.
378
b397aef4
L
3792021-05-10 H.J. Lu <hongjiu.lu@intel.com>
380
381 PR binutils/27839
382 * simple.c (bfd_simple_get_relocated_section_contents): Remove
383 strayed fprintf.
384
23182ac0
NC
3852021-05-10 Nick Clifton <nickc@redhat.com>
386
387 PR 27839
388 * simple.c (simple_dummy_add_to_set): New function.
389 (simple_dummy_constructor): New function.
390 (simple_dummy_multiple_common): New function.
391 (bfd_simple_get_relocated_section_contents): Zero out the
392 callbacks structure, and then set the add_to_set, constructor and
393 multiple_common fields.
394
5b45e89f
DD
3952021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
396
397 * elf32-pru.c (elf_backend_can_gc_sections): Define as 1.
398
cf758b39
MF
3992021-05-08 Mike Frysinger <vapier@gentoo.org>
400
401 * doc/Makefile.am (html-local, bfd/index.html): New targets.
402 * doc/Makefile.in: Regenerate.
403
2faf902d
MF
4042021-05-08 Mike Frysinger <vapier@gentoo.org>
405
406 * doc/Makefile.am (AM_MAKEINFOFLAGS): Define.
407 * doc/Makefile.in: Regenerate.
408
97834047
CC
4092021-05-07 Clément Chigot <clement.chigot@atos.net>
410
411 * coff-rs6000.c (xcoff_dwsect_names): Add new DWARF
412 sections.
413 * coffgen.c (coff_pointerize_aux): Handle C_DWARF.
414 (coff_print_symbol): Likewise.
415 * libxcoff.h (XCOFF_DWSECT_NBR_NAMES): Update.
416
17c6c3b9
JB
4172021-05-07 Jan Beulich <jbeulich@suse.com>
418
419 * elf64-x86-64.c (x86_64_elf_howto_table): Set src_mask fields
420 to zero.
421
a41513ef
AM
4222021-05-07 Alan Modra <amodra@gmail.com>
423
424 * bfd-in2.h: Regenerate.
425 * libbfd.h: Regenerate.
426
284a1309
SH
4272021-05-06 Stafford Horne <shorne@gmail.com>
428
429 PR 27746
430 * elf32-or1k.c (PLT_ENTRY_SIZE_LARGE, PLT_MAX_INSN_COUNT,
431 OR1K_ADD, OR1K_ORI): New macros to help with plt creation.
432 (elf_or1k_link_hash_table): New field plt_count.
433 (elf_or1k_link_hash_entry): New field plt_index.
434 (elf_or1k_plt_entry_size): New function.
435 (or1k_write_plt_entry): Update to support variable size PLTs.
436 (or1k_elf_finish_dynamic_sections): Use new or1k_write_plt_entry
437 API.
438 (or1k_elf_finish_dynamic_symbol): Update to write large PLTs
439 when needed.
440 (allocate_dynrelocs): Use elf_or1k_plt_entry_size to account for
441 PLT size.
442
3c3de29b
SH
4432021-05-06 Stafford Horne <shorne@gmail.com>
444
445 PR 21464
446 * elf32-or1k.c (or1k_elf_relocate_section): Relax R_OR1K_GOT16
447 overflow check if we have R_OR1K_GOT_AHI16 followed by
448 R_OR1K_GOT16.
449
0b3e14c9
SH
4502021-05-06 Stafford Horne <shorne@gmail.com>
451
452 PR 21464
453 * bfd-in2.h: Add BFD_RELOC_OR1K_GOT_AHI16 relocation.
454 * elf32-or1k.c (or1k_elf_howto_table, or1k_reloc_map): Likewise.
455 (or1k_final_link_relocate, or1k_elf_relocate_section,
456 or1k_elf_check_relocs): Likewise.
457 * libbfd.h (bfd_reloc_code_real_names): Likewise.
458 * reloc.c: Likewise.
459
a76ef689
SH
4602021-05-06 Stafford Horne <shorne@gmail.com>
461
462 PR 27624
463 * elf32-or1k.c (or1k_elf_adjust_dynamic_symbol): Change
464 condition used to cleanup plt entries to cleanup forced local
465 entries.
466
4467df35
L
4672021-05-05 H.J. Lu <hongjiu.lu@intel.com>
468
469 PR ld/27825
470 * elflink.c (elf_link_output_symstrtab): Always append ".COUNT"
471 to local symbols.
472
c38c6234
AM
4732021-05-05 Alan Modra <amodra@gmail.com>
474
475 * vms-lib.c (vms_traverse_index): Account for vms_kbn size when
476 sanity checking keylen.
477
bd6d8601
NC
4782021-05-04 Nick Clifton <nickc@redhat.com>
479
480 * libbfd.c (bfd_malloc): Provide some documenation. Treat a size
481 of 0 as 1.
482 (bfd_realloc): Likewise.
483 (bfd_zmalloc): Likewise.
484 (bfd_realloc_or_free): Provide some documentation. Treat a size
485 of 0 as a request to free.
486 * libbfd-in.h (bfd_realloc): Remove prototype.
487 (bfd_realloc_or_free): Remove prototype.
488 (bfd_zmalloc): Remove prototype.
489 * libbfd.h: Regenerate.
490
4c398cc0
JB
4912021-05-03 Jan Beulich <jbeulich@suse.com>
492
493 * elf32-i386.c (elf_howto_table): Switch all 32-bit relocs to
494 complain_overflow_dont.
495 * elf64-x86-64.c (x86_64_elf_howto_table): Switch all 64-bit
496 relocs to complain_overflow_dont.
497
49160308
AM
4982021-05-03 Alan Modra <amodra@gmail.com>
499
500 * elf32-ppc.c (allocate_dynrelocs): Keep dyn_relocs for undefweak
501 symbols when -z dynamic-undefined-weak or when there are no
502 dynamic relocs in read-only sections and -z nodynamic-undefined-weak
503 is not given.
504 * elf64-ppc.c (allocate_dynrelocs): Likewise.
505
b2936612
AM
5062021-05-03 Alan Modra <amodra@gmail.com>
507
508 * elf32-ppc.c (allocate_dynrelocs): Call ensure_undef_dynamic for
509 weak undefined symols that only appear on PLT relocs.
510 * elf64-ppc.c (allocate_dynrelocs): Likewise.
511
337d0bf8
AM
5122021-05-03 Alan Modra <amodra@gmail.com>
513
514 PR 27755
515 * elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop.
516
5072b52d
AM
5172021-05-03 Alan Modra <amodra@gmail.com>
518
519 * elf32-csky.c (is_mapping_symbol_name): New function.
520 (csky_elf_is_target_special_symbol): Likewise.
521 (csky_elf_maybe_function_sym): Likewise.
522 (bfd_elf32_bfd_is_target_special_symbol): Define.
523 (elf_backend_maybe_function_sym): Define.
524
d1fbc3ba
NC
5252021-04-30 Nick Clifton <nickc@redhat.com>
526
527 PR 27801
528 * mach-o.c (bfd_mach_o_core_fetch_environment): Use bfd_get_32 to
529 read 32-bit value.
530
9f84cb38
NC
5312021-04-30 Nick Clifton <nickc@redhat.com>
532
533 PR 27799
534 * elf32-xtensa.c (elf_xtensa_grok_prstatus): Check for core notes
535 that are too small.
536
6cb40a67
NC
5372021-04-30 Nick Clifton <nickc@redhat.com>
538
539 PR 27797
540 * libbfd.c (bfd_realloc_or_free): Do not free a pointer than has
541 been realloc'ed to size 0.
542
bceb87ef
NC
5432021-04-30 Nick Clifton <nickc@redhat.com>
544
545 PR 27795
546 * coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Check for invalid name
547 lengths.
548
09e40e44
NC
5492021-04-29 Nick Clifton <nickc@redhat.com>
550
551 PR 27793
552 * som.c (som_slurp_symbol_table): Assign symbols without any scope
553 to the undefined section.
554 (som_decode_symclass): Check for a missing symbol section.
555 * syms.c (bfd_decode_symclass): Likewise.
556
063e75c9
NC
5572021-04-29 Nick Clifton <nickc@redhat.com>
558
559 PR 27792
560 * som.c (som_slurp_string_table): Place a terminating NUL byte at
561 the end of the table.
562 (som_slurp_symbol_table): Check for an over-large offset into the
563 string string table.
564
24aebc79
NC
5652021-04-28 Nick Clifton <nickc@redhat.com>
566
567 * elf.c (_bfd_elf_maybe_function_sym): Do not accept annobin
568 symbols as potential function symbols.
569 * elfnn-aarch64.c (elfNN_aarch64_maybe_function_sym): Likewise.
570 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
571 * elf32-arm.c (elf32_arm_maybe_function_sym): Likewise.
572
3955e346
MF
5732021-04-26 Mike Frysinger <vapier@gentoo.org>
574
575 * elf-bfd.h: Include stdlib.h.
576
a7664973
JB
5772021-04-26 Jan Beulich <jbeulich@suse.com>
578
579 * elf32-i386.c (elf_howto_table): Switch R_386_PC16 to
580 complain_overflow_signed.
581 * elf64-x86-64.c (x86_64_elf_howto_table): Switch R_X86_64_PC16
582 to complain_overflow_signed.
583
f5e98b7d
EB
5842021-04-23 Eric Botcazou <ebotcazou@adacore.com>
585
586 * elf.c (special_sections_p): Add .persistent.bss.
587
c21346c5
JB
5882021-04-23 Jan Beulich <jbeulich@suse.com>
589
590 * elf32-i386.c (elf_howto_table): R_386_TLS_DESC_CALL has zero
591 size field.
592 * elf64-x86-64.c (x86_64_elf_howto_table): R_X86_64_TLSDESC_CALL
593 has zero size field.
594
bdd2aaf6
CC
5952021-04-22 Clément Chigot <clement.chigot@atos.net>
596
597 * hash.c (struct bfd_strtab_hash): Remove xcoff field.
598 Add length_field_size field.
599 (_bfd_stringtab_init): Change prototype.
600 Adapt to new length_field_size.
601 (_bfd_xcoff_stringtab_init): Likewise.
602 (_bfd_stringtab_add): Likewise.
603 (_bfd_stringtab_emit): Likewise.
604 * libbfd-in.h (_bfd_xcoff_stringtab_init):
605 Change prototype.
606 * libbfd.h: Regenerate.
607 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create):
608 Call _bfd_xcoff_stringtab_init with isxcoff64 value.
609
b11b2969
CC
6102021-04-22 Clément Chigot <clement.chigot@atos.net>
611
612 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Add errors for
613 unsupported storage class or auxialiry entries.
614 Improve and adapt to new aux structures.
615 Add C_DWARF support.
616 (_bfd_xcoff_swap_aux_out): Likewise.
617 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Likewise.
618 (_bfd_xcoff64_swap_aux_out): Likewise.
619
18e9a809
EZ
6202021-04-21 Eli Zaretskii <eliz@gnu.org>
621
622 PR 27760
623 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add display
624 of IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP,
625 IMAGE_FILE_NET_RUN_FROM_SWAP and IMAGE_FILE_UP_SYSTEM_ONLY flags.
626 Decode the contents of the DllCharacteristics field.
627
33fe00c1
NC
6282021-04-21 Nick Clifton <nickc@redhat.com>
629
630 PR 27759
631 * srec.c (srec_read_section): Replace assertions with error
632 returns.
633
c5df7e44
CC
6342021-04-20 Clément Chigot <clement.chigot@atos.net>
635
636 PR binutils/21700
637 * reloc.c (BFD_RELOC_PPC_NEG): New relocation.
638 * bfd-in2.h: Regenerate.
639 * libbfd.h: Regenerate.
640 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Add
641 BFD_RELOC_PPC_NEG handler.
642 (xcoff_reloc_type_neg): Correctly substract addend.
643 * coff64-rs6000.c (xcoff64_howto_table): Add R_NEG_32
644 howto.
645 (xcoff64_rtype2howto): Add handler for R_NEG_32.
646 (xcoff64_reloc_type_lookup): Add BFD_RELOC_PPC_NEG handler.
647 * xcofflink.c (xcoff_need_ldrel_p): Check output section
648 for R_POS-like relocations. New argument added.
649 (xcoff_mark): Adapt to new xcoff_need_ldrel_p argument.
650 (xcoff_link_input_bfd): Likewise.
651
6f8f6017
AM
6522021-04-16 Alan Modra <amodra@gmail.com>
653
654 PR 27567
655 * coffcode.h (styp_to_sec_flags): Use an unsigned long styp_flags.
656 (coff_write_object_contents): Pass bfd to COFF_ENCODE_ALIGNMENT,
657 ignore alignment checks when return is false. Formatting.
658
ddfe525f
NC
6592021-04-15 Nelson Chu <nelson.chu@sifive.com>
660
661 PR27584
662 * elfnn-riscv.c (riscv_elf_is_target_special_symbol): Added to
663 omit local and empty symbols since they usually generated to
664 mark the auipc instructions.
665
f6a1f957
LX
6662021-04-15 Lifang Xia<lifang_xia@c-sky.com>
667
668 * elf32-csky.c (csky_elf_howto_table)
669 <R_CKCORE_PCREL_IMM16BY2>: Set special_function to
670 bfd_elf_generic_reloc.
671 <R_CKCORE_PCREL_IMM16BY4>: Likewise.
672 <R_CKCORE_PCREL_IMM10BY4>: Likewise.
673 <R_CKCORE_PCREL_IMM18BY2>: Likewise.
674 <R_CKCORE_PCREL_FLRW_IMM8BY4>: Likewise.
675
9917b559
L
6762021-04-14 H.J. Lu <hongjiu.lu@intel.com>
677
678 PR binutils/27708
679 * elf.c (assign_file_positions_for_non_load_sections): Set
680 p_memsz to p_filesz for the loadable PT_NOTE segment.
681
5f47741b
FC
6822021-04-14 Frederic Cambus <fred@statdns.com>
683
684 * elf.c (elfcore_grok_netbsd_note): Remove unneeded #ifdef
685 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
686
8985b74b
AM
6872021-04-14 Alan Modra <amodra@gmail.com>
688
689 PR 27631
690 * elf32-metag.c (elf_metag_relocate_section): Don't use &hh->elf
691 when hh might be NULL, test for NULL first.
692
c9f9a78d
AM
6932021-04-14 Alan Modra <amodra@gmail.com>
694
695 PR 27630
696 * elf32-arm.c (elf32_arm_size_stubs): Don't use &hash->root when
697 hash might be NULL, cast instead.
698
d2f1139e
CC
6992021-04-13 Clément Chigot <clement.chigot@atos.net>
700
701 * xcofflink.c (xcoff_link_check_ar_symbols): Update esym earlier.
702
e3839c10
NC
7032021-04-13 Nelson Chu <nelson.chu@sifive.com>
704
705 * elfnn-riscv.c (riscv_version_mismatch): Do not report the warning
706 when the version of input or output is RISCV_UNKNOWN_VERSION, since
707 the extension is added implicitly.
708 * elfxx-riscv.c: Updated the obsolete comments.
709 (RISCV_UNKNOWN_VERSION): Moved to elfxx-riscv.h.
710 * elfxx-riscv.h (RISCV_UNKNOWN_VERSION): Added.
711
43e05cd4
AM
7122021-04-12 Alan Modra <amodra@gmail.com>
713
714 * elf-bfd.h (ENABLE_CHECKING): Define.
715 (elf_link_hash_lookup): Abort if wrong type of hash table.
716 * configure.ac (--enable-checking): Add support.
717 * config.in: Regenerate.
718 * configure: Regenerate.
719
2cc15b10
AM
7202021-04-12 Alan Modra <amodra@gmail.com>
721
722 * elf-bfd.h (is_elf_hash_table): Convert macro to inline function.
723 (elf_link_hash_lookup, elf_link_hash_traverse): Likewise.
724 (elf_hash_table, elf_hash_table_id): Likewise.
725 * elf32-arm.c (elf32_arm_setup_section_lists): Delete redundant
726 is_elf_hash_table check.
727 * elf32-csky.c (elf32_csky_setup_section_lists): Likewise.
728 * elf32-hppa.c (clobber_millicode_symbols): Correct param types.
729 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
730 * elfnn-ia64.c (elfNN_ia64_global_dyn_info_free: Likewise.
731 (elfNN_ia64_global_dyn_sym_thunk: Likewise.
732 * elf64-ia64-vms.c (elf64_ia64_global_dyn_info_free): Likewise.
733 (elf64_ia64_global_dyn_sym_thunk): Likewise.
734 (elf64_vms_link_add_object_symbols): Pass base type of hash table
735 to is_elf_hash_table.
736 * elflink.c (_bfd_elf_dynamic_symbol_p): Likewise.
737 (_bfd_elf_symbol_refs_local_p, _bfd_elf_add_dynamic_entry): Likewise.
738 (_bfd_elf_strip_zero_sized_dynamic_sections): Likewise.
739 (_bfd_elf_link_check_relocs, elf_link_add_object_symbols): Likewise.
740 (bfd_elf_final_link): Likewise.
741 * elfnn-aarch64.c (elfNN_aarch64_setup_section_lists): Likewise.
742 * elf64-ppc.c (ppc64_elf_set_toc): Likewise. Use bfd_link_hash_lookup.
743
b585e899
AM
7442021-04-12 Alan Modra <amodra@gmail.com>
745
746 * elf-bfd.h (struct elf_backend_data): Return bfd_link_hash_entry*
747 from elf_backend_archive_symbol_lookup.
748 (_bfd_elf_archive_symbol_lookup): Return bfd_link_hash_entry*.
749 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Likewise. Check
750 we have a ppc_hash_table before accessing ppc_link_hash_entry
751 fields.
752 * elflink.c (_bfd_elf_archive_symbol_lookup): Return
753 bfd_link_hash_entry*.
754 (elf_link_add_archive_symbols): Adjust to suit.
755
f5b10973
NC
7562021-04-12 Nelson Chu <nelson.chu@sifive.com>
757
758 * elfxx-riscv.c (riscv_parse_std_ext): Fixed the wrong versions of
759 i-ext when expanding g-ext.
760
f0bae255
NC
7612021-04-12 Nelson Chu <nelson.chu@sifive.com>
762
763 * elfxx-riscv.c (riscv_ext_dont_care_version): Removed.
764 (riscv_parse_add_subset): Always add the implicit extensions, even if
765 their versions are RISCV_UNKNOWN_VERSION.
766 (riscv_parse_std_ext): Delay to add i-ext as the implicit extension
767 in the riscv_parse_add_implicit_subsets. Besides, add g-ext as the
768 implicit extension after it has been expanded.
769 (riscv_parse_add_implicit_subsets): Updated.
770
e601909a
NC
7712021-04-12 Nelson Chu <nelson.chu@sifive.com>
772
773 * elfxx-riscv.c (riscv_std_z_ext_strtab): Moved forward.
774 (riscv_std_s_ext_strtab): Likewise.
775 (riscv_std_h_ext_strtab): Likewise.
776 (riscv_std_zxm_ext_strtab): Added for the zxm prefix.
777 (enum riscv_prefix_ext_class): Moved forward and renamed from
778 riscv_isa_ext_class. Reorder them according to the parsing order,
779 since the enum values are used to check the orders in the
780 riscv_compare_subsets.
781 (struct riscv_parse_prefix_config): Moved forward and renamed from
782 riscv_parse_config_t. Also removed the ext_valid_p field, the
783 related functions are replaced by riscv_valid_prefixed_ext.
784 (parse_config): Moved forward and updated. The more letters of the
785 prefix string, the more forward it must be defined. Otherwise, we
786 will get the wrong mapping when using strncmp in riscv_get_prefix_class.
787 (riscv_get_prefix_class): Moved forward. Support to parse the
788 multi-letter prefix, like zxm.
789 (riscv_known_prefixed_ext): New function, check if the prefixed
790 extension is supported according to the right riscv_std_*_ext_strtab.
791 (riscv_valid_prefixed_ext): New function, used to replace the
792 riscv_ext_*_valid_p functions.
793 (riscv_init_ext_order): Do not set the values for prefix keywords
794 since they may have multiple letters for now.
795 (riscv_compare_subsets): Set the order values of prefix keywords
796 to negative numbers according to the riscv_prefix_ext_class.
797 (riscv_parse_std_ext): Call riscv_get_prefix_class to see if we
798 have parsed the prefixed extensions.
799 (riscv_parse_prefixed_ext): Updated and removed the parameter config.
800 Report error when the prefix is unknown.
801 (riscv_parse_subset): Do not parse the prefixed extensions according
802 to the orders in the parse_config. Remove the confused message and
803 let riscv_parse_prefixed_ext to report the details.
804 * elfxx-riscv.h (enum riscv_isa_ext_class): Moved to elfxx-riscv.c.
805 (riscv_get_prefix_class): Removed to static.
806
eec8bf7e
MF
8072021-04-08 Mike Frysinger <vapier@gentoo.org>
808
809 * configure.ac (ACX_BUGURL): Use https://.
810 * configure.com (COPY_TEXT): Likewise.
811 * configure: Regenerate.
812
83c79df8
AM
8132021-04-05 Alan Modra <amodra@gmail.com>
814
815 * configure.ac: Don't check for long long or long double type.
816 Don't check for alloca.h, limits.h, stddef.h, stdlib.h, string.h,
817 strings.h, time.h, wchar.h, wctype.h or sys/time.h. Don't check
818 for strtoull, free, malloc, realloc, getenv, strstr, snprintf,
819 vsnprintf, strlen or setitimer. Sort AC_CHECK_DECLS.
820 (AC_ISC_POSIX): Don't invoke.
821 (AC_HEADER_TIME, AC_HEADER_DIRENT, ACX_HEADER_STRING): Likewise.
822 * sysdep.h: Remove many HAVE_*_H checks and fallback declarations.
823 Do test HAVE_SYS_TYPES_H. Don't include sys/time.h. Reorder
824 header order as per automake AC_INCLUDES_DEFAULT.
825 * bfd-in.h: Include inttypes.h unconditionally.
826 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Assume long long and
827 long double are available.
828 (bfd_scan_vma): Assume long long and strtoull are available.
829 * elflink.c: Include limits.h unconditionally.
830 * elfnn-riscv.c: Likewise.
831 * wasm-module.c: Likewise.
832 * hpux-core.c: Include dirent.h unconditionally.
833 * trad-core.c: Likewise.
834 * hosts/x86-64linux.h: Include stdlib.h unconditionally.
835 * peXXigen.c: Remove HAVE_WCHAR_H and HAVE_WCTYPE_H checks.
836 * elf32-m68hc1x.c: Don't include alloca-conf.h.
837 * elf64-hppa.c: Likewise.
838 * som.c: Likewise.
839 * wasm-module.c: Likewise.
840 * xsym.c: Likewise.
841 * bfd-in2.h: Regenerate.
842 * config.in: Regenerate.
843 * configure: Regenerate.
844
74edb473
TC
8452021-04-01 Tamar Christina <tamar.christina@arm.com>
846
847 PR ld/26659
848 * cofflink.c (_bfd_coff_generic_relocate_section): Ignore overflow.
849
e9b095a5
ML
8502021-04-01 Martin Liska <mliska@suse.cz>
851
852 * ecoff.c (strneq): Remove strneq and use startswith.
853 (_bfd_ecoff_slurp_armap): Likewise.
854
3f3328b8
ML
8552021-04-01 Martin Liska <mliska@suse.cz>
856
857 * elf-bfd.h (bfd_section_is_ctf): Use startswith function.
858 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
859 (elf_get_reloc_section): Likewise.
860 * elf32-arc.c (elf_arc_size_dynamic_sections): Likewise.
861 * elf32-m32r.c (m32r_elf_section_flags): Likewise.
862 * elf32-microblaze.c (microblaze_elf_size_dynamic_sections): Likewise.
863 * elf32-nds32.c (nds32_elf_size_dynamic_sections): Likewise.
864 (nds32_elf_relocate_section): Likewise.
865 (nds32_elf_action_discarded): Likewise.
866 (nds32_elf_check_relocs): Likewise.
867 (nds32_elf_section_flags): Likewise.
868 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
869 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
870 * elf32-rx.c (rx_table_find): Likewise.
871 (rx_table_map): Likewise.
872 * elf32-spu.c (spu_elf_backend_symbol_processing): Likewise.
873 (spu_elf_find_overlays): Likewise.
874 (needs_ovl_stub): Likewise.
875 (allocate_spuear_stubs): Likewise.
876 (build_spuear_stubs): Likewise.
877 (mark_overlay_section): Likewise.
878 (spu_elf_auto_overlay): Likewise.
879 (spu_elf_output_symbol_hook): Likewise.
880 * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Likewise.
881 * elf32-xtensa.c (xtensa_property_section_name): Likewise.
882 * elf64-ppc.c (ppc64_elf_section_flags): Likewise.
883 (ppc64_elf_relocate_section): Likewise.
884 * elflink.c (resolve_section): Likewise.
885 (UNARY_OP): Likewise.
886 (BINARY_OP_HEAD): Likewise.
887 (elf_link_input_bfd): Likewise.
888 * elfnn-riscv.c (riscv_elf_size_dynamic_sections): Likewise.
889 * elfxx-riscv.c (riscv_parse_subset): Likewise.
890 * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): Likewise.
891 * opncls.c (get_build_id): Likewise.
892
65c5fbd4
AM
8932021-03-31 Alan Modra <amodra@gmail.com>
894
895 PR 27671
896 * bfd-in.h: Don't poison FALSE or TRUE.
897 * bfd-in2.h: Regenerate.
898
0a1b45a2
AM
8992021-03-31 Alan Modra <amodra@gmail.com>
900
901 * sysdep.h: POISON_BFD_BOOLEAN: Define.
902 * aix5ppc-core.c, * aout-cris.c, * aout-ns32k.c, * aout-target.h,
903 * aoutx.h, * arc-got.h, * archive.c, * archive64.c, * archures.c,
904 * bfd-in.h, * bfd.c, * bfdwin.c, * binary.c, * cache.c,
905 * coff-alpha.c, * coff-arm.c, * coff-arm.h, * coff-bfd.c,
906 * coff-bfd.h, * coff-go32.c, * coff-i386.c, * coff-ia64.c,
907 * coff-mcore.c, * coff-mips.c, * coff-rs6000.c, * coff-sh.c,
908 * coff-stgo32.c, * coff-tic30.c, * coff-tic4x.c, * coff-tic54x.c,
909 * coff-x86_64.c, * coff-z80.c, * coff-z8k.c, * coff64-rs6000.c,
910 * coffcode.h, * coffgen.c, * cofflink.c, * compress.c,
911 * corefile.c, * cpu-aarch64.c, * cpu-aarch64.h, * cpu-alpha.c,
912 * cpu-arc.c, * cpu-arm.c, * cpu-arm.h, * cpu-avr.c, * cpu-bfin.c,
913 * cpu-bpf.c, * cpu-cr16.c, * cpu-cris.c, * cpu-crx.c,
914 * cpu-csky.c, * cpu-d10v.c, * cpu-d30v.c, * cpu-dlx.c,
915 * cpu-epiphany.c, * cpu-fr30.c, * cpu-frv.c, * cpu-ft32.c,
916 * cpu-h8300.c, * cpu-hppa.c, * cpu-i386.c, * cpu-ia64.c,
917 * cpu-iamcu.c, * cpu-ip2k.c, * cpu-iq2000.c, * cpu-k1om.c,
918 * cpu-l1om.c, * cpu-lm32.c, * cpu-m10200.c, * cpu-m10300.c,
919 * cpu-m32c.c, * cpu-m32r.c, * cpu-m68hc11.c, * cpu-m68hc12.c,
920 * cpu-m68k.c, * cpu-m9s12x.c, * cpu-m9s12xg.c, * cpu-mcore.c,
921 * cpu-mep.c, * cpu-metag.c, * cpu-microblaze.c, * cpu-mips.c,
922 * cpu-mmix.c, * cpu-moxie.c, * cpu-msp430.c, * cpu-mt.c,
923 * cpu-nds32.c, * cpu-nfp.c, * cpu-nios2.c, * cpu-ns32k.c,
924 * cpu-or1k.c, * cpu-pdp11.c, * cpu-pj.c, * cpu-powerpc.c,
925 * cpu-pru.c, * cpu-riscv.c, * cpu-rl78.c, * cpu-rs6000.c,
926 * cpu-rx.c, * cpu-s12z.c, * cpu-s390.c, * cpu-score.c,
927 * cpu-sh.c, * cpu-sparc.c, * cpu-spu.c, * cpu-tic30.c,
928 * cpu-tic4x.c, * cpu-tic54x.c, * cpu-tic6x.c, * cpu-tilegx.c,
929 * cpu-tilepro.c, * cpu-v850.c, * cpu-v850_rh850.c, * cpu-vax.c,
930 * cpu-visium.c, * cpu-wasm32.c, * cpu-xc16x.c, * cpu-xgate.c,
931 * cpu-xstormy16.c, * cpu-xtensa.c, * cpu-z80.c, * cpu-z8k.c,
932 * dwarf1.c, * dwarf2.c, * ecoff-bfd.h, * ecoff.c, * ecofflink.c,
933 * elf-attrs.c, * elf-bfd.h, * elf-eh-frame.c, * elf-hppa.h,
934 * elf-ifunc.c, * elf-m10200.c, * elf-m10300.c, * elf-nacl.c,
935 * elf-nacl.h, * elf-properties.c, * elf-s390-common.c,
936 * elf-s390.h, * elf-strtab.c, * elf-vxworks.c, * elf-vxworks.h,
937 * elf.c, * elf32-am33lin.c, * elf32-arc.c, * elf32-arm.c,
938 * elf32-arm.h, * elf32-avr.c, * elf32-avr.h, * elf32-bfin.c,
939 * elf32-bfin.h, * elf32-cr16.c, * elf32-cr16.h, * elf32-cris.c,
940 * elf32-crx.c, * elf32-csky.c, * elf32-csky.h, * elf32-d10v.c,
941 * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
942 * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c, * elf32-gen.c,
943 * elf32-h8300.c, * elf32-hppa.c, * elf32-hppa.h, * elf32-i386.c,
944 * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, * elf32-m32c.c,
945 * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
946 * elf32-m68hc1x.c, * elf32-m68hc1x.h, * elf32-m68k.c,
947 * elf32-m68k.h, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
948 * elf32-metag.h, * elf32-microblaze.c, * elf32-mips.c,
949 * elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
950 * elf32-nios2.c, * elf32-nios2.h, * elf32-or1k.c, * elf32-pj.c,
951 * elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
952 * elf32-rx.c, * elf32-s12z.c, * elf32-s390.c, * elf32-score.c,
953 * elf32-score.h, * elf32-score7.c, * elf32-sh-relocs.h,
954 * elf32-sh.c, * elf32-sparc.c, * elf32-spu.c, * elf32-spu.h,
955 * elf32-tic6x.c, * elf32-tic6x.h, * elf32-tilegx.c,
956 * elf32-tilepro.c, * elf32-v850.c, * elf32-v850.h,
957 * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
958 * elf32-xc16x.c, * elf32-xgate.c, * elf32-xstormy16.c,
959 * elf32-xtensa.c, * elf32-z80.c, * elf64-alpha.c, * elf64-bpf.c,
960 * elf64-gen.c, * elf64-hppa.c, * elf64-ia64-vms.c,
961 * elf64-mips.c, * elf64-mmix.c, * elf64-nfp.c, * elf64-ppc.c,
962 * elf64-ppc.h, * elf64-s390.c, * elf64-sparc.c,
963 * elf64-tilegx.c, * elf64-x86-64.c, * elfcode.h,
964 * elfcore.h, * elflink.c, * elfn32-mips.c, * elfnn-aarch64.c,
965 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-aarch64.c,
966 * elfxx-aarch64.h, * elfxx-ia64.c, * elfxx-ia64.h,
967 * elfxx-mips.c, * elfxx-mips.h, * elfxx-riscv.c, * elfxx-riscv.h,
968 * elfxx-sparc.c, * elfxx-sparc.h, * elfxx-target.h,
969 * elfxx-tilegx.c, * elfxx-tilegx.h, * elfxx-x86.c, * elfxx-x86.h,
970 * format.c, * genlink.h, * hash.c, * i386aout.c, * i386lynx.c,
971 * i386msdos.c, * ihex.c, * libaout.h, * libbfd-in.h,
972 * libbfd.c, * libcoff-in.h, * libecoff.h, * libpei.h,
973 * libxcoff.h, * linker.c, * mach-o-aarch64.c, * mach-o-arm.c,
974 * mach-o-i386.c, * mach-o-x86-64.c, * mach-o.c, * mach-o.h,
975 * merge.c, * mmo.c, * netbsd.h, * opncls.c, * pc532-mach.c,
976 * pdp11.c, * pe-arm.c, * pe-i386.c, * pe-mcore.c, * pe-sh.c,
977 * pe-x86_64.c, * peXXigen.c, * pef.c, * pei-arm.c, * pei-i386.c,
978 * pei-ia64.c, * pei-mcore.c, * pei-sh.c, * pei-x86_64.c,
979 * peicode.h, * plugin.c, * plugin.h, * ppcboot.c, * reloc.c,
980 * reloc16.c, * rs6000-core.c, * section.c, * simple.c, * som.c,
981 * som.h, * srec.c, * stabs.c, * syms.c, * targets.c, * tekhex.c,
982 * verilog.c, * vms-alpha.c, * vms-lib.c, * vms-misc.c, * vms.h,
983 * wasm-module.c, * xcofflink.c, * xcofflink.h, * xsym.c,
984 * xsym.h: Replace bfd_boolean with bool, FALSE with false, and
985 TRUE with true throughout.
986 * bfd-in2.h: Regenerate.
987 * libbfd.h: Regenerate.
988 * libcoff.h: Regenerate.
989
ad9e24ad
AM
9902021-03-31 Alan Modra <amodra@gmail.com>
991
992 * bfd-in.h: Include stdbool.h.
993 (bfd_boolean): Define as bool
994 * bfd-in2.h: Regenerate.
995
3dfb1b6d
AM
9962021-03-31 Alan Modra <amodra@gmail.com>
997
998 * .gitignore: Delete bfd_stdint.h entry.
999 * Makefile.am (bfdinclude_HEADERS): Delete bfd_stdint.h.
1000 (BUILD_HFILES, LOCAL_H_DEPS): Likewise.
1001 * bfd-in.h: Include stdint.h in place of bfd_stdint.h.
1002 * configure.ac: Don't invoke GCC_HEADER_STDINT.
1003 * configure.com: Don't create bfd_stdint.h.
1004 * Makefile.in: Regenerate.
1005 * aclocal.m4: Regenerate.
1006 * bfd-in2.h: Regenerate.
1007 * config.in: Regenerate.
1008 * configure: Regenerate.
1009 * doc/Makefile.in: Regenerate.
1010 * po/BLD-POTFILES.in: Regenerate.
1011
57ae980e
AM
10122021-03-31 Alan Modra <amodra@gmail.com>
1013
1014 * bfd-in.h: Include string.h.
1015 (LITMEMCPY, LITSTRCPY): Delete.
1016 * bfd-in2.h: Regenerate.
1017
d1cbe007
AM
10182021-03-30 Alan Modra <amodra@gmail.com>
1019
1020 * elflink.c (elf_link_add_object_symbols): Don't set h->indx
1021 unless is_elf_hash_table.
1022
63b4cc53
AM
10232021-03-29 Alan Modra <amodra@gmail.com>
1024
1025 * aoutx.h (aout_link_write_symbols): Don't cast boolean expression
1026 to bfd_boolean.
1027 * elf32-or1k.c (or1k_set_got_and_rela_sizes): Dont compare booleans
1028 against FALSE.
1029 * elf32-arc.c (name_for_global_symbol): Don't compare boolean to TRUE.
1030 (is_reloc_PC_relative): Don't use "boolean_condition ? TRUE : FALSE".
1031 (is_reloc_SDA_relative, is_reloc_for_GOT): Likewise.
1032 (is_reloc_for_PLT, is_reloc_for_TLS): Likewise.
1033 * elf32-arm.c (stm32l4xx_need_create_replacing_stub): Likewise.
1034 * elf32-nds32.c (insert_nds32_elf_blank): Likewise.
1035 * elf32-rx.c (rx_set_section_contents): Likewise.
1036 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise.
1037 * elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): Likewise.
1038 * mach-o.c (bfd_mach_o_read_command): Likewise.
1039 * targets.c (bfd_get_target_info): Likewise.
1040
f4f9ede0
AM
10412021-03-29 Alan Modra <amodra@gmail.com>
1042
1043 * coff-z80.c (z80_is_local_label_name): Return bfd_boolean.
1044 * elf32-z80.c (z80_is_local_label_name): Likewise.
1045 * elf32-spu.c (spu_elf_modify_headers): Likewise.
1046 * elf32-nds32.h (struct elf_nds32_link_hash_table <hyper_relax>):
1047 Change type to int.
1048 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Correct test
1049 for error return from vms_write_data_block.
1050
1201fda6
AM
10512021-03-29 Alan Modra <amodra@gmail.com>
1052
1053 * elf32-i386.c (elf_i386_finish_local_dynamic_symbol): Return int.
1054 * elf64-ia64-vms.c (elf64_ia64_local_dyn_info_free): Likewise.
1055 (elf64_ia64_local_dyn_sym_thunk): Likewise.
1056 * elf64-x86-64.c (elf_x86_64_finish_local_dynamic_symbol): Likewise.
1057 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_ifunc_dynrelocs),
1058 (elfNN_aarch64_finish_local_dynamic_symbol): Likewise.
1059 * elfnn-ia64.c (elfNN_ia64_local_dyn_info_free): Likewise.
1060 (elfNN_ia64_local_dyn_sym_thunk): Likewise.
1061 * elfnn-riscv.c (allocate_local_ifunc_dynrelocs): Likewise.
1062 (riscv_pcrel_reloc_eq): Likewise.
1063 (riscv_elf_finish_local_dynamic_symbol): Likewise.
1064 * elfxx-sparc.c (allocate_local_dynrelocs): Likewise.
1065 (finish_local_dynamic_symbol): Likewise.
1066 * elfxx-x86.c (elf_x86_allocate_local_dynreloc): Likewise.
1067 * elfxx-mips.c (mips_elf_resolve_got_page_ref): Likewise.
1068 (mips_elf_count_got_symbols): Change return type to bfd_boolean.
1069
37bb890f
AM
10702021-03-29 Alan Modra <amodra@gmail.com>
1071
1072 * elflink.c (elf_link_output_symstrtab): Make flinfo parameter
1073 a void pointer.
1074 (bfd_elf_final_link): Delete out_sym_func typedef and don't cast
1075 elf_link_output_symstrtab when calling output_arch_syms and
1076 output_arch_local_syms.
1077 * elf-bfd.h (struct elf_backend_data <elf_backend_output_arch_syms,
1078 elf_backend_output_arch_local_syms>): Change return type of func
1079 arg to match elf_link_output_symstrtab.
1080 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Correct
1081 return type.
1082 * elf32-nds32.c (nds32_elf_output_symbol_hook): Correct return type.
1083 (nds32_elf_output_arch_syms): Correct func return type.
1084
0f684201
AM
10852021-03-29 Alan Modra <amodra@gmail.com>
1086
1087 * elf-m10200.c (mn10200_elf_relocate_section): Return int.
1088 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1089 * elf32-arc.c (elf_arc_relocate_section): Likewise.
1090 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
1091 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
1092 * elf32-bfin.c (bfin_relocate_section): Likewise.
1093 (bfinfdpic_relocate_section): Likewise.
1094 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
1095 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1096 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
1097 * elf32-csky.c (csky_elf_relocate_section): Likewise.
1098 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
1099 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
1100 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1101 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1102 * elf32-ft32.c (ft32_elf_relocate_section): Likewise.
1103 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
1104 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1105 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1106 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
1107 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
1108 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1109 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
1110 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1111 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1112 * elf32-m68hc1x.h (elf32_m68hc11_relocate_section): Likewise.
1113 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1114 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1115 * elf32-mep.c (mep_elf_relocate_section): Likewise.
1116 * elf32-metag.c (elf_metag_relocate_section): Likewise.
1117 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
1118 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
1119 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
1120 * elf32-mt.c (mt_elf_relocate_section): Likewise.
1121 * elf32-nds32.c (nds32_elf_relocate_section): Likewise.
1122 * elf32-nios2.c (nios2_elf32_relocate_section): Likewise.
1123 * elf32-or1k.c (or1k_elf_relocate_section): Likewise.
1124 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1125 * elf32-pru.c (pru_elf32_relocate_section): Likewise.
1126 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
1127 * elf32-rx.c (rx_elf_relocate_section): Likewise.
1128 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1129 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1130 (_bfd_score_elf_relocate_section): Likewise.
1131 * elf32-score.h (s7_bfd_score_elf_relocate_section): Likewise.
1132 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1133 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1134 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1135 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
1136 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1137 * elf32-vax.c (elf_vax_relocate_section): Likewise.
1138 * elf32-visium.c (visium_elf_relocate_section): Likewise.
1139 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
1140 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1141 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
1142 * elf32-z80.c (z80_elf_relocate_section): Likewise.
1143 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
1144 (elf64_alpha_relocate_section): Likewise.
1145 * elf64-bpf.c (bpf_elf_relocate_section): Likewise.
1146 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
1147 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
1148 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
1149 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1150 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1151 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1152 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise.
1153 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1154 * elfnn-riscv.c (riscv_elf_relocate_section): Likewise.
1155 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
1156 * elfxx-mips.h (_bfd_mips_elf_relocate_section): Likewise.
1157 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1158 * elfxx-sparc.h (_bfd_sparc_elf_relocate_section): Likewise.
1159 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
1160 * elfxx-tilegx.h (tilegx_elf_relocate_section): Likewise.
1161
ff5b3e14
KS
11622021-03-26 Keith Seitz <keiths@redhat.com>
1163
1164 * elfcore.h (_bfd_elf_core_find_build_id): Seek file
1165 offset of program headers after calling elf_read_notes.
1166
f596b03f
JB
11672021-03-23 Jan Beulich <jbeulich@suse.com>
1168
1169 * dwarf2.c (read_indexed_string): Rename index to idx.
1170
08dedd66
ML
11712021-03-22 Martin Liska <mliska@suse.cz>
1172
1173 * bfd-in.h (startswith): Add startswith function.
1174 (CONST_STRNEQ): Remove.
1175 * bfd-in2.h (startswith): Regenerate with make headers.
1176 * archive.c (bfd_slurp_armap): Replace usage of CONST_STRNEQ with startswith.
1177 (_bfd_slurp_extended_name_table): Likewise.
1178 * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise.
1179 * bfd.c (bfd_get_sign_extend_vma): Likewise.
1180 (bfd_convert_section_size): Likewise.
1181 (bfd_convert_section_contents): Likewise.
1182 * coff-stgo32.c (go32exe_create_stub): Likewise.
1183 (go32exe_check_format): Likewise.
1184 * coffcode.h (styp_to_sec_flags): Likewise.
1185 (GNU_DEBUGALTLINK): Likewise.
1186 * coffgen.c (_bfd_coff_section_already_linked): Likewise.
1187 (coff_gc_sweep): Likewise.
1188 (bfd_coff_gc_sections): Likewise.
1189 * cofflink.c (coff_link_add_symbols): Likewise.
1190 (process_embedded_commands): Likewise.
1191 * compress.c (bfd_is_section_compressed_with_header): Likewise.
1192 (bfd_init_section_decompress_status): Likewise.
1193 * dwarf2.c (find_debug_info): Likewise.
1194 (place_sections): Likewise.
1195 * ecoff.c (_bfd_ecoff_slurp_armap): Likewise.
1196 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
1197 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
1198 (assign_section_numbers): Likewise.
1199 (elfcore_grok_win32pstatus): Likewise.
1200 * elf32-arm.c (cmse_scan): Likewise.
1201 (elf32_arm_gc_mark_extra_sections): Likewise.
1202 (elf32_arm_size_dynamic_sections): Likewise.
1203 (is_arm_elf_unwind_section_name): Likewise.
1204 * elf32-bfin.c (bfin_size_dynamic_sections): Likewise.
1205 * elf32-cr16.c (_bfd_cr16_elf_size_dynamic_sections): Likewise.
1206 * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
1207 * elf32-csky.c (csky_elf_size_dynamic_sections): Likewise.
1208 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
1209 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1210 * elf32-lm32.c (lm32_elf_size_dynamic_sections): Likewise.
1211 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Likewise.
1212 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1213 * elf32-metag.c (elf_metag_size_dynamic_sections): Likewise.
1214 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
1215 * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Likewise.
1216 * elf32-or1k.c (or1k_elf_size_dynamic_sections): Likewise.
1217 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
1218 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1219 * elf32-score.c (s3_bfd_score_elf_size_dynamic_sections): Likewise.
1220 * elf32-score7.c (s7_bfd_score_elf_size_dynamic_sections): Likewise.
1221 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
1222 * elf32-tic6x.c (is_tic6x_elf_unwind_section_name): Likewise.
1223 (elf32_tic6x_size_dynamic_sections): Likewise.
1224 * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
1225 * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Likewise.
1226 (xtensa_is_insntable_section): Likewise.
1227 (xtensa_is_littable_section): Likewise.
1228 (xtensa_is_proptable_section): Likewise.
1229 (xtensa_property_section_name): Likewise.
1230 (xtensa_callback_required_dependence): Likewise.
1231 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
1232 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1233 * elf64-ia64-vms.c (is_unwind_section_name): Likewise.
1234 (get_reloc_section): Likewise.
1235 (elf64_ia64_size_dynamic_sections): Likewise.
1236 (elf64_ia64_object_p): Likewise.
1237 * elf64-mmix.c (mmix_elf_add_symbol_hook): Likewise.
1238 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Likewise.
1239 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1240 * elflink.c (elf_link_add_object_symbols): Likewise.
1241 (_bfd_elf_gc_mark_extra_sections): Likewise.
1242 (bfd_elf_parse_eh_frame_entries): Likewise.
1243 (_bfd_elf_section_already_linked): Likewise.
1244 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Likewise.
1245 * elfnn-ia64.c (is_unwind_section_name): Likewise.
1246 (elfNN_ia64_size_dynamic_sections): Likewise.
1247 (elfNN_ia64_object_p): Likewise.
1248 * elfxx-mips.c (FN_STUB_P): Likewise.
1249 (CALL_STUB_P): Likewise.
1250 (CALL_FP_STUB_P): Likewise.
1251 (_bfd_mips_elf_section_from_shdr): Likewise.
1252 (_bfd_mips_elf_fake_sections): Likewise.
1253 (_bfd_mips_elf_size_dynamic_sections): Likewise.
1254 (_bfd_mips_final_write_processing): Likewise.
1255 (_bfd_mips_elf_final_link): Likewise.
1256 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
1257 * elfxx-x86.c (elf_i386_is_reloc_section): Likewise.
1258 (elf_x86_64_is_reloc_section): Likewise.
1259 * hpux-core.c (thread_section_p): Likewise.
1260 * libcoff.h (bfd_pei_p): Likewise.
1261 * linker.c (REAL): Likewise.
1262 (unwrap_hash_lookup): Likewise.
1263 (_bfd_generic_link_add_one_symbol): Likewise.
1264 * mmo.c (mmo_internal_write_section): Likewise.
1265 * osf-core.c (osf_core_core_file_p): Likewise.
1266 * pef.c (bfd_pef_print_symbol): Likewise.
1267 * pei-x86_64.c (pex64_print_all_pdata_sections): Likewise.
1268 * som.c (som_slurp_symbol_table): Likewise.
1269 (som_slurp_armap): Likewise.
1270 * wasm-module.c (wasm_compute_custom_section_file_position): Likewise.
1271
2aaf2ce8
JB
12722021-03-22 Jan Beulich <jbeulich@suse.com>
1273
1274 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Add missing
1275 language translation wrapping to _bfd_error_handler()
1276 invocations.
1277
e9338841
AM
12782021-03-21 Alan Modra <amodra@gmail.com>
1279
1280 * bfd-in.h (startswith): New inline.
1281 (CONST_STRNEQ): Use startswith.
1282 * bfd-in2.h: Regenerate.
1283
15407e7e
AM
12842021-03-20 Alan Modra <amodra@gmail.com>
1285
1286 PR 27590
1287 * elf.c (_bfd_elf_make_section_from_shdr): Remove SHF_EXCLUDE
1288 test for .gnu.debuglto*.
1289
3818d4ab
L
12902021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1291
1292 PR ld/27590
15407e7e 1293 * elf.c (_bfd_elf_make_section_from_shdr): Treat
3818d4ab
L
1294 .gnu.debuglto_.debug_ section as debugging section unless it is
1295 marked with SHF_EXCLUDE.
1296 * elflink.c (elf_create_symbuf): Revert commit 994b2513281.
1297 (bfd_elf_match_symbols_in_sections): Ignore section symbols when
1298 matching non-debugging sections or linkonce section with comdat
1299 section.
1300
51f6e7a9
L
13012021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1302
1303 PR ld/27587
1304 * dwarf2.c (read_attribute_value): Check version >= 3 for
1305 DW_FORM_ref_addr.
1306
012d4426
NC
13072021-03-16 Nick Clifton <nickc@redhat.com>
1308
1309 * peXXigen.c (_bfd_XXi_swap_aux_out): Avoid potential buffer
1310 overrun by using sizeof of the destination x_fname field as the
1311 limit for a memcpy.
1312
80d49d6a
KLC
13132021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1314
1315 * elfxx-riscv.c (riscv_std_z_ext_strtab): Add zba, zbb and zbc.
1316
1b2cb8e2
CC
13172021-03-12 Clément Chigot <clement.chigot@atos.net>
1318
1319 * reloc.c (BFD_RELOC_PPC_TLS_LE, BFD_RELOC_PPC_TLS_IE,
1320 BFD_RELOC_PPC_TLS_M, BFD_RELOC_PPC_TLS_ML, BFD_RELOC_PPC64_TLS_GD,
1321 BFD_RELOC_PPC64_TLS_LD, BFD_RELOC_PPC64_TLS_LE,
1322 BFD_RELOC_PPC64_TLS_IE, BFD_RELOC_PPC64_TLS_M,
1323 BFD_RELOC_PPC64_TLS_ML): New relocations.
1324 * bfd-in2.h: Regenerate.
1325 * libbfd.h: Regenerate.
1326 * coff-rs6000.c (xcoff_calculate_relocation): Call
1327 xcoff_reloc_type_tls for TLS relocations.
1328 (xcoff_howto_table): Implement TLS relocations.
1329 (_bfd_xcoff_reloc_type_lookup): Add cases TLS relocations.
1330 (xcoff_reloc_type_tls): New function.
1331 * coff64-rs6000.c (xcoff_calculate_relocation): Likewise.
1332 (xcoff_howto_table): Likewise.
1333 (_bfd_xcoff_reloc_type_lookup): Likewise.
1334 * coffcode.h (sec_to_styp_flags): Handle TLS sections.
1335 (styp_to_sec_flags): Likewise.
1336 (coff_compute_section_file_positions): Avoid file offset
1337 optimisation for .data when the previous section is .tdata.
1338 (coff_write_object_contents): Handle TLS sections.
1339 * coffswap.h (coff_swap_aouthdr_out): Add support for
1340 new fields in aouthdr.
1341 * libxcoff.h (xcoff_reloc_type_tls): Add prototype.
1342 * xcofflink.c (xcoff_link_add_symbols): Handle XMC_UL.
1343 (xcoff_need_ldrel_p): Add cases for TLS relocations.
1344 (xcoff_create_ldrel): Add l_symndx for TLS sections.
1345
4a403be0
CC
13462021-03-12 Clément Chigot <clement.chigot@atos.net>
1347
1348 * reloc.c (BFD_RELOC_PPC_TOC16_HI, BFD_RELOC_PPC_TOC16_LO):
1349 New relocations.
1350 * bfd-in2.h: Regenerate.
1351 * libbfd.h: Regenerate.
1352 * coff-rs6000.c (xcoff_calculate_relocation): Call
1353 xcoff_reloc_type_toc for R_TOCU and R_TOCL.
1354 (xcoff_howto_table): Remove src_mask for TOC relocations.
1355 Add R_TOCU and R_TOCL howtos.
1356 (_bfd_xcoff_reloc_type_lookup): Add cases for
1357 BFD_RELOC_PPC_TOC16_HI and BFD_RELOC_PPC_TOC16_LO.
1358 (xcoff_reloc_type_toc): Compute the whole offset.
1359 Implement R_TOCU and R_TOCL.
1360 * coff64-rs6000.c (xcoff64_calculate_relocation):
1361 Likewise.
1362 (xcoff64_howto_table): Likewise.
1363 (xcoff64_reloc_type_lookup): Likewise.
1364
2c1bef53
CC
13652021-03-12 Clément Chigot <clement.chigot@atos.net>
1366
1367 * coff-rs6000.c (xcoff_calculate_relocation): Correct and
1368 add new relocations.
1369 (xcoff_howto_table): Likewise.
1370 (xcoff_rtype2howto): Increase r_type maximum value.
1371 (xcoff_ppc_relocate_section): Reuse predefined HOWTOs instead
1372 of create a new one from scratch. Enable only some relocations
1373 to have a changing r_size.
1374 * coff64-rs6000.c (xcoff64_calculate_relocation): Likewise.
1375 (xcoff64_howto_table): Likewise.
1376 (xcoff64_rtype2howto): Likewise.
1377 (xcoff64_ppc_relocate_section): Likewise.
1378 * libxcoff.h (XCOFF_MAX_CALCULATE_RELOCATION): Fix value.
1379
0c929e83
CC
13802021-03-12 Clément Chigot <clement.chigot@atos.net>
1381
1382 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Move.
1383
6d4d9328
CC
13842021-03-12 Clément Chigot <clement.chigot@atos.net>
1385
1386 * coff64-rs6000.c (xcoff64_write_object_contents): Remove.
1387 * coffcode.h (coff_write_object_contents): Add bfd_mach_ppc_620
1388 support for o_cputype field. Avoid creating an empty a.out header
1389 for XCOFF64.
1390
8aa2d023
CC
13912021-03-12 Clément Chigot <clement.chigot@atos.net>
1392
1393 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add
1394 missing smclass.
1395
ebdcad3f
NC
13962021-03-11 Nelson Chu <nelson.chu@sifive.com>
1397
1398 * elfnn-riscv.c (riscv_elf_link_hash_table): New boolean
1399 restart_relax, used to check if we need to run the whole
1400 relaxations from relax pass 0 to 2 again.
1401 (riscv_elf_link_hash_table_create): Init restart_relax to FALSE.
1402 (_bfd_riscv_relax_align): Remove obsolete sec_flg0 set.
1403 (_bfd_riscv_relax_delete): Set again to TRUE if we do delete the code.
1404 (bfd_elfNN_riscv_restart_relax_sections): New function. Called by
1405 after_allocation to check if we need to run the whole relaxations again.
1406 (_bfd_riscv_relax_section): We will only enter into the relax pass 3
1407 when the restart_relax is FALSE; At last set restart_relax to TRUE if
1408 again is TRUE, too.
1409 * elfxx-riscv.h (bfd_elf32_riscv_restart_relax_sections): Declaration.
1410 (bfd_elf64_riscv_restart_relax_sections): Likewise.
1411
67b0f684
JB
14122021-03-10 Jan Beulich <jbeulich@suse.com>
1413
1414 * cofflink.c (_bfd_coff_write_global_sym): Range-check symbol
1415 offset.
1416
2dfa8341
AM
14172021-03-10 Alan Modra <amodra@gmail.com>
1418 Jan Beulich <jbeulich@suse.com>
1419
1420 * elf.c (bfd_elf_generic_reloc): Make references between debug
1421 sections use section relative values.
1422
87fa7d56
JB
14232021-03-09 Jan Beulich <jbeulich@suse.com>
1424
1425 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA.
1426
8c0546e9
L
14272021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1428
1429 PR ld/27425
1430 PR ld/27432
1431 * bfd.c (_bfd_get_link_info): New function.
1432 * elf-bfd.h (output_elf_obj_tdata): Add link_info.
1433 (elf_link_info): New.
1434 * libbfd-in.h (_bfd_get_link_info): New prototype.
1435 * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for
1436 R_AMD64_IMAGEBASE when generating x86-64 ELF executable.
1437 * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h".
1438 (pex64_link_add_symbols): New function.
1439 (coff_bfd_link_add_symbols): New macro.
1440 * libbfd.h: Regenerated.
1441
db6092f3
AB
14422021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1443 Andrew Burgess <andrew.burgess@embecosm.com>
1444
1445 * elf-bfd.h (elfcore_write_riscv_csr): Declare.
1446 * elf.c (elfcore_grok_riscv_csr): New function.
1447 (elfcore_grok_note): Handle NT_RISCV_CSR.
1448 (elfcore_write_riscv_csr): New function.
1449 (elfcore_write_register_note): Handle '.reg-riscv-csr'.
1450
0897bb7d
AB
14512021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1452 Andrew Burgess <andrew.burgess@embecosm.com>
1453
1454 * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define.
1455 (PRPSINFO_PR_PSARGS_LENGTH): Define.
1456 (riscv_write_core_note): New function.
1457 (riscv_elf_grok_psinfo): Make use of two new length defines.
1458 (elf_backend_write_core_note): Define.
1459
b63a5e38
AB
14602021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1461 Andrew Burgess <andrew.burgess@embecosm.com>
1462
1463 * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function.
1464 * elf.c (elfcore_grok_gdb_tdesc): New function.
1465 (elfcore_grok_note): Handle NT_GDB_TDESC.
1466 (elfcore_write_gdb_tdesc): New function.
1467 (elfcore_write_register_note): Handle NT_GDB_TDESC.
1468
2017f387
NC
14692021-03-05 Nick Clifton <nickc@redhat.com>
1470
1471 PR 27521
1472 * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms.
1473 (read_indexed_string): Placeholder function.
1474 (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx*
1475 forms.
1476
b01b5d9a
AM
14772021-03-05 Alan Modra <amodra@gmail.com>
1478
1479 * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
1480 2020-09-16 changes.
1481 * coff-x86_64.c (coff_amd64_reloc): Do more or less the same
1482 adjustments here instead. Separate pc-relative adjustments
1483 from symbol related adjustments. Tidy comments and formatting.
1484
6b5465b9
JB
14852021-03-04 Jan Beulich <jbeulich@suse.com>
1486
1487 * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
1488 final PE images.
1489
0b7733b6
AM
14902021-03-04 Alan Modra <amodra@gmail.com>
1491
1492 * rs6000-core.c (rs6000coff_core_p): Correct prototype.
1493
5789f845
AM
14942021-03-03 Alan Modra <amodra@gmail.com>
1495
1496 PR 27500
1497 * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
1498 processing not when start/stop symbol section is unmarked but
1499 on first time a start/stop symbol is processed.
1500
dc83f2d2
AM
15012021-03-03 Alan Modra <amodra@gmail.com>
1502
1503 * reloc.c: Include x86_64.h rather than internal.h.
1504
ca8f6bc6
NC
15052021-03-02 Nick Clifton <nickc@redhat.com>
1506
1507 PR 27484
1508 * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
1509 function and variable tags and a second time to resolve their
1510 attributes.
1511
211bcd01
NA
15122021-03-02 Nick Alcock <nick.alcock@oracle.com>
1513
1514 * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
1515
b80e421f
AM
15162021-03-02 Alan Modra <amodra@gmail.com>
1517
1518 PR 27451
1519 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
1520 linker defined start/stop symbols when start_stop_gc.
1521
f5b9c288
AM
15222021-03-02 Alan Modra <amodra@gmail.com>
1523
1524 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
1525 indirect to pc-relative or toc-relative for undefined symbols.
1526
8ee10e86
AM
15272021-03-01 Alan Modra <amodra@gmail.com>
1528 Fangrui Song <maskray@google.com>
1529
1530 * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
1531 defined start/stop symbols when start_stop_gc.
1532 (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
1533 (bfd_elf_define_start_stop): Don't modify ldscript_def syms.
1534 * linker.c (bfd_generic_define_start_stop): Likewise.
1535
bbaddd4b
AM
15362021-02-25 Alan Modra <amodra@gmail.com>
1537
1538 PR 27441
1539 * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak.
1540 * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and
1541 use when deciding an as-needed library should be loaded instead
1542 of using the binding of the library definition.
1543
93af1b04
AM
15442021-02-24 Alan Modra <amodra@gmail.com>
1545
1546 PR 27459
1547 * coff-stgo32.c (go32exe_check_format): Sanity check size of
1548 header to avoid a buffer overflow.
1549
e9d18e06
AM
15502021-02-22 Alan Modra <amodra@gmail.com>
1551
1552 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
1553 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
1554
5a9f5403
NC
15552021-02-19 Nelson Chu <nelson.chu@sifive.com>
1556
1557 PR 27158
1558 * elfnn-riscv.c (perform_relocation): Updated encoding macros.
1559 (_bfd_riscv_relax_call): Likewise.
1560 (_bfd_riscv_relax_lui): Likewise.
1561 * elfxx-riscv.c (howto_table): Likewise.
1562
3d73d29e
NC
15632021-02-18 Nelson Chu <nelson.chu@sifive.com>
1564
1565 * Makefile.am: Added cpu-riscv.h.
1566 * Makefile.in: Regenerated.
1567 * po/SRC-POTFILES.in: Regenerated.
1568 * cpu-riscv.h: Added to support spec versions controlling.
1569 Also added extern arrays and functions for cpu-riscv.c.
1570 (enum riscv_spec_class): Define all spec classes here uniformly.
1571 (struct riscv_spec): Added for all specs.
1572 (RISCV_GET_SPEC_CLASS): Added to reduce repeated code.
1573 (RISCV_GET_SPEC_NAME): Likewise.
1574 (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class.
1575 (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class.
1576 (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name.
1577 * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec.
1578 (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS.
1579 (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME.
1580 (riscv_priv_specs): Moved below.
1581 (riscv_get_priv_spec_class_from_numbers): Likewise, updated.
1582 (riscv_isa_specs): Moved from include/opcode/riscv.h.
1583 * elfnn-riscv.c: Included cpu-riscv.h.
1584 (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec.
1585 * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h.
1586 (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h.
1587 * elfxx-riscv.h: Removed extern functions to cpu-riscv.h.
1588
b9b204b3
AM
15892021-02-17 Alan Modra <amodra@gmail.com>
1590
1591 * wasm-module.c: Guard include of limits.h.
1592 (CHAR_BIT): Provide backup define.
1593 (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
1594 Correct signed overflow checking.
1595
0d6aab77
NC
15962021-02-17 Nelson Chu <nelson.chu@sifive.com>
1597
1598 PR 27200
1599 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
1600 copying the elf flags from input BFD to output BFD, until we have
1601 checked if the input BFD has no code section or not. Also fix the
1602 problem that we only check the first section rather than the entire
1603 sections for input BFD.
1604
7b54cadd
AM
16052021-02-16 Alan Modra <amodra@gmail.com>
1606
1607 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
1608 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
1609
8c674061
JB
16102021-02-15 Jan Beulich <jbeulich@suse.com>
1611
1612 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
1613 * doc/Makefile.in: Re-generate.
1614
1781a9d0
AM
16152021-02-15 Alan Modra <amodra@gmail.com>
1616
1617 * elf32-nds32.c (nds32_get_section_contents): Replace
1618 bfd_malloc_and_get_section with bfd_get_full_section_contents.
1619 (nds32_elf_relax_delete_blanks): Init contents.
1620 (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
1621
8b78cbec
AM
16222021-02-15 Alan Modra <amodra@gmail.com>
1623
1624 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
1625 bfd_get_full_section_contents.
1626
d7a7af8f
AM
16272021-02-14 Alan Modra <amodra@gmail.com>
1628
1629 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
1630 all fixes to bfd_generic_get_relocated_section_contents since this
1631 function was split out.
1632
234b98ce
AM
16332021-02-11 Alan Modra <amodra@gmail.com>
1634
1635 * config.bfd: Remove ia64 from obsolete list.
1636
769c253f
AM
16372021-02-11 Alan Modra <amodra@gmail.com>
1638
1639 PR ld/22269
1640 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
1641
31c711a2
AM
16422021-02-11 Alan Modra <amodra@gmail.com>
1643
1644 PR 27294
1645 * elf32-avr.c (avr_elf32_load_records_from_section): Use
1646 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
1647 unnecessary casts.
1648
6db658c5
AM
16492021-02-11 Alan Modra <amodra@gmail.com>
1650
1651 PR 27291
1652 * section.c (bfd_get_section_contents): Avoid possible overflow
1653 when range checking offset and count.
1654 (bfd_set_section_contents): Likewise.
1655
95148614
NA
16562021-02-03 Nick Alcock <nick.alcock@oracle.com>
1657
1658 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
1659 favour of LIBINTL.
1660 * configure: Regenerated.
1661
a57d1773
AM
16622021-02-09 Alan Modra <amodra@gmail.com>
1663
1664 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
1665 * configure.ac: Delete symbian entries.
1666 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
1667 * elf32-arm.c: Remove symbian support. Formatting.
1668 * targets.c: Delete symbian entries.
1669 * configure: Regenerate.
1670
1a2f1b54
L
16712021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1672
1673 PR ld/19609
1674 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
1675 info when failed to convert GOTPCREL relocation.
1676
24075dcc
NC
16772021-02-04 Nelson Chu <nelson.chu@sifive.com>
1678
1679 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
1680
7d409ac0
AM
16812021-02-04 Alan Modra <amodra@gmail.com>
1682
1683 PR 27311
1684 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
1685 libraries for IR references on pass over libraries after LTO
1686 recompilation.
1687
f01fb44c
AM
16882021-02-03 Alan Modra <amodra@gmail.com>
1689
1690 PR 27311
1691 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
1692 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
1693 libraries when H is an indirect symbol after calling
1694 _bfd_elf_add_default_symbol.
1695
69551367
AM
16962021-02-03 Alan Modra <amodra@gmail.com>
1697
1698 PR 27311
1699 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
1700 undecorated symbol will have a different version.
1701
9918bff7
AM
17022021-02-02 Alan Modra <amodra@gmail.com>
1703
1704 PR 27311
1705 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
1706 Use when handling default versioned symbol. Rename existing
1707 override variable to nondef_override and use for non-default
1708 versioned symbol.
1709 (elf_link_add_object_symbols): Adjust call to suit. Don't
1710 pull in as-needed libraries when override is set.
1711
1f568f9a
EH
17122021-02-01 Emery Hemingway <ehmry@posteo.net>
1713
1714 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
1715
34c10233
EV
17162021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
1717
1718 PR 27254
1719 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
1720 offset for the R_RL78_RH_SADDR relocation.
1721
c4566785
AM
17222021-01-29 Alan Modra <amodra@gmail.com>
1723
1724 PR 27271
1725 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
1726 on symbols defined in absolute or other special sections.
1727
def97fb9
AM
17282021-01-28 Alan Modra <amodra@gmail.com>
1729
1730 PR 27259
1731 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
1732 prevent endless looping of linked-to sections.
1733
4cb1265b
MS
17342020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1735
1736 * bfd-elf.h (elfcore_write_file_note): New function.
1737 * elf.c (elfcore_write_file_note): New function.
1738
4287950e
AM
17392021-01-26 Alan Modra <amodra@gmail.com>
1740
1741 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
1742
940d0202
L
17432021-01-24 H.J. Lu <hongjiu.lu@intel.com>
1744
1745 PR binutils/27231
1746 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
1747 number tables.
1748
18454c15
L
17492021-01-23 H.J. Lu <hongjiu.lu@intel.com>
1750
1751 PR binutils/27231
1752 * dwarf2.c (read_rnglists): Advance rngs_ptr after
1753 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
1754
4bd7c902
AM
17552021-01-20 Alan Modra <amodra@gmail.com>
1756
1757 * elf32-ppc.c: Delete outdated comment.
1758 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
1759 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
1760
8bd10d6b
AM
17612021-01-20 Alan Modra <amodra@gmail.com>
1762
1763 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
1764 section symbols are present.
1765
30845f11
AM
17662021-01-19 Alan Modra <amodra@gmail.com>
1767
1768 * elf64-ppc.c (elf_hash_entry): New inline function. Use
1769 throughout to replace casts.
1770 (branch_reloc_hash_match): Remove const from params.
1771 (use_local_plt): New function.
1772 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
1773 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
1774 Use use_local_plt.
1775 * elf32-ppc.c (use_local_plt): New function.
1776 (allocate_dynrelocs, ppc_elf_relocate_section),
1777 (write_global_sym_plt): Use use_local_plt.
1778
994b2513
L
17792021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1780
1781 PR ld/27193
1782 * elflink.c (elf_create_symbuf): Also ignore section symbols.
1783
75a933f3
L
17842021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1785
1786 PR ld/23169
1787 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
1788 check pointer_equality_needed.
1789
68b00778
L
17902021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1791
1792 * elf-linker-x86.h (elf_linker_x86_params): Add
1793 report_relative_reloc.
1794 * elf32-i386.c (elf_i386_relocate_section): Call
1795 _bfd_x86_elf_link_report_relative_reloc to report relative
1796 relocations for -z report-relative-reloc.
1797 (elf_i386_finish_dynamic_symbol): Likewse.
1798 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
1799 (elf_x86_64_finish_dynamic_symbol): Likewse.
1800 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
1801 function.
1802 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
1803 prototype.
1804
ad92f33d
AM
18052021-01-16 Alan Modra <amodra@gmail.com>
1806
1807 * compress.c (decompress_contents): Tidy inflateEnd result test.
1808
eb6e6af8
AM
18092021-01-16 Alan Modra <amodra@gmail.com>
1810
1811 PR 26002
1812 * elflink.c (elf_link_output_extsym): Use version 1 in
1813 .gnu.version for undefined unversioned symbols.
1814
4bb5732e
NC
18152021-01-15 Nelson Chu <nelson.chu@sifive.com>
1816
1817 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
1818 caused the by previous commit accidentally.
1819
1942a048
NC
18202021-01-15 Nelson Chu <nelson.chu@sifive.com>
1821
1822 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
1823 also aligned the code.
1824
b800637e
NC
18252021-01-15 Nelson Chu <nelson.chu@sifive.com>
1826
1827 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
1828
dcd709e0
NC
18292021-01-15 Nelson Chu <nelson.chu@sifive.com>
1830
1831 * elfnn-riscv.c: Comments tidy and improvement.
1832 * elfxx-riscv.c: Likewise.
1833 * elfxx-riscv.h: Likewise.
1834
8ca9c7eb
L
18352021-01-14 H.J. Lu <hongjiu.lu@intel.com>
1836
1837 PR ld/26688
1838 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
1839 section for R_BFIN_FUNCDESC.
1840
7e0d77ef
NC
18412021-01-14 Nick Clifton <nickc@redhat.com>
1842
1843 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
1844
5347ed60
AM
18452021-01-13 Alan Modra <amodra@gmail.com>
1846
1847 * Makefile.in: Regenerate.
1848 * doc/Makefile.in: Regenerate.
1849
b209b5a6
AM
18502021-01-13 Alan Modra <amodra@gmail.com>
1851
1852 PR 27160
1853 * section.c (struct bfd_section): Remove pattern field.
1854 (BFD_FAKE_SECTION): Adjust to suit.
1855 * bfd-in2.h: Regenerate.
1856 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
1857 (bfd_elf_final_link): Don't call elf_fixup_link_order.
1858
d546b610
L
18592021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1860
1861 PR binutils/26792
1862 * configure.ac: Use GNU_MAKE_JOBSERVER.
1863 * aclocal.m4: Regenerated.
1864 * configure: Likewise.
1865
c2e9a4a3
L
18662021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1867
1868 PR ld/27171
1869 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
1870 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
1871
83b33c6c
L
18722021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1873
1874 PR ld/27173
1875 * configure: Regenerated.
1876
a8aa72b9
NC
18772021-01-11 Nick Clifton <nickc@redhat.com>
1878
1879 * po/fr.po: Updated French translation.
1880 * po/pt.po: Updated Portuguese translation.
1881 * po/sr.po: Updated Serbian translation.
1882 * po/uk.po: Updated Ukranian translation.
1883
a4966cd9
L
18842021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1885
1886 * configure: Regenerated.
1887
0a94990b
L
18882021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1889
1890 PR ld/27166
1891 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
1892 -z lam-u48 and -z lam-u57.
1893
573fe3fb
NC
18942021-01-09 Nick Clifton <nickc@redhat.com>
1895
1896 * version.m4: Change to 2.36.50.
1897 * configure: Regenerate.
1898 * po/bfd.pot: Regenerate.
1899
055bc77a
NC
19002021-01-09 Nick Clifton <nickc@redhat.com>
1901
1902 * 2.36 release branch crated.
1903
ba9e922f
L
19042021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1905
1906 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
1907 LAM_U57 when setting LAM_U48.
1908
b1b29aa5
L
19092021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1910
1911 PR ld/26256
1912 PR ld/27160
1913 * elflink.c (elf_fixup_link_order): Verify that fixing up
1914 SHF_LINK_ORDER doesn't increase the output section size.
1915
64307045
AM
19162021-01-09 Alan Modra <amodra@gmail.com>
1917
1918 * configure: Regenerate.
1919
f4782128
ST
19202021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1921
1922 * configure: Regenerate.
1923
d1bcae83
L
19242021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1925
1926 PR 27109
1927 * aix386-core.c (core_aix386_vec): Initialize
1928 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
1929 * aout-target.h (MY (vec)): Likewise.
1930 * binary.c (binary_vec): Likewise.
1931 * cisco-core.c (core_cisco_be_vec): Likewise.
1932 (core_cisco_le_vec): Likewise.
1933 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
1934 * coff-i386.c (TARGET_SYM): Likewise.
1935 (TARGET_SYM_BIG): Likewise.
1936 * coff-ia64.c (TARGET_SYM): Likewise.
1937 * coff-mips.c (mips_ecoff_le_vec): Likewise.
1938 (mips_ecoff_be_vec): Likewise.
1939 (mips_ecoff_bele_vec): Likewise.
1940 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
1941 (powerpc_xcoff_vec): Likewise.
1942 * coff-sh.c (sh_coff_small_vec): Likewise.
1943 (sh_coff_small_le_vec): Likewise.
1944 * coff-tic30.c (tic30_coff_vec): Likewise.
1945 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
1946 (tic54x_coff0_beh_vec): Likewise.
1947 (tic54x_coff1_vec): Likewise.
1948 (tic54x_coff1_beh_vec): Likewise.
1949 (tic54x_coff2_vec): Likewise.
1950 (tic54x_coff2_beh_vec): Likewise.
1951 * coff-x86_64.c (TARGET_SYM): Likewise.
1952 (TARGET_SYM_BIG): Likewise.
1953 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
1954 (rs6000_xcoff64_aix_vec): Likewise.
1955 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
1956 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
1957 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
1958 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
1959 (TARGET_LITTLE_SYM): Likewise.
1960 * hppabsd-core.c (core_hppabsd_vec): Likewise.
1961 * hpux-core.c (core_hpux_vec): Likewise.
1962 * i386msdos.c (i386_msdos_vec): Likewise.
1963 * ihex.c (ihex_vec): Likewise.
1964 * irix-core.c (core_irix_vec): Likewise.
1965 * mach-o-target.c (TARGET_NAME): Likewise.
1966 * mmo.c (mmix_mmo_vec): Likewise.
1967 * netbsd-core.c (core_netbsd_vec): Likewise.
1968 * osf-core.c (core_osf_vec): Likewise.
1969 * pdp11.c (MY (vec)): Likewise.
1970 * pef.c (pef_vec): Likewise.
1971 (pef_xlib_vec): Likewise.
1972 * plugin.c (plugin_vec): Likewise.
1973 * ppcboot.c (powerpc_boot_vec): Likewise.
1974 * ptrace-core.c (core_ptrace_vec): Likewise.
1975 * sco5-core.c (core_sco5_vec): Likewise.
1976 * som.c (hppa_som_vec): Likewise.
1977 * srec.c (srec_vec): Likewise.
1978 (symbolsrec_vec): Likewise.
1979 * tekhex.c (tekhex_vec): Likewise.
1980 * trad-core.c (core_trad_vec): Likewise.
1981 * verilog.c (verilog_vec): Likewise.
1982 * vms-alpha.c (alpha_vms_vec): Likewise.
1983 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
1984 * wasm-module.c (wasm_vec): Likewise.
1985 * xsym.c (sym_vec): Likewise.
1986 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
1987 isn't set.
1988 (elf_map_symbols): Don't include ignored section symbols.
1989 * elfcode.h (elf_slurp_symbol_table): Also set
1990 BSF_SECTION_SYM_USED on STT_SECTION symbols.
1991 * elflink.c (bfd_elf_final_link): Generated section symbols only
1992 when emitting relocations or reqired.
1993 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
1994 * syms.c (BSF_SECTION_SYM_USED): New.
1995 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
1996 (bfd_target): Add keep_unused_section_symbols.
1997 (bfd_keep_unused_section_symbols): New.
1998 * bfd-in2.h: Regenerated.
1999
17d60030
NC
20002021-01-07 Nick Clifton <nickc@redhat.com>
2001
2002 PR 25713
2003 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
2004 absolute paths and check to see if they are longer than MAX_PATH.
2005
aa881ecd
PT
20062021-01-07 Philipp Tomsich <prt@gnu.org>
2007
2008 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
2009
2652cfad
CXW
20102021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
2011 Jim Wilson <jimw@sifive.com>
2012 Andrew Waterman <andrew@sifive.com>
2013 Maxim Blinov <maxim.blinov@embecosm.com>
2014 Kito Cheng <kito.cheng@sifive.com>
2015 Nelson Chu <nelson.chu@sifive.com>
2016
2017 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
2018
d4e57b87
L
20192021-01-06 H.J. Lu <hongjiu.lu@intel.com>
2020
2021 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
2022 (bfinfdpic_check_relocs): Likewise.
2023
599c86c4
AM
20242021-01-06 Alan Modra <amodra@gmail.com>
2025
2026 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
2027 on unknown r_type.
2028 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
2029
3677b729
AM
20302021-01-06 Alan Modra <amodra@gmail.com>
2031
2032 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
2033 (sparc64-*-solaris2*): Add sparc_elf64_vec and
2034 sparc_elf32_vec.
2035
fbc09e7a
MC
20362021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2037
2038 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
2039 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
2040 * configure.ac: Handle riscv_elf[32|64]_be_vec.
2041 * configure: Regenerate.
2042 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
2043 riscv_is_insn_reloc.
2044 (riscv_get_insn): RISC-V instructions are always little endian, but
2045 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
2046 the insturctions.
2047 (riscv_put_insn): Likewsie.
2048 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
2049 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
2050 use riscv_[get|put]_insn or bfd_[get|put].
2051 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
2052 or bfd_[get|put]l16 for code.
2053 (riscv_elf_relocate_section): Likewise.
2054 (riscv_elf_finish_dynamic_symbol): Likewise.
2055 (riscv_elf_finish_dynamic_sections): Likewise.
2056 (_bfd_riscv_relax_call): Likewise.
2057 (_bfd_riscv_relax_lui): Likewise.
2058 (_bfd_riscv_relax_align): Likewise.
2059 (_bfd_riscv_relax_pc): Likewise.
2060 (riscv_elf_object_p): Handled for big endian.
2061 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
2062 * targets.c: Add riscv_elf[32|64]_be_vec.
2063 (_bfd_target_vector): Likewise.
2064
c8bad65e
AM
20652021-01-05 Alan Modra <amodra@gmail.com>
2066
2067 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
2068 for relocatable executable.
2069
de6a7ee4
AM
20702021-01-05 Alan Modra <amodra@gmail.com>
2071
2072 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
2073
18b98722
NC
20742021-01-05 Nelson Chu <nelson.chu@sifive.com>
2075
2076 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
2077 make sure gp symbol is output as a dynamic symbol.
2078
cd6d537c
L
20792021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2080
2081 PR ld/26256
2082 * elflink.c (compare_link_order): Place unordered sections before
2083 ordered sections.
2084 (elf_fixup_link_order): Add a link info argument. Allow mixed
2085 ordered and unordered input sections for non-relocatable link.
2086 Sort the consecutive bfd_indirect_link_order sections with the
2087 same pattern. Change the offsets of the bfd_indirect_link_order
2088 sections only.
2089 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
2090 * section.c (bfd_section): Add pattern.
2091 (BFD_FAKE_SECTION): Initialize pattern to NULL.
2092 * bfd-in2.h: Regenerated.
2093
dbb078f6
AF
20942021-01-04 Alexander Fedotov <alfedotov@gmail.com>
2095
2096 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
2097 of private flags with 0x.
2098 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
2099
5b4293ba
AM
21002021-01-04 Alan Modra <amodra@gmail.com>
2101
2102 PR 26822
2103 * elflink.c (elf_link_input_bfd): Use the file base name in
2104 linker generated STT_FILE symbols.
2105
4c0e540e
NC
21062021-01-04 Nelson Chu <nelson.chu@sifive.com>
2107
2108 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
2109 * elfxx-riscv.h: Add declaration.
2110 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
2111 riscv_compare_subsets to check the orders.
2112 (riscv_skip_prefix): Removed.
2113 (riscv_prefix_cmp): Removed.
2114
e9cf3691
AM
21152021-01-04 Alan Modra <amodra@gmail.com>
2116
2117 PR 26741
2118 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
2119 calculating subset version length.
2120
f9a6a8f0
AM
21212021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2122
2123 * xcofflink.c: Correct spelling in comments.
2124
250d07de
AM
21252021-01-01 Alan Modra <amodra@gmail.com>
2126
2127 Update year range in copyright notice of all files.
2128
c2795844 2129For older changes see ChangeLog-2020
3499769a 2130\f
c2795844 2131Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
2132
2133Copying and distribution of this file, with or without modification,
2134are permitted in any medium without royalty provided the copyright
2135notice and this notice are preserved.
2136
2137Local Variables:
2138mode: change-log
2139left-margin: 8
2140fill-column: 74
2141version-control: never
2142End: