]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
gas/Dwarf: record functions
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
b5c2367c
JB
12022-04-01 John Baldwin <jhb@FreeBSD.org>
2
3 * elf-bfd.h (elfcore_write_x86_segbases): New.
4 * elf.c (elfcore_grok_freebsd_note): Add pseudosections for
5 NT_FREEBSD_X86_SEGBASES register notes.
6 (elfcore_write_x86_segbases): New.
7 (elfcore_write_register_note): Write NT_FREEBSD_X86_SEGBASES
8 register notes.
9
e330d4c0
JB
102022-04-01 John Baldwin <jhb@FreeBSD.org>
11
12 * elf.c (elfcore_grok_freebsd_note): Remove checks for namesz.
13
86ed2a5e
SG
142022-03-22 Steiner H Gunderson <steinar+sourceware@gunderson.no>
15
16 * dwarf2.c (_bfd_dwarf2_find_nearest_line): if a function name is
17 found, but no line number info, then return a result of 2.
18
30cbd32a
SG
192022-03-21 Steiner H Gunderson <steinar+sourceware@gunderson.no>
20
21 PR 28978
22 * dwarf2.c (scan_unit_for_symbols): When performing second pass,
23 check to see if the function or variable being processed is the
24 same as the previous one.
25
a747a286
VP
262022-03-18 Viorel Preoteasa <viorel.preoteasa@gmail.com>
27
28 PR 28924
29 * elf32-arm.c (THM_MAX_FWD_BRANCH_OFFSET): Fix definition.
30 (THM2_MAX_FWD_BRANCH_OFFSET): Likewise.
31
978602e8
SM
322022-03-16 Simon Marchi <simon.marchi@efficios.com>
33
34 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES):
35 Add cpu-amdgcn.c.
36 (BFD64_BACKENDS): Add elf64-amdgcn.lo.
37 (BFD64_BACKENDS_CFILES): Add elf64-amdgcn.c.
38 * Makefile.in: Re-generate.
39 * cpu-amdgcn.c: New.
40 * elf64-amdgcn.c: New.
41 * archures.c (bfd_architecture): Add bfd_arch_amdgcn and related
42 mach defines.
43 (bfd_amdgcn_arch): New.
44 (bfd_archures_list): Add bfd_amdgcn_arch.
45 * bfd-in2.h: Re-generate.
46 * config.bfd: Handle amdgcn* target.
47 * configure.ac: Handle amdgcn_elf64_le_vec.
48 * configure: Re-generate.
49 * elf-bfd.h (elf_target_id): Add AMDGCN_ELF_DATA.
50 * targets.c (amdgcn_elf64_le_vec): New.
51 (_bfd_target_vector): Add amdgcn_elf64_le_vec.
52
ba0eb22c
NC
532022-03-01 Torbjörn Svensson <torbjorn.svensson@st.com>
54 Fred Eisele <fredrick.eisele@gmail.com>
55
56 PR 25713
57 * bfdio.c (_bfd_real_fopen): Fix typo.
58
81c9e0f6
NC
592022-03-01 Nick Clifton <nickc@redhat.com>
60
61 PR 28848
62 * elf32-arm.c (elf32_arm_merge_eabi_attributes): If the first
63 input bfd has a Tag_ABI_HardFP_use set to 3 but does not also have
64 TAG_FP_arch set then reset the TAG_ABI_HardFP_use.
65
cb7da2a6 662022-02-28 Torbjörn Svensson <torbjorn.svensson@st.com>
ba0eb22c 67 Fred Eisele <fredrick.eisele@gmail.com>
cb7da2a6
TS
68
69 PR 25713
ba0eb22c 70 * bfdio.c (_bfd_real_fopen): Fix handling of paths longer than 260
cb7da2a6
TS
71 characters on Windows hosts.
72
eda240cd
NC
732022-02-28 Nick Clifton <nickc@redhat.com>
74
75 PR 28886
76 * config.bfd: Update error message for obsolete configurations.
77
36d285b9
NC
782022-02-17 Nick Clifton <nickc@redhat.com>
79
80 * po/sr.po: Updated Serbian translation.
81
c212f39d
FS
822022-02-16 Fangrui Song <maskray@google.com>
83 Nick Clifton <nickc@redhat.com>
84
85 PR ld/28841
86 * bfd-in2.h (struct bfd_section): Add type.
87 (discarded_section): Add field.
88 * elf.c (elf_fake_sections): Handle bfd_section::type.
89 * section.c (BFD_FAKE_SECTION): Add field.
90 * mri.c (mri_draw_tree): Update function call.
91
5d0d011b
MF
922022-02-11 Michael Forney <mforney@mforney.org>
93
94 * bfd.c (bfd_set_gp_value): Remove return with expression
95 in void function.
96
0f38fd87
NC
972022-02-09 Nick Clifton <nickc@redhat.com>
98
99 * config.bfd: Move pending obsolesence targets into the definitely
100 obsolete list.
101
41ba8b76
NC
1022022-02-02 Nick Clifton <nickc@redhat.com>
103
104 PR 28834
105 * dwarf2.c (read_section): Change the heuristic that checks for
106 overlarge dwarf debug info sections.
107
c7c6e55b
SH
1082022-02-02 Stafford Horne <shorne@gmail.com>
109
110 PR 28735
111 * elf32-or1k.c (or1k_elf_got16_no_overflow_howto): Define.
112 (or1k_elf_relocate_section): Use new howto instead of trying to
113 mask out relocation bits.
114
fdf55097
RM
1152022-01-24 Roland McGrath <mcgrathr@google.com>
116
117 * doc/local.mk (%D%/bfdver.texi): Add mkdir command.
118
5fe73d46
NC
1192022-01-24 Nick Clifton <nickc@redhat.com>
120
121 * po/fr.po: Updated French translation.
122 * po/ro.po: Updated Romanian translation.
123 * po/uk.po: Updated Ukranian translation.
124
f908e960
NC
1252022-01-22 Nick Clifton <nickc@redhat.com>
126
127 * version.m4: Change to 2.38.50.
128 * configure: Regenerate.
129 * po/bfd.pot: Regenerate.
130
a74e1cb3
NC
1312022-01-22 Nick Clifton <nickc@redhat.com>
132
133 * 2.38 release branch created.
134
6c037fdb
NC
1352022-01-17 Nick Clifton <nickc@redhat.com>
136
137 * Makefile.in: Regenerate.
138 * configure: Regenerate.
139 * doc/Makefile.in: Regenerate.
140 * po/bfd.pot: Regenerate.
141
4d3605c8
NP
1422021-12-15 Nikita Popov <npv1310@gmail.com>
143
144 PR 28687
145 * dwarf1.c (parse_die): Fix undefined behaviour in range tests.
146
ee9e412f
NC
1472021-11-17 Nick Clifton <nickc@redhat.com>
148
149 PR 28452
150 * elf.c (assign_file_positions_for_non_load_sections): Replace
151 assertion with a warning message.
152
cf487499
NC
1532021-10-19 Nick Clifton <nickc@redhat.com>
154
155 * linker.c (_bfd_generic_link_add_one_symbol): Test for a NULL
156 name before checking to see if the symbol is __gnu_lto_slim.
157 * archive.c (_bfd_compute_and_write_armap): Likewise.
158
b9004024
NA
1592021-09-27 Nick Alcock <nick.alcock@oracle.com>
160
161 * configure: Regenerate.
162
b4745472
AB
1632021-09-15 Andrew Burgess <andrew.burgess@embecosm.com>
164
165 * archures.c (bfd_arch_list): Use 'char *' instead of 'char **'
166 when calculating space for a string list.
167
09a7e912
CZ
1682021-09-014 Cupertino Miranda <cmiranda@synopsys.com>
169 Claudiu Zissulescu <claziss@synopsys.com>
170
171 * arc-got.h (arc_static_sym_data): New structure.
172 (get_static_sym_data): New function.
173 (relocate_fix_got_relocs_for_got_info): Move the computation fo
174 symbol value and section to above introduced function, and use
175 this new function.
176
64dbf74d
LM
1772021-09-07 Luis Machado <luis.machado@linaro.org>
178
179 Revert: [AArch64] MTE corefile support
180
181 2021-05-21 Luis Machado <luis.machado@linaro.org>
182
183 * elf.c (elfcore_make_memtag_note_section): New function.
184 (elfcore_grok_note): Handle NT_MEMTAG note types.
185
3f1a2892
NC
1862021-09-07 Nick Clifton <nickc@redhat.com>
187
9dc2f267
NC
188 PR 28305
189 * elf32-xtensa.c (elf_xtensa_do_reloc): Add check for put of range
190 reloc.
191
3f1a2892
NC
192 PR 28303
193 * elfxx-riscv.c (riscv_elf_add_sub_reloc): Add check for out of
194 range relocs.
195
3ee0cd9e
NC
1962021-08-10 Nick Clifton <nickc@redhat.com>
197
198 * po/sr.po: Updated Serbian translation.
199
5c9cbf07
NC
2002021-07-18 Nick Clifton <nickc@redhat.com>
201
202 * config.bfd: Move pending obsoletion targets to obsolete list.
203
05a1dd47
GB
2042021-07-16 Giulio Benetti <giulio.benetti@benettiengineering.com>
205
206 * elf32-or1k.c (or1k_elf_relocate_section): Use a separate entry
207 in switch case R_OR1K_INSN_REL_26 where we need to check for
208 !SYMBOL_CALLS_LOCAL() instead of !SYMBOL_REFERENCES_LOCAL().
209
51d29b8c
CC
2102021-07-14 Clément Chigot <clement.chigot@atos.net>
211
212 * libxcoff.h (struct xcoff_dwsect_name): Add DWARF name.
213 * coff-rs6000.c (xcoff_dwsect_names): Update.
214 * coffcode.h (sec_to_styp_flags): Likewise.
215 (coff_new_section_hook): Likewise.
216
f8dd3646
AM
2172021-07-10 Alan Modra <amodra@gmail.com>
218
219 * dwarf2.c (read_address): Remove accidental commit.
220 (read_ranges): Compare offset rather than pointers.
221
f1cee837
NC
2222021-07-08 Nick Clifton <nickc@redhat.com>
223
224 * po/pt.po: Updated Portuguese translation.
225
ca52626b
NC
2262021-07-07 Nick Clifton <nickc@redhat.com>
227
228 * elfcode.h (elf_swap_symbol_out): Revert accidental change that
229 removed an abort if the shndx pointer is NULL.
230
f07afc65
RO
2312021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
232
233 * sysdep.h [!ENABLE_NLS]: Prevent inclusion of <libintl.h> on
234 Solaris.
235
b737d304
RO
2362021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
237
238 * configure.ac: Check for strnlen declaration.
239 * configure, config.in: Regenerate.
240
ffa5352c
NC
2412021-07-07 Nick Clifton <nickc@redhat.com>
242
243 PR 28051
244 * coff-rs6000.c (xcoff_reloc_type_tls): Reformat error messages in
245 order to fix problems when translating.
246 * cofflink.c (_bfd_coff_write_global_sym): Likewise.
247 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
248 Likewise.
249 * po/bfd.pot: Regenerate.
250
235f5ef4
MM
2512021-07-06 Michael Matz <matz@suse.de>
252
253 PR ld/28021
254 * elfnn-riscv.c (riscv_relax_delete_bytes): Check for any
255 versioning.
256
07b2745f
AM
2572021-07-06 Alan Modra <amodra@gmail.com>
258
259 PR 28055
260 * elf64-bpf.c (bpf_elf_generic_reloc): Add missing ATTRIBUTE_UNUSED.
261
b4c4b8aa
AM
2622021-07-05 Alan Modra <amodra@gmail.com>
263
264 PR 28055
265 * elf64-bpf.c (bpf_elf_generic_reloc): Use correct bfd for bfd_put
266 and bfd_put_32 calls. Correct section limit checks.
267
346d80ef
NC
2682021-07-03 Nick Clifton <nickc@redhat.com>
269
270 * version.m4: Update version number.
271 * configure: Regenerate.
272 * po/opcodes.pot: Regenerate.
273
51419248
NC
2742021-07-03 Nick Clifton <nickc@redhat.com>
275
276 * 2.37 release branch created.
277
49910fd8
NC
2782021-07-02 Nick Clifton <nickc@redhat.com>
279
280 PR 28046
281 * dwarf2.c (read_ranges): Check that range_ptr does not exceed
282 range_end.
283
9a39f738
YS
2842021-06-30 YunQiang Su <yunqiang.su@cipunited.com>
285
286 PR mips/28009
287 * bfd/elfxx-mips.c (_bfd_mips_elf_section_from_shdr,
288 _bfd_mips_elf_fake_sections): Mark LTO debug info as
289 SHT_MIPS_DWARF.
290
c2ce8313
NC
2912021-06-29 Nick Clifton <nickc@redhat.com>
292
293 * config.bfd (obsolete configurations): Add netbsdpe.
294
50331d64
NC
2952021-06-22 Nelson Chu <nelson.chu@sifive.com>
296
297 * elfnn-riscv.c (riscv_pcrel_hi_reloc): Added field to store
298 the original relocation type, in case the type is converted to
299 R_RISCV_HI20.
300 (riscv_pcrel_lo_reloc): Removed unused name field.
301 (riscv_pcrel_relocs): Added comments.
302 (riscv_zero_pcrel_hi_reloc): Removed unused input_bfd.
303 (riscv_record_pcrel_hi_reloc): Updated.
304 (riscv_record_pcrel_lo_reloc): Likewise.
305 (riscv_resolve_pcrel_lo_relocs): Likewise. Check the original
306 type of auipc, to make sure the %pcrel_lo without any addends.
307 Otherwise, report dangerous relocation error.
308 (riscv_elf_relocate_section): Updated above functions are changed.
309 For R_RISCV_GOT_HI20, report dangerous relocation error when addend
310 isn't zero.
311
406b4ada
L
3122021-06-19 H.J. Lu <hongjiu.lu@intel.com>
313
314 PR ld/27998
315 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Count PLT for GOTOFF
316 relocation against IFUNC symbols.
317 (_bfd_x86_elf_adjust_dynamic_symbol): Likewise.
318
83b1d8f4
L
3192021-06-19 H.J. Lu <hongjiu.lu@intel.com>
320
321 * elflink.c (bfd_elf_final_link): Correct DT_TEXTREL warning in
322 PDE.
323
5a767724
L
3242021-06-18 H.J. Lu <hongjiu.lu@intel.com>
325
326 * elf-properties.c (_bfd_elf_parse_gnu_properties): Handle
327 GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI,
328 GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI.
329 (elf_merge_gnu_properties): Likewise.
330
f64b9b13
AM
3312021-06-11 Alan Modra <amodra@gmail.com>
332
333 PR 27952
334 * elf-bfd.h (struct elf_obj_tdata): Add is_pie.
335 * elflink.c (elf_link_add_object_symbols): Set is_pie.
336
f75bcf7e
NC
3372021-06-09 Nick Clifton <nickc@redhat.com>
338
339 PR 27666
340 * config.bfd: Do not add the sparc_elf32_vec or sparc_elf64_vec
341 vectors to Sparc Solaris2 targets.
342
5804373d
MM
3432021-06-08 Michael Matz <matz@suse.de>
344
345 * elf.c (bfd_section_from_shdr): Set has_secondary_relocs flag.
346 (_bfd_elf_slurp_secondary_reloc_section): Use it for early-out.
347
6bee34a1
JB
3482021-06-07 Jan Beulich <jbeulich@suse.com>
349
350 * dwarf2.c (read_ranges, read_rnglists): Add u suffix to constant.
351
45342c7c
AM
3522021-06-02 Alan Modra <amodra@gmail.com>
353
354 * elf-attrs.c (_bfd_elf_parse_attributes): Break out of loop if
355 subsection length is too small to cover tag and length field.
356
ef9d2565
NC
3572021-05-31 Nelson Chu <nelson.chu@sifive.com>
358 Lifang Xia <lifang_xia@c-sky.com>
359
360 PR 27566
361 * elfnn-riscv.c (struct riscv_elf_link_hash_table): New integer pointer
362 to monitor the data segment phase.
363 (bfd_elfNN_riscv_set_data_segment_info): New function called by
364 after_allocation, to set the data_segment_phase from expld.dataseg.
365 (_bfd_riscv_relax_section): Don't relax when data_segment_phase is
366 exp_seg_relro_adjust (0x4).
367 * elfxx-riscv.h (bfd_elf32_riscv_set_data_segment_info): New extern.
368 (bfd_elf64_riscv_set_data_segment_info): Likewise
369
1273b2f8
L
3702021-05-28 H.J. Lu <hongjiu.lu@intel.com>
371
372 PR ld/27905
373 * elf32-i386.c: Don't include "libiberty.h".
374 (elf_howto_table): Revert commits a7664973b24 and 50c95a739c9.
375 (elf_i386_rtype_to_howto): Revert commit 50c95a739c9.
376 (elf_i386_info_to_howto_rel): Likewise.
377 (elf_i386_tls_transition): Likewise.
378 (elf_i386_relocate_section): Likewise.
379 * elf64-x86-64.c (x86_64_elf_howto_table): Revert commits
380 a7664973b24 and 50c95a739c9.
381 (elf_x86_64_rtype_to_howto): Revert commit 50c95a739c9.
382 * elfxx-x86.c (_bfd_x86_elf_parse_gnu_properties): Likewise.
383 * elfxx-x86.h (elf_x86_obj_tdata): Likewise.
384 (elf_x86_has_code16): Likewise.
385
50c95a73
L
3862021-05-26 H.J. Lu <hongjiu.lu@intel.com>
387
388 PR ld/27905
389 * elf32-i386.c: Include "libiberty.h".
390 (elf_howto_table): Add 16-bit R_386_PC16 entry.
391 (elf_i386_rtype_to_howto): Add a BFD argument. Use 16-bit
392 R_386_PC16 if input has 16-bit mode instructions.
393 (elf_i386_info_to_howto_rel): Update elf_i386_rtype_to_howto
394 call.
395 (elf_i386_tls_transition): Likewise.
396 (elf_i386_relocate_section): Likewise.
397 * elf64-x86-64.c (x86_64_elf_howto_table): Add 16-bit
398 R_X86_64_PC16 entry.
399 (elf_x86_64_rtype_to_howto): Use 16-bit R_X86_64_PC16 if input
400 has 16-bit mode instructions.
401 * elfxx-x86.c (_bfd_x86_elf_parse_gnu_properties): Set
402 elf_x86_has_code16 if relocatable input is marked with
403 GNU_PROPERTY_X86_FEATURE_2_CODE16.
404 * elfxx-x86.h (elf_x86_obj_tdata): Add has_code16.
405 (elf_x86_has_code16): New.
406
fe1f847d
NC
4072021-05-26 Nelson Chu <nelson.chu@sifive.com>
408
409 * elfxx-riscv.h (check_unknown_prefixed_ext): New bool.
410 * elfxx-riscv.c (riscv_parse_prefixed_ext): Do not check the
411 prefixed extension name if check_unknown_prefixed_ext is false.
412 * elfnn-riscv.c (riscv_merge_arch_attr_info): Set
413 check_unknown_prefixed_ext to false for linker.
414
74fd118f
NC
4152021-05-25 Nick Clifton <nickc@redhat.com>
416
417 * elf32-arn.c (struct elf_arm_obj_tdata): Add num_entries field.
418 (elf32_arm_num_entries): New macro.
419 (elf32_arm_allocate_local_sym_info): Initialise the new field.
420 Allocate arrays individually so that buffer overruns can be
421 detected by memory checkers.
422 (elf32_arm_create_local_iplt): Check num_entries.
423 (elf32_arm_get_plt_info): Likewise.
424 (elf32_arm_final_link_relocate): Likewise.
425 (elf32_arm_check_relocs): Likewise.
426 (elf32_arm_size_dynamic_sections): Likewise.
427 (elf32_arm_output_arch_local_syms): Likewise.
428
cc850f74
NC
4292021-05-25 Nick Clifton <nickc@redhat.com>
430
431 * elf32-arm.c: Fix formatting.
432
4be1e8db
AM
4332021-05-25 Alan Modra <amodra@gmail.com>
434
435 * elf-attrs.c (elf_attr_strdup): New function.
436 (_bfd_elf_attr_strdup): Use it here.
437 (elf_add_obj_attr_string): New function, extracted from..
438 (bfd_elf_add_obj_attr_string): ..here.
439 (elf_add_obj_attr_int_string): New function, extracted from..
440 (bfd_elf_add_obj_attr_int_string): ..here.
441 (_bfd_elf_parse_attributes): Don't allocate an extra byte for a
442 string terminator. Instead ensure parsing doesn't go past
443 end of sub-section. Use size_t variables for lengths.
444
574ec108
AM
4452021-05-22 Alan Modra <amodra@gmail.com>
446
447 * libbfd.c (_bfd_safe_read_leb128): Remove length_return parameter.
448 Replace data pointer with pointer to pointer. Increment pointer
449 over bytes read.
450 * libbfd-in.h (_bfd_safe_read_leb128): Update prototype.
451 * elf-attrs.c (_bfd_elf_parse_attributes): Adjust to suit. Be
452 careful not to increment data pointer past end. Remove now
453 redundant pr17512 check.
454 * wasm-module.c (READ_LEB128): Adjust to suit changes to
455 _bfd_safe_read_leb128.
456 * dwarf2.c (read_n_bytes): New inline function, old one renamed to..
457 (read_blk): ..this. Allocate and return block. Increment bfd_byte**
458 arg.
459 (read_3_bytes): New function.
460 (read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes),
461 (read_8_bytes, read_string, read_indirect_string),
462 (read_indirect_line_string, read_alt_indirect_string): Take a
463 byte_byte** arg which is incremented over bytes read. Remove any
464 bytes_read return. Rewrite limit checks to compare lengths
465 rather than pointers.
466 (read_abbrevs, read_attribute_value, read_formatted_entries),
467 (decode_line_info, find_abstract_instance, read_ranges),
468 (read_rnglists, scan_unit_for_symbols, parse_comp_unit),
469 (stash_comp_unit): Adjust to suit. Rewrite limit checks to
470 compare lengths rather than pointers.
471 * libbfd.h: Regenerate.
472
894982bf
LM
4732021-05-21 Luis Machado <luis.machado@linaro.org>
474
475 * elf.c (elfcore_make_memtag_note_section): New function.
476 (elfcore_grok_note): Handle NT_MEMTAG note types.
477
427e4066
AB
4782021-05-20 Andrew Burgess <andrew.burgess@embecosm.com>
479
480 * section.c (bfd_get_section_by_name): Return NULL if name is
481 NULL.
482 (bfd_get_section_by_name_if): Likewise.
483 * dwarf2.c (read_section): Remove unneeded NULL check.
484 (find_debug_info): Likewise.
485
83b0a686
NC
4862021-05-19 Nick Clifton <nickc@redhat.com>
487
488 * plugin.c (bfd_plugin_open_input): Inform the user if the limit
489 on the number of open files is reached. If possible, try to
490 increase this limit before failing.
491
75f03fa7
NC
4922021-05-14 Nelson Chu <nelson.chu@sifive.com>
493
494 * elfnn-riscv.c (riscv_resolve_pcrel_lo_relocs): Check the values
495 of %pcrel_hi, before and after adding the addend. Make sure the
496 value won't be changed, otherwise, report dangerous error.
497
7671eff8
NC
4982021-05-13 Nelson Chu <nelson.chu@sifive.com>
499
500 * elfxx-riscv.c (check_implicit_always): The check_func, always add
501 the implicit subset without checking.
502 (check_implicit_for_i): The check_func for i, only add zicsr and
503 zifencei when the version of i less than 2.1.
504 (struct riscv_implicit_subset): Record the subsets and their
505 corresponding implicit subsets.
506 (riscv_implicit_subsets): Table records all implicit informations.
507 (riscv_parse_add_implicit_subsets): Updated and add implicit subsets
508 according to riscv_implicit_subsets. Remove the redundant codes.
509
4863cddb
AM
5102021-05-13 Alan Modra <amodra@gmail.com>
511
512 PR 27858
513 * elf32-sh.c (sh_elf_info_to_howto): Correct check for last valid
514 reloc howto.
515
f0bbe8ba
LM
5162021-05-12 Luis Machado <luis.machado@linaro.org>
517
518 * elf-bfd.h (elfcore_write_aarch_mte): New prototype.
519 * elf.c (elfcore_grok_aarch_mte, elfcore_write_aarch_mte): New
520 functions.
521 (elfcore_grok_note): Handle notes of type NT_ARM_TAGGED_ADDR_CTRL.
522 (elfcore_write_register_note): Handle MTE notes.
523
8ca5537b
AM
5242021-05-11 Alan Modra <amodra@gmail.com>
525
526 PR 27844
527 * pdp11.c (aout_get_external_symbols): Clear first four bytes of
528 strings array, not just the first byte.
529 * aoutx.h (aout_get_external_symbols): Likewise.
530
b397aef4
L
5312021-05-10 H.J. Lu <hongjiu.lu@intel.com>
532
533 PR binutils/27839
534 * simple.c (bfd_simple_get_relocated_section_contents): Remove
535 strayed fprintf.
536
23182ac0
NC
5372021-05-10 Nick Clifton <nickc@redhat.com>
538
539 PR 27839
540 * simple.c (simple_dummy_add_to_set): New function.
541 (simple_dummy_constructor): New function.
542 (simple_dummy_multiple_common): New function.
543 (bfd_simple_get_relocated_section_contents): Zero out the
544 callbacks structure, and then set the add_to_set, constructor and
545 multiple_common fields.
546
5b45e89f
DD
5472021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
548
549 * elf32-pru.c (elf_backend_can_gc_sections): Define as 1.
550
cf758b39
MF
5512021-05-08 Mike Frysinger <vapier@gentoo.org>
552
553 * doc/Makefile.am (html-local, bfd/index.html): New targets.
554 * doc/Makefile.in: Regenerate.
555
2faf902d
MF
5562021-05-08 Mike Frysinger <vapier@gentoo.org>
557
558 * doc/Makefile.am (AM_MAKEINFOFLAGS): Define.
559 * doc/Makefile.in: Regenerate.
560
97834047
CC
5612021-05-07 Clément Chigot <clement.chigot@atos.net>
562
563 * coff-rs6000.c (xcoff_dwsect_names): Add new DWARF
564 sections.
565 * coffgen.c (coff_pointerize_aux): Handle C_DWARF.
566 (coff_print_symbol): Likewise.
567 * libxcoff.h (XCOFF_DWSECT_NBR_NAMES): Update.
568
17c6c3b9
JB
5692021-05-07 Jan Beulich <jbeulich@suse.com>
570
571 * elf64-x86-64.c (x86_64_elf_howto_table): Set src_mask fields
572 to zero.
573
a41513ef
AM
5742021-05-07 Alan Modra <amodra@gmail.com>
575
576 * bfd-in2.h: Regenerate.
577 * libbfd.h: Regenerate.
578
284a1309
SH
5792021-05-06 Stafford Horne <shorne@gmail.com>
580
581 PR 27746
582 * elf32-or1k.c (PLT_ENTRY_SIZE_LARGE, PLT_MAX_INSN_COUNT,
583 OR1K_ADD, OR1K_ORI): New macros to help with plt creation.
584 (elf_or1k_link_hash_table): New field plt_count.
585 (elf_or1k_link_hash_entry): New field plt_index.
586 (elf_or1k_plt_entry_size): New function.
587 (or1k_write_plt_entry): Update to support variable size PLTs.
588 (or1k_elf_finish_dynamic_sections): Use new or1k_write_plt_entry
589 API.
590 (or1k_elf_finish_dynamic_symbol): Update to write large PLTs
591 when needed.
592 (allocate_dynrelocs): Use elf_or1k_plt_entry_size to account for
593 PLT size.
594
3c3de29b
SH
5952021-05-06 Stafford Horne <shorne@gmail.com>
596
597 PR 21464
598 * elf32-or1k.c (or1k_elf_relocate_section): Relax R_OR1K_GOT16
599 overflow check if we have R_OR1K_GOT_AHI16 followed by
600 R_OR1K_GOT16.
601
0b3e14c9
SH
6022021-05-06 Stafford Horne <shorne@gmail.com>
603
604 PR 21464
605 * bfd-in2.h: Add BFD_RELOC_OR1K_GOT_AHI16 relocation.
606 * elf32-or1k.c (or1k_elf_howto_table, or1k_reloc_map): Likewise.
607 (or1k_final_link_relocate, or1k_elf_relocate_section,
608 or1k_elf_check_relocs): Likewise.
609 * libbfd.h (bfd_reloc_code_real_names): Likewise.
610 * reloc.c: Likewise.
611
a76ef689
SH
6122021-05-06 Stafford Horne <shorne@gmail.com>
613
614 PR 27624
615 * elf32-or1k.c (or1k_elf_adjust_dynamic_symbol): Change
616 condition used to cleanup plt entries to cleanup forced local
617 entries.
618
4467df35
L
6192021-05-05 H.J. Lu <hongjiu.lu@intel.com>
620
621 PR ld/27825
622 * elflink.c (elf_link_output_symstrtab): Always append ".COUNT"
623 to local symbols.
624
c38c6234
AM
6252021-05-05 Alan Modra <amodra@gmail.com>
626
627 * vms-lib.c (vms_traverse_index): Account for vms_kbn size when
628 sanity checking keylen.
629
bd6d8601
NC
6302021-05-04 Nick Clifton <nickc@redhat.com>
631
632 * libbfd.c (bfd_malloc): Provide some documenation. Treat a size
633 of 0 as 1.
634 (bfd_realloc): Likewise.
635 (bfd_zmalloc): Likewise.
636 (bfd_realloc_or_free): Provide some documentation. Treat a size
637 of 0 as a request to free.
638 * libbfd-in.h (bfd_realloc): Remove prototype.
639 (bfd_realloc_or_free): Remove prototype.
640 (bfd_zmalloc): Remove prototype.
641 * libbfd.h: Regenerate.
642
4c398cc0
JB
6432021-05-03 Jan Beulich <jbeulich@suse.com>
644
645 * elf32-i386.c (elf_howto_table): Switch all 32-bit relocs to
646 complain_overflow_dont.
647 * elf64-x86-64.c (x86_64_elf_howto_table): Switch all 64-bit
648 relocs to complain_overflow_dont.
649
49160308
AM
6502021-05-03 Alan Modra <amodra@gmail.com>
651
652 * elf32-ppc.c (allocate_dynrelocs): Keep dyn_relocs for undefweak
653 symbols when -z dynamic-undefined-weak or when there are no
654 dynamic relocs in read-only sections and -z nodynamic-undefined-weak
655 is not given.
656 * elf64-ppc.c (allocate_dynrelocs): Likewise.
657
b2936612
AM
6582021-05-03 Alan Modra <amodra@gmail.com>
659
660 * elf32-ppc.c (allocate_dynrelocs): Call ensure_undef_dynamic for
661 weak undefined symols that only appear on PLT relocs.
662 * elf64-ppc.c (allocate_dynrelocs): Likewise.
663
337d0bf8
AM
6642021-05-03 Alan Modra <amodra@gmail.com>
665
666 PR 27755
667 * elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop.
668
5072b52d
AM
6692021-05-03 Alan Modra <amodra@gmail.com>
670
671 * elf32-csky.c (is_mapping_symbol_name): New function.
672 (csky_elf_is_target_special_symbol): Likewise.
673 (csky_elf_maybe_function_sym): Likewise.
674 (bfd_elf32_bfd_is_target_special_symbol): Define.
675 (elf_backend_maybe_function_sym): Define.
676
d1fbc3ba
NC
6772021-04-30 Nick Clifton <nickc@redhat.com>
678
679 PR 27801
680 * mach-o.c (bfd_mach_o_core_fetch_environment): Use bfd_get_32 to
681 read 32-bit value.
682
9f84cb38
NC
6832021-04-30 Nick Clifton <nickc@redhat.com>
684
685 PR 27799
686 * elf32-xtensa.c (elf_xtensa_grok_prstatus): Check for core notes
687 that are too small.
688
6cb40a67
NC
6892021-04-30 Nick Clifton <nickc@redhat.com>
690
691 PR 27797
692 * libbfd.c (bfd_realloc_or_free): Do not free a pointer than has
693 been realloc'ed to size 0.
694
bceb87ef
NC
6952021-04-30 Nick Clifton <nickc@redhat.com>
696
697 PR 27795
698 * coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Check for invalid name
699 lengths.
700
09e40e44
NC
7012021-04-29 Nick Clifton <nickc@redhat.com>
702
703 PR 27793
704 * som.c (som_slurp_symbol_table): Assign symbols without any scope
705 to the undefined section.
706 (som_decode_symclass): Check for a missing symbol section.
707 * syms.c (bfd_decode_symclass): Likewise.
708
063e75c9
NC
7092021-04-29 Nick Clifton <nickc@redhat.com>
710
711 PR 27792
712 * som.c (som_slurp_string_table): Place a terminating NUL byte at
713 the end of the table.
714 (som_slurp_symbol_table): Check for an over-large offset into the
715 string string table.
716
24aebc79
NC
7172021-04-28 Nick Clifton <nickc@redhat.com>
718
719 * elf.c (_bfd_elf_maybe_function_sym): Do not accept annobin
720 symbols as potential function symbols.
721 * elfnn-aarch64.c (elfNN_aarch64_maybe_function_sym): Likewise.
722 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
723 * elf32-arm.c (elf32_arm_maybe_function_sym): Likewise.
724
3955e346
MF
7252021-04-26 Mike Frysinger <vapier@gentoo.org>
726
727 * elf-bfd.h: Include stdlib.h.
728
a7664973
JB
7292021-04-26 Jan Beulich <jbeulich@suse.com>
730
731 * elf32-i386.c (elf_howto_table): Switch R_386_PC16 to
732 complain_overflow_signed.
733 * elf64-x86-64.c (x86_64_elf_howto_table): Switch R_X86_64_PC16
734 to complain_overflow_signed.
735
f5e98b7d
EB
7362021-04-23 Eric Botcazou <ebotcazou@adacore.com>
737
738 * elf.c (special_sections_p): Add .persistent.bss.
739
c21346c5
JB
7402021-04-23 Jan Beulich <jbeulich@suse.com>
741
742 * elf32-i386.c (elf_howto_table): R_386_TLS_DESC_CALL has zero
743 size field.
744 * elf64-x86-64.c (x86_64_elf_howto_table): R_X86_64_TLSDESC_CALL
745 has zero size field.
746
bdd2aaf6
CC
7472021-04-22 Clément Chigot <clement.chigot@atos.net>
748
749 * hash.c (struct bfd_strtab_hash): Remove xcoff field.
750 Add length_field_size field.
751 (_bfd_stringtab_init): Change prototype.
752 Adapt to new length_field_size.
753 (_bfd_xcoff_stringtab_init): Likewise.
754 (_bfd_stringtab_add): Likewise.
755 (_bfd_stringtab_emit): Likewise.
756 * libbfd-in.h (_bfd_xcoff_stringtab_init):
757 Change prototype.
758 * libbfd.h: Regenerate.
759 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create):
760 Call _bfd_xcoff_stringtab_init with isxcoff64 value.
761
b11b2969
CC
7622021-04-22 Clément Chigot <clement.chigot@atos.net>
763
764 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Add errors for
765 unsupported storage class or auxialiry entries.
766 Improve and adapt to new aux structures.
767 Add C_DWARF support.
768 (_bfd_xcoff_swap_aux_out): Likewise.
769 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Likewise.
770 (_bfd_xcoff64_swap_aux_out): Likewise.
771
18e9a809
EZ
7722021-04-21 Eli Zaretskii <eliz@gnu.org>
773
774 PR 27760
775 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add display
776 of IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP,
777 IMAGE_FILE_NET_RUN_FROM_SWAP and IMAGE_FILE_UP_SYSTEM_ONLY flags.
778 Decode the contents of the DllCharacteristics field.
779
33fe00c1
NC
7802021-04-21 Nick Clifton <nickc@redhat.com>
781
782 PR 27759
783 * srec.c (srec_read_section): Replace assertions with error
784 returns.
785
c5df7e44
CC
7862021-04-20 Clément Chigot <clement.chigot@atos.net>
787
788 PR binutils/21700
789 * reloc.c (BFD_RELOC_PPC_NEG): New relocation.
790 * bfd-in2.h: Regenerate.
791 * libbfd.h: Regenerate.
792 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Add
793 BFD_RELOC_PPC_NEG handler.
794 (xcoff_reloc_type_neg): Correctly substract addend.
795 * coff64-rs6000.c (xcoff64_howto_table): Add R_NEG_32
796 howto.
797 (xcoff64_rtype2howto): Add handler for R_NEG_32.
798 (xcoff64_reloc_type_lookup): Add BFD_RELOC_PPC_NEG handler.
799 * xcofflink.c (xcoff_need_ldrel_p): Check output section
800 for R_POS-like relocations. New argument added.
801 (xcoff_mark): Adapt to new xcoff_need_ldrel_p argument.
802 (xcoff_link_input_bfd): Likewise.
803
6f8f6017
AM
8042021-04-16 Alan Modra <amodra@gmail.com>
805
806 PR 27567
807 * coffcode.h (styp_to_sec_flags): Use an unsigned long styp_flags.
808 (coff_write_object_contents): Pass bfd to COFF_ENCODE_ALIGNMENT,
809 ignore alignment checks when return is false. Formatting.
810
ddfe525f
NC
8112021-04-15 Nelson Chu <nelson.chu@sifive.com>
812
813 PR27584
814 * elfnn-riscv.c (riscv_elf_is_target_special_symbol): Added to
815 omit local and empty symbols since they usually generated to
816 mark the auipc instructions.
817
f6a1f957
LX
8182021-04-15 Lifang Xia<lifang_xia@c-sky.com>
819
820 * elf32-csky.c (csky_elf_howto_table)
821 <R_CKCORE_PCREL_IMM16BY2>: Set special_function to
822 bfd_elf_generic_reloc.
823 <R_CKCORE_PCREL_IMM16BY4>: Likewise.
824 <R_CKCORE_PCREL_IMM10BY4>: Likewise.
825 <R_CKCORE_PCREL_IMM18BY2>: Likewise.
826 <R_CKCORE_PCREL_FLRW_IMM8BY4>: Likewise.
827
9917b559
L
8282021-04-14 H.J. Lu <hongjiu.lu@intel.com>
829
830 PR binutils/27708
831 * elf.c (assign_file_positions_for_non_load_sections): Set
832 p_memsz to p_filesz for the loadable PT_NOTE segment.
833
5f47741b
FC
8342021-04-14 Frederic Cambus <fred@statdns.com>
835
836 * elf.c (elfcore_grok_netbsd_note): Remove unneeded #ifdef
837 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
838
8985b74b
AM
8392021-04-14 Alan Modra <amodra@gmail.com>
840
841 PR 27631
842 * elf32-metag.c (elf_metag_relocate_section): Don't use &hh->elf
843 when hh might be NULL, test for NULL first.
844
c9f9a78d
AM
8452021-04-14 Alan Modra <amodra@gmail.com>
846
847 PR 27630
848 * elf32-arm.c (elf32_arm_size_stubs): Don't use &hash->root when
849 hash might be NULL, cast instead.
850
d2f1139e
CC
8512021-04-13 Clément Chigot <clement.chigot@atos.net>
852
853 * xcofflink.c (xcoff_link_check_ar_symbols): Update esym earlier.
854
e3839c10
NC
8552021-04-13 Nelson Chu <nelson.chu@sifive.com>
856
857 * elfnn-riscv.c (riscv_version_mismatch): Do not report the warning
858 when the version of input or output is RISCV_UNKNOWN_VERSION, since
859 the extension is added implicitly.
860 * elfxx-riscv.c: Updated the obsolete comments.
861 (RISCV_UNKNOWN_VERSION): Moved to elfxx-riscv.h.
862 * elfxx-riscv.h (RISCV_UNKNOWN_VERSION): Added.
863
43e05cd4
AM
8642021-04-12 Alan Modra <amodra@gmail.com>
865
866 * elf-bfd.h (ENABLE_CHECKING): Define.
867 (elf_link_hash_lookup): Abort if wrong type of hash table.
868 * configure.ac (--enable-checking): Add support.
869 * config.in: Regenerate.
870 * configure: Regenerate.
871
2cc15b10
AM
8722021-04-12 Alan Modra <amodra@gmail.com>
873
874 * elf-bfd.h (is_elf_hash_table): Convert macro to inline function.
875 (elf_link_hash_lookup, elf_link_hash_traverse): Likewise.
876 (elf_hash_table, elf_hash_table_id): Likewise.
877 * elf32-arm.c (elf32_arm_setup_section_lists): Delete redundant
878 is_elf_hash_table check.
879 * elf32-csky.c (elf32_csky_setup_section_lists): Likewise.
880 * elf32-hppa.c (clobber_millicode_symbols): Correct param types.
881 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
882 * elfnn-ia64.c (elfNN_ia64_global_dyn_info_free: Likewise.
883 (elfNN_ia64_global_dyn_sym_thunk: Likewise.
884 * elf64-ia64-vms.c (elf64_ia64_global_dyn_info_free): Likewise.
885 (elf64_ia64_global_dyn_sym_thunk): Likewise.
886 (elf64_vms_link_add_object_symbols): Pass base type of hash table
887 to is_elf_hash_table.
888 * elflink.c (_bfd_elf_dynamic_symbol_p): Likewise.
889 (_bfd_elf_symbol_refs_local_p, _bfd_elf_add_dynamic_entry): Likewise.
890 (_bfd_elf_strip_zero_sized_dynamic_sections): Likewise.
891 (_bfd_elf_link_check_relocs, elf_link_add_object_symbols): Likewise.
892 (bfd_elf_final_link): Likewise.
893 * elfnn-aarch64.c (elfNN_aarch64_setup_section_lists): Likewise.
894 * elf64-ppc.c (ppc64_elf_set_toc): Likewise. Use bfd_link_hash_lookup.
895
b585e899
AM
8962021-04-12 Alan Modra <amodra@gmail.com>
897
898 * elf-bfd.h (struct elf_backend_data): Return bfd_link_hash_entry*
899 from elf_backend_archive_symbol_lookup.
900 (_bfd_elf_archive_symbol_lookup): Return bfd_link_hash_entry*.
901 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Likewise. Check
902 we have a ppc_hash_table before accessing ppc_link_hash_entry
903 fields.
904 * elflink.c (_bfd_elf_archive_symbol_lookup): Return
905 bfd_link_hash_entry*.
906 (elf_link_add_archive_symbols): Adjust to suit.
907
f5b10973
NC
9082021-04-12 Nelson Chu <nelson.chu@sifive.com>
909
910 * elfxx-riscv.c (riscv_parse_std_ext): Fixed the wrong versions of
911 i-ext when expanding g-ext.
912
f0bae255
NC
9132021-04-12 Nelson Chu <nelson.chu@sifive.com>
914
915 * elfxx-riscv.c (riscv_ext_dont_care_version): Removed.
916 (riscv_parse_add_subset): Always add the implicit extensions, even if
917 their versions are RISCV_UNKNOWN_VERSION.
918 (riscv_parse_std_ext): Delay to add i-ext as the implicit extension
919 in the riscv_parse_add_implicit_subsets. Besides, add g-ext as the
920 implicit extension after it has been expanded.
921 (riscv_parse_add_implicit_subsets): Updated.
922
e601909a
NC
9232021-04-12 Nelson Chu <nelson.chu@sifive.com>
924
925 * elfxx-riscv.c (riscv_std_z_ext_strtab): Moved forward.
926 (riscv_std_s_ext_strtab): Likewise.
927 (riscv_std_h_ext_strtab): Likewise.
928 (riscv_std_zxm_ext_strtab): Added for the zxm prefix.
929 (enum riscv_prefix_ext_class): Moved forward and renamed from
930 riscv_isa_ext_class. Reorder them according to the parsing order,
931 since the enum values are used to check the orders in the
932 riscv_compare_subsets.
933 (struct riscv_parse_prefix_config): Moved forward and renamed from
934 riscv_parse_config_t. Also removed the ext_valid_p field, the
935 related functions are replaced by riscv_valid_prefixed_ext.
936 (parse_config): Moved forward and updated. The more letters of the
937 prefix string, the more forward it must be defined. Otherwise, we
938 will get the wrong mapping when using strncmp in riscv_get_prefix_class.
939 (riscv_get_prefix_class): Moved forward. Support to parse the
940 multi-letter prefix, like zxm.
941 (riscv_known_prefixed_ext): New function, check if the prefixed
942 extension is supported according to the right riscv_std_*_ext_strtab.
943 (riscv_valid_prefixed_ext): New function, used to replace the
944 riscv_ext_*_valid_p functions.
945 (riscv_init_ext_order): Do not set the values for prefix keywords
946 since they may have multiple letters for now.
947 (riscv_compare_subsets): Set the order values of prefix keywords
948 to negative numbers according to the riscv_prefix_ext_class.
949 (riscv_parse_std_ext): Call riscv_get_prefix_class to see if we
950 have parsed the prefixed extensions.
951 (riscv_parse_prefixed_ext): Updated and removed the parameter config.
952 Report error when the prefix is unknown.
953 (riscv_parse_subset): Do not parse the prefixed extensions according
954 to the orders in the parse_config. Remove the confused message and
955 let riscv_parse_prefixed_ext to report the details.
956 * elfxx-riscv.h (enum riscv_isa_ext_class): Moved to elfxx-riscv.c.
957 (riscv_get_prefix_class): Removed to static.
958
eec8bf7e
MF
9592021-04-08 Mike Frysinger <vapier@gentoo.org>
960
961 * configure.ac (ACX_BUGURL): Use https://.
962 * configure.com (COPY_TEXT): Likewise.
963 * configure: Regenerate.
964
83c79df8
AM
9652021-04-05 Alan Modra <amodra@gmail.com>
966
967 * configure.ac: Don't check for long long or long double type.
968 Don't check for alloca.h, limits.h, stddef.h, stdlib.h, string.h,
969 strings.h, time.h, wchar.h, wctype.h or sys/time.h. Don't check
970 for strtoull, free, malloc, realloc, getenv, strstr, snprintf,
971 vsnprintf, strlen or setitimer. Sort AC_CHECK_DECLS.
972 (AC_ISC_POSIX): Don't invoke.
973 (AC_HEADER_TIME, AC_HEADER_DIRENT, ACX_HEADER_STRING): Likewise.
974 * sysdep.h: Remove many HAVE_*_H checks and fallback declarations.
975 Do test HAVE_SYS_TYPES_H. Don't include sys/time.h. Reorder
976 header order as per automake AC_INCLUDES_DEFAULT.
977 * bfd-in.h: Include inttypes.h unconditionally.
978 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Assume long long and
979 long double are available.
980 (bfd_scan_vma): Assume long long and strtoull are available.
981 * elflink.c: Include limits.h unconditionally.
982 * elfnn-riscv.c: Likewise.
983 * wasm-module.c: Likewise.
984 * hpux-core.c: Include dirent.h unconditionally.
985 * trad-core.c: Likewise.
986 * hosts/x86-64linux.h: Include stdlib.h unconditionally.
987 * peXXigen.c: Remove HAVE_WCHAR_H and HAVE_WCTYPE_H checks.
988 * elf32-m68hc1x.c: Don't include alloca-conf.h.
989 * elf64-hppa.c: Likewise.
990 * som.c: Likewise.
991 * wasm-module.c: Likewise.
992 * xsym.c: Likewise.
993 * bfd-in2.h: Regenerate.
994 * config.in: Regenerate.
995 * configure: Regenerate.
996
74edb473
TC
9972021-04-01 Tamar Christina <tamar.christina@arm.com>
998
999 PR ld/26659
1000 * cofflink.c (_bfd_coff_generic_relocate_section): Ignore overflow.
1001
e9b095a5
ML
10022021-04-01 Martin Liska <mliska@suse.cz>
1003
1004 * ecoff.c (strneq): Remove strneq and use startswith.
1005 (_bfd_ecoff_slurp_armap): Likewise.
1006
3f3328b8
ML
10072021-04-01 Martin Liska <mliska@suse.cz>
1008
1009 * elf-bfd.h (bfd_section_is_ctf): Use startswith function.
1010 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
1011 (elf_get_reloc_section): Likewise.
1012 * elf32-arc.c (elf_arc_size_dynamic_sections): Likewise.
1013 * elf32-m32r.c (m32r_elf_section_flags): Likewise.
1014 * elf32-microblaze.c (microblaze_elf_size_dynamic_sections): Likewise.
1015 * elf32-nds32.c (nds32_elf_size_dynamic_sections): Likewise.
1016 (nds32_elf_relocate_section): Likewise.
1017 (nds32_elf_action_discarded): Likewise.
1018 (nds32_elf_check_relocs): Likewise.
1019 (nds32_elf_section_flags): Likewise.
1020 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
1021 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
1022 * elf32-rx.c (rx_table_find): Likewise.
1023 (rx_table_map): Likewise.
1024 * elf32-spu.c (spu_elf_backend_symbol_processing): Likewise.
1025 (spu_elf_find_overlays): Likewise.
1026 (needs_ovl_stub): Likewise.
1027 (allocate_spuear_stubs): Likewise.
1028 (build_spuear_stubs): Likewise.
1029 (mark_overlay_section): Likewise.
1030 (spu_elf_auto_overlay): Likewise.
1031 (spu_elf_output_symbol_hook): Likewise.
1032 * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Likewise.
1033 * elf32-xtensa.c (xtensa_property_section_name): Likewise.
1034 * elf64-ppc.c (ppc64_elf_section_flags): Likewise.
1035 (ppc64_elf_relocate_section): Likewise.
1036 * elflink.c (resolve_section): Likewise.
1037 (UNARY_OP): Likewise.
1038 (BINARY_OP_HEAD): Likewise.
1039 (elf_link_input_bfd): Likewise.
1040 * elfnn-riscv.c (riscv_elf_size_dynamic_sections): Likewise.
1041 * elfxx-riscv.c (riscv_parse_subset): Likewise.
1042 * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): Likewise.
1043 * opncls.c (get_build_id): Likewise.
1044
65c5fbd4
AM
10452021-03-31 Alan Modra <amodra@gmail.com>
1046
1047 PR 27671
1048 * bfd-in.h: Don't poison FALSE or TRUE.
1049 * bfd-in2.h: Regenerate.
1050
0a1b45a2
AM
10512021-03-31 Alan Modra <amodra@gmail.com>
1052
1053 * sysdep.h: POISON_BFD_BOOLEAN: Define.
1054 * aix5ppc-core.c, * aout-cris.c, * aout-ns32k.c, * aout-target.h,
1055 * aoutx.h, * arc-got.h, * archive.c, * archive64.c, * archures.c,
1056 * bfd-in.h, * bfd.c, * bfdwin.c, * binary.c, * cache.c,
1057 * coff-alpha.c, * coff-arm.c, * coff-arm.h, * coff-bfd.c,
1058 * coff-bfd.h, * coff-go32.c, * coff-i386.c, * coff-ia64.c,
1059 * coff-mcore.c, * coff-mips.c, * coff-rs6000.c, * coff-sh.c,
1060 * coff-stgo32.c, * coff-tic30.c, * coff-tic4x.c, * coff-tic54x.c,
1061 * coff-x86_64.c, * coff-z80.c, * coff-z8k.c, * coff64-rs6000.c,
1062 * coffcode.h, * coffgen.c, * cofflink.c, * compress.c,
1063 * corefile.c, * cpu-aarch64.c, * cpu-aarch64.h, * cpu-alpha.c,
1064 * cpu-arc.c, * cpu-arm.c, * cpu-arm.h, * cpu-avr.c, * cpu-bfin.c,
1065 * cpu-bpf.c, * cpu-cr16.c, * cpu-cris.c, * cpu-crx.c,
1066 * cpu-csky.c, * cpu-d10v.c, * cpu-d30v.c, * cpu-dlx.c,
1067 * cpu-epiphany.c, * cpu-fr30.c, * cpu-frv.c, * cpu-ft32.c,
1068 * cpu-h8300.c, * cpu-hppa.c, * cpu-i386.c, * cpu-ia64.c,
1069 * cpu-iamcu.c, * cpu-ip2k.c, * cpu-iq2000.c, * cpu-k1om.c,
1070 * cpu-l1om.c, * cpu-lm32.c, * cpu-m10200.c, * cpu-m10300.c,
1071 * cpu-m32c.c, * cpu-m32r.c, * cpu-m68hc11.c, * cpu-m68hc12.c,
1072 * cpu-m68k.c, * cpu-m9s12x.c, * cpu-m9s12xg.c, * cpu-mcore.c,
1073 * cpu-mep.c, * cpu-metag.c, * cpu-microblaze.c, * cpu-mips.c,
1074 * cpu-mmix.c, * cpu-moxie.c, * cpu-msp430.c, * cpu-mt.c,
1075 * cpu-nds32.c, * cpu-nfp.c, * cpu-nios2.c, * cpu-ns32k.c,
1076 * cpu-or1k.c, * cpu-pdp11.c, * cpu-pj.c, * cpu-powerpc.c,
1077 * cpu-pru.c, * cpu-riscv.c, * cpu-rl78.c, * cpu-rs6000.c,
1078 * cpu-rx.c, * cpu-s12z.c, * cpu-s390.c, * cpu-score.c,
1079 * cpu-sh.c, * cpu-sparc.c, * cpu-spu.c, * cpu-tic30.c,
1080 * cpu-tic4x.c, * cpu-tic54x.c, * cpu-tic6x.c, * cpu-tilegx.c,
1081 * cpu-tilepro.c, * cpu-v850.c, * cpu-v850_rh850.c, * cpu-vax.c,
1082 * cpu-visium.c, * cpu-wasm32.c, * cpu-xc16x.c, * cpu-xgate.c,
1083 * cpu-xstormy16.c, * cpu-xtensa.c, * cpu-z80.c, * cpu-z8k.c,
1084 * dwarf1.c, * dwarf2.c, * ecoff-bfd.h, * ecoff.c, * ecofflink.c,
1085 * elf-attrs.c, * elf-bfd.h, * elf-eh-frame.c, * elf-hppa.h,
1086 * elf-ifunc.c, * elf-m10200.c, * elf-m10300.c, * elf-nacl.c,
1087 * elf-nacl.h, * elf-properties.c, * elf-s390-common.c,
1088 * elf-s390.h, * elf-strtab.c, * elf-vxworks.c, * elf-vxworks.h,
1089 * elf.c, * elf32-am33lin.c, * elf32-arc.c, * elf32-arm.c,
1090 * elf32-arm.h, * elf32-avr.c, * elf32-avr.h, * elf32-bfin.c,
1091 * elf32-bfin.h, * elf32-cr16.c, * elf32-cr16.h, * elf32-cris.c,
1092 * elf32-crx.c, * elf32-csky.c, * elf32-csky.h, * elf32-d10v.c,
1093 * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
1094 * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c, * elf32-gen.c,
1095 * elf32-h8300.c, * elf32-hppa.c, * elf32-hppa.h, * elf32-i386.c,
1096 * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, * elf32-m32c.c,
1097 * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
1098 * elf32-m68hc1x.c, * elf32-m68hc1x.h, * elf32-m68k.c,
1099 * elf32-m68k.h, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
1100 * elf32-metag.h, * elf32-microblaze.c, * elf32-mips.c,
1101 * elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
1102 * elf32-nios2.c, * elf32-nios2.h, * elf32-or1k.c, * elf32-pj.c,
1103 * elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
1104 * elf32-rx.c, * elf32-s12z.c, * elf32-s390.c, * elf32-score.c,
1105 * elf32-score.h, * elf32-score7.c, * elf32-sh-relocs.h,
1106 * elf32-sh.c, * elf32-sparc.c, * elf32-spu.c, * elf32-spu.h,
1107 * elf32-tic6x.c, * elf32-tic6x.h, * elf32-tilegx.c,
1108 * elf32-tilepro.c, * elf32-v850.c, * elf32-v850.h,
1109 * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
1110 * elf32-xc16x.c, * elf32-xgate.c, * elf32-xstormy16.c,
1111 * elf32-xtensa.c, * elf32-z80.c, * elf64-alpha.c, * elf64-bpf.c,
1112 * elf64-gen.c, * elf64-hppa.c, * elf64-ia64-vms.c,
1113 * elf64-mips.c, * elf64-mmix.c, * elf64-nfp.c, * elf64-ppc.c,
1114 * elf64-ppc.h, * elf64-s390.c, * elf64-sparc.c,
1115 * elf64-tilegx.c, * elf64-x86-64.c, * elfcode.h,
1116 * elfcore.h, * elflink.c, * elfn32-mips.c, * elfnn-aarch64.c,
1117 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-aarch64.c,
1118 * elfxx-aarch64.h, * elfxx-ia64.c, * elfxx-ia64.h,
1119 * elfxx-mips.c, * elfxx-mips.h, * elfxx-riscv.c, * elfxx-riscv.h,
1120 * elfxx-sparc.c, * elfxx-sparc.h, * elfxx-target.h,
1121 * elfxx-tilegx.c, * elfxx-tilegx.h, * elfxx-x86.c, * elfxx-x86.h,
1122 * format.c, * genlink.h, * hash.c, * i386aout.c, * i386lynx.c,
1123 * i386msdos.c, * ihex.c, * libaout.h, * libbfd-in.h,
1124 * libbfd.c, * libcoff-in.h, * libecoff.h, * libpei.h,
1125 * libxcoff.h, * linker.c, * mach-o-aarch64.c, * mach-o-arm.c,
1126 * mach-o-i386.c, * mach-o-x86-64.c, * mach-o.c, * mach-o.h,
1127 * merge.c, * mmo.c, * netbsd.h, * opncls.c, * pc532-mach.c,
1128 * pdp11.c, * pe-arm.c, * pe-i386.c, * pe-mcore.c, * pe-sh.c,
1129 * pe-x86_64.c, * peXXigen.c, * pef.c, * pei-arm.c, * pei-i386.c,
1130 * pei-ia64.c, * pei-mcore.c, * pei-sh.c, * pei-x86_64.c,
1131 * peicode.h, * plugin.c, * plugin.h, * ppcboot.c, * reloc.c,
1132 * reloc16.c, * rs6000-core.c, * section.c, * simple.c, * som.c,
1133 * som.h, * srec.c, * stabs.c, * syms.c, * targets.c, * tekhex.c,
1134 * verilog.c, * vms-alpha.c, * vms-lib.c, * vms-misc.c, * vms.h,
1135 * wasm-module.c, * xcofflink.c, * xcofflink.h, * xsym.c,
1136 * xsym.h: Replace bfd_boolean with bool, FALSE with false, and
1137 TRUE with true throughout.
1138 * bfd-in2.h: Regenerate.
1139 * libbfd.h: Regenerate.
1140 * libcoff.h: Regenerate.
1141
ad9e24ad
AM
11422021-03-31 Alan Modra <amodra@gmail.com>
1143
1144 * bfd-in.h: Include stdbool.h.
1145 (bfd_boolean): Define as bool
1146 * bfd-in2.h: Regenerate.
1147
3dfb1b6d
AM
11482021-03-31 Alan Modra <amodra@gmail.com>
1149
1150 * .gitignore: Delete bfd_stdint.h entry.
1151 * Makefile.am (bfdinclude_HEADERS): Delete bfd_stdint.h.
1152 (BUILD_HFILES, LOCAL_H_DEPS): Likewise.
1153 * bfd-in.h: Include stdint.h in place of bfd_stdint.h.
1154 * configure.ac: Don't invoke GCC_HEADER_STDINT.
1155 * configure.com: Don't create bfd_stdint.h.
1156 * Makefile.in: Regenerate.
1157 * aclocal.m4: Regenerate.
1158 * bfd-in2.h: Regenerate.
1159 * config.in: Regenerate.
1160 * configure: Regenerate.
1161 * doc/Makefile.in: Regenerate.
1162 * po/BLD-POTFILES.in: Regenerate.
1163
57ae980e
AM
11642021-03-31 Alan Modra <amodra@gmail.com>
1165
1166 * bfd-in.h: Include string.h.
1167 (LITMEMCPY, LITSTRCPY): Delete.
1168 * bfd-in2.h: Regenerate.
1169
d1cbe007
AM
11702021-03-30 Alan Modra <amodra@gmail.com>
1171
1172 * elflink.c (elf_link_add_object_symbols): Don't set h->indx
1173 unless is_elf_hash_table.
1174
63b4cc53
AM
11752021-03-29 Alan Modra <amodra@gmail.com>
1176
1177 * aoutx.h (aout_link_write_symbols): Don't cast boolean expression
1178 to bfd_boolean.
1179 * elf32-or1k.c (or1k_set_got_and_rela_sizes): Dont compare booleans
1180 against FALSE.
1181 * elf32-arc.c (name_for_global_symbol): Don't compare boolean to TRUE.
1182 (is_reloc_PC_relative): Don't use "boolean_condition ? TRUE : FALSE".
1183 (is_reloc_SDA_relative, is_reloc_for_GOT): Likewise.
1184 (is_reloc_for_PLT, is_reloc_for_TLS): Likewise.
1185 * elf32-arm.c (stm32l4xx_need_create_replacing_stub): Likewise.
1186 * elf32-nds32.c (insert_nds32_elf_blank): Likewise.
1187 * elf32-rx.c (rx_set_section_contents): Likewise.
1188 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise.
1189 * elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): Likewise.
1190 * mach-o.c (bfd_mach_o_read_command): Likewise.
1191 * targets.c (bfd_get_target_info): Likewise.
1192
f4f9ede0
AM
11932021-03-29 Alan Modra <amodra@gmail.com>
1194
1195 * coff-z80.c (z80_is_local_label_name): Return bfd_boolean.
1196 * elf32-z80.c (z80_is_local_label_name): Likewise.
1197 * elf32-spu.c (spu_elf_modify_headers): Likewise.
1198 * elf32-nds32.h (struct elf_nds32_link_hash_table <hyper_relax>):
1199 Change type to int.
1200 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Correct test
1201 for error return from vms_write_data_block.
1202
1201fda6
AM
12032021-03-29 Alan Modra <amodra@gmail.com>
1204
1205 * elf32-i386.c (elf_i386_finish_local_dynamic_symbol): Return int.
1206 * elf64-ia64-vms.c (elf64_ia64_local_dyn_info_free): Likewise.
1207 (elf64_ia64_local_dyn_sym_thunk): Likewise.
1208 * elf64-x86-64.c (elf_x86_64_finish_local_dynamic_symbol): Likewise.
1209 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_ifunc_dynrelocs),
1210 (elfNN_aarch64_finish_local_dynamic_symbol): Likewise.
1211 * elfnn-ia64.c (elfNN_ia64_local_dyn_info_free): Likewise.
1212 (elfNN_ia64_local_dyn_sym_thunk): Likewise.
1213 * elfnn-riscv.c (allocate_local_ifunc_dynrelocs): Likewise.
1214 (riscv_pcrel_reloc_eq): Likewise.
1215 (riscv_elf_finish_local_dynamic_symbol): Likewise.
1216 * elfxx-sparc.c (allocate_local_dynrelocs): Likewise.
1217 (finish_local_dynamic_symbol): Likewise.
1218 * elfxx-x86.c (elf_x86_allocate_local_dynreloc): Likewise.
1219 * elfxx-mips.c (mips_elf_resolve_got_page_ref): Likewise.
1220 (mips_elf_count_got_symbols): Change return type to bfd_boolean.
1221
37bb890f
AM
12222021-03-29 Alan Modra <amodra@gmail.com>
1223
1224 * elflink.c (elf_link_output_symstrtab): Make flinfo parameter
1225 a void pointer.
1226 (bfd_elf_final_link): Delete out_sym_func typedef and don't cast
1227 elf_link_output_symstrtab when calling output_arch_syms and
1228 output_arch_local_syms.
1229 * elf-bfd.h (struct elf_backend_data <elf_backend_output_arch_syms,
1230 elf_backend_output_arch_local_syms>): Change return type of func
1231 arg to match elf_link_output_symstrtab.
1232 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Correct
1233 return type.
1234 * elf32-nds32.c (nds32_elf_output_symbol_hook): Correct return type.
1235 (nds32_elf_output_arch_syms): Correct func return type.
1236
0f684201
AM
12372021-03-29 Alan Modra <amodra@gmail.com>
1238
1239 * elf-m10200.c (mn10200_elf_relocate_section): Return int.
1240 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1241 * elf32-arc.c (elf_arc_relocate_section): Likewise.
1242 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
1243 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
1244 * elf32-bfin.c (bfin_relocate_section): Likewise.
1245 (bfinfdpic_relocate_section): Likewise.
1246 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
1247 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1248 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
1249 * elf32-csky.c (csky_elf_relocate_section): Likewise.
1250 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
1251 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
1252 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1253 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1254 * elf32-ft32.c (ft32_elf_relocate_section): Likewise.
1255 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
1256 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1257 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1258 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
1259 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
1260 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1261 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
1262 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1263 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1264 * elf32-m68hc1x.h (elf32_m68hc11_relocate_section): Likewise.
1265 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1266 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1267 * elf32-mep.c (mep_elf_relocate_section): Likewise.
1268 * elf32-metag.c (elf_metag_relocate_section): Likewise.
1269 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
1270 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
1271 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
1272 * elf32-mt.c (mt_elf_relocate_section): Likewise.
1273 * elf32-nds32.c (nds32_elf_relocate_section): Likewise.
1274 * elf32-nios2.c (nios2_elf32_relocate_section): Likewise.
1275 * elf32-or1k.c (or1k_elf_relocate_section): Likewise.
1276 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1277 * elf32-pru.c (pru_elf32_relocate_section): Likewise.
1278 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
1279 * elf32-rx.c (rx_elf_relocate_section): Likewise.
1280 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1281 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1282 (_bfd_score_elf_relocate_section): Likewise.
1283 * elf32-score.h (s7_bfd_score_elf_relocate_section): Likewise.
1284 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1285 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1286 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1287 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
1288 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1289 * elf32-vax.c (elf_vax_relocate_section): Likewise.
1290 * elf32-visium.c (visium_elf_relocate_section): Likewise.
1291 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
1292 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1293 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
1294 * elf32-z80.c (z80_elf_relocate_section): Likewise.
1295 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
1296 (elf64_alpha_relocate_section): Likewise.
1297 * elf64-bpf.c (bpf_elf_relocate_section): Likewise.
1298 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
1299 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
1300 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
1301 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1302 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1303 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1304 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise.
1305 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1306 * elfnn-riscv.c (riscv_elf_relocate_section): Likewise.
1307 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
1308 * elfxx-mips.h (_bfd_mips_elf_relocate_section): Likewise.
1309 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1310 * elfxx-sparc.h (_bfd_sparc_elf_relocate_section): Likewise.
1311 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
1312 * elfxx-tilegx.h (tilegx_elf_relocate_section): Likewise.
1313
ff5b3e14
KS
13142021-03-26 Keith Seitz <keiths@redhat.com>
1315
1316 * elfcore.h (_bfd_elf_core_find_build_id): Seek file
1317 offset of program headers after calling elf_read_notes.
1318
f596b03f
JB
13192021-03-23 Jan Beulich <jbeulich@suse.com>
1320
1321 * dwarf2.c (read_indexed_string): Rename index to idx.
1322
08dedd66
ML
13232021-03-22 Martin Liska <mliska@suse.cz>
1324
1325 * bfd-in.h (startswith): Add startswith function.
1326 (CONST_STRNEQ): Remove.
1327 * bfd-in2.h (startswith): Regenerate with make headers.
1328 * archive.c (bfd_slurp_armap): Replace usage of CONST_STRNEQ with startswith.
1329 (_bfd_slurp_extended_name_table): Likewise.
1330 * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise.
1331 * bfd.c (bfd_get_sign_extend_vma): Likewise.
1332 (bfd_convert_section_size): Likewise.
1333 (bfd_convert_section_contents): Likewise.
1334 * coff-stgo32.c (go32exe_create_stub): Likewise.
1335 (go32exe_check_format): Likewise.
1336 * coffcode.h (styp_to_sec_flags): Likewise.
1337 (GNU_DEBUGALTLINK): Likewise.
1338 * coffgen.c (_bfd_coff_section_already_linked): Likewise.
1339 (coff_gc_sweep): Likewise.
1340 (bfd_coff_gc_sections): Likewise.
1341 * cofflink.c (coff_link_add_symbols): Likewise.
1342 (process_embedded_commands): Likewise.
1343 * compress.c (bfd_is_section_compressed_with_header): Likewise.
1344 (bfd_init_section_decompress_status): Likewise.
1345 * dwarf2.c (find_debug_info): Likewise.
1346 (place_sections): Likewise.
1347 * ecoff.c (_bfd_ecoff_slurp_armap): Likewise.
1348 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
1349 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
1350 (assign_section_numbers): Likewise.
1351 (elfcore_grok_win32pstatus): Likewise.
1352 * elf32-arm.c (cmse_scan): Likewise.
1353 (elf32_arm_gc_mark_extra_sections): Likewise.
1354 (elf32_arm_size_dynamic_sections): Likewise.
1355 (is_arm_elf_unwind_section_name): Likewise.
1356 * elf32-bfin.c (bfin_size_dynamic_sections): Likewise.
1357 * elf32-cr16.c (_bfd_cr16_elf_size_dynamic_sections): Likewise.
1358 * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
1359 * elf32-csky.c (csky_elf_size_dynamic_sections): Likewise.
1360 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
1361 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1362 * elf32-lm32.c (lm32_elf_size_dynamic_sections): Likewise.
1363 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Likewise.
1364 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1365 * elf32-metag.c (elf_metag_size_dynamic_sections): Likewise.
1366 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
1367 * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Likewise.
1368 * elf32-or1k.c (or1k_elf_size_dynamic_sections): Likewise.
1369 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
1370 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1371 * elf32-score.c (s3_bfd_score_elf_size_dynamic_sections): Likewise.
1372 * elf32-score7.c (s7_bfd_score_elf_size_dynamic_sections): Likewise.
1373 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
1374 * elf32-tic6x.c (is_tic6x_elf_unwind_section_name): Likewise.
1375 (elf32_tic6x_size_dynamic_sections): Likewise.
1376 * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
1377 * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Likewise.
1378 (xtensa_is_insntable_section): Likewise.
1379 (xtensa_is_littable_section): Likewise.
1380 (xtensa_is_proptable_section): Likewise.
1381 (xtensa_property_section_name): Likewise.
1382 (xtensa_callback_required_dependence): Likewise.
1383 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
1384 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1385 * elf64-ia64-vms.c (is_unwind_section_name): Likewise.
1386 (get_reloc_section): Likewise.
1387 (elf64_ia64_size_dynamic_sections): Likewise.
1388 (elf64_ia64_object_p): Likewise.
1389 * elf64-mmix.c (mmix_elf_add_symbol_hook): Likewise.
1390 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Likewise.
1391 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1392 * elflink.c (elf_link_add_object_symbols): Likewise.
1393 (_bfd_elf_gc_mark_extra_sections): Likewise.
1394 (bfd_elf_parse_eh_frame_entries): Likewise.
1395 (_bfd_elf_section_already_linked): Likewise.
1396 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Likewise.
1397 * elfnn-ia64.c (is_unwind_section_name): Likewise.
1398 (elfNN_ia64_size_dynamic_sections): Likewise.
1399 (elfNN_ia64_object_p): Likewise.
1400 * elfxx-mips.c (FN_STUB_P): Likewise.
1401 (CALL_STUB_P): Likewise.
1402 (CALL_FP_STUB_P): Likewise.
1403 (_bfd_mips_elf_section_from_shdr): Likewise.
1404 (_bfd_mips_elf_fake_sections): Likewise.
1405 (_bfd_mips_elf_size_dynamic_sections): Likewise.
1406 (_bfd_mips_final_write_processing): Likewise.
1407 (_bfd_mips_elf_final_link): Likewise.
1408 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
1409 * elfxx-x86.c (elf_i386_is_reloc_section): Likewise.
1410 (elf_x86_64_is_reloc_section): Likewise.
1411 * hpux-core.c (thread_section_p): Likewise.
1412 * libcoff.h (bfd_pei_p): Likewise.
1413 * linker.c (REAL): Likewise.
1414 (unwrap_hash_lookup): Likewise.
1415 (_bfd_generic_link_add_one_symbol): Likewise.
1416 * mmo.c (mmo_internal_write_section): Likewise.
1417 * osf-core.c (osf_core_core_file_p): Likewise.
1418 * pef.c (bfd_pef_print_symbol): Likewise.
1419 * pei-x86_64.c (pex64_print_all_pdata_sections): Likewise.
1420 * som.c (som_slurp_symbol_table): Likewise.
1421 (som_slurp_armap): Likewise.
1422 * wasm-module.c (wasm_compute_custom_section_file_position): Likewise.
1423
2aaf2ce8
JB
14242021-03-22 Jan Beulich <jbeulich@suse.com>
1425
1426 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Add missing
1427 language translation wrapping to _bfd_error_handler()
1428 invocations.
1429
e9338841
AM
14302021-03-21 Alan Modra <amodra@gmail.com>
1431
1432 * bfd-in.h (startswith): New inline.
1433 (CONST_STRNEQ): Use startswith.
1434 * bfd-in2.h: Regenerate.
1435
15407e7e
AM
14362021-03-20 Alan Modra <amodra@gmail.com>
1437
1438 PR 27590
1439 * elf.c (_bfd_elf_make_section_from_shdr): Remove SHF_EXCLUDE
1440 test for .gnu.debuglto*.
1441
3818d4ab
L
14422021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1443
1444 PR ld/27590
15407e7e 1445 * elf.c (_bfd_elf_make_section_from_shdr): Treat
3818d4ab
L
1446 .gnu.debuglto_.debug_ section as debugging section unless it is
1447 marked with SHF_EXCLUDE.
1448 * elflink.c (elf_create_symbuf): Revert commit 994b2513281.
1449 (bfd_elf_match_symbols_in_sections): Ignore section symbols when
1450 matching non-debugging sections or linkonce section with comdat
1451 section.
1452
51f6e7a9
L
14532021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1454
1455 PR ld/27587
1456 * dwarf2.c (read_attribute_value): Check version >= 3 for
1457 DW_FORM_ref_addr.
1458
012d4426
NC
14592021-03-16 Nick Clifton <nickc@redhat.com>
1460
1461 * peXXigen.c (_bfd_XXi_swap_aux_out): Avoid potential buffer
1462 overrun by using sizeof of the destination x_fname field as the
1463 limit for a memcpy.
1464
80d49d6a
KLC
14652021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1466
1467 * elfxx-riscv.c (riscv_std_z_ext_strtab): Add zba, zbb and zbc.
1468
1b2cb8e2
CC
14692021-03-12 Clément Chigot <clement.chigot@atos.net>
1470
1471 * reloc.c (BFD_RELOC_PPC_TLS_LE, BFD_RELOC_PPC_TLS_IE,
1472 BFD_RELOC_PPC_TLS_M, BFD_RELOC_PPC_TLS_ML, BFD_RELOC_PPC64_TLS_GD,
1473 BFD_RELOC_PPC64_TLS_LD, BFD_RELOC_PPC64_TLS_LE,
1474 BFD_RELOC_PPC64_TLS_IE, BFD_RELOC_PPC64_TLS_M,
1475 BFD_RELOC_PPC64_TLS_ML): New relocations.
1476 * bfd-in2.h: Regenerate.
1477 * libbfd.h: Regenerate.
1478 * coff-rs6000.c (xcoff_calculate_relocation): Call
1479 xcoff_reloc_type_tls for TLS relocations.
1480 (xcoff_howto_table): Implement TLS relocations.
1481 (_bfd_xcoff_reloc_type_lookup): Add cases TLS relocations.
1482 (xcoff_reloc_type_tls): New function.
1483 * coff64-rs6000.c (xcoff_calculate_relocation): Likewise.
1484 (xcoff_howto_table): Likewise.
1485 (_bfd_xcoff_reloc_type_lookup): Likewise.
1486 * coffcode.h (sec_to_styp_flags): Handle TLS sections.
1487 (styp_to_sec_flags): Likewise.
1488 (coff_compute_section_file_positions): Avoid file offset
1489 optimisation for .data when the previous section is .tdata.
1490 (coff_write_object_contents): Handle TLS sections.
1491 * coffswap.h (coff_swap_aouthdr_out): Add support for
1492 new fields in aouthdr.
1493 * libxcoff.h (xcoff_reloc_type_tls): Add prototype.
1494 * xcofflink.c (xcoff_link_add_symbols): Handle XMC_UL.
1495 (xcoff_need_ldrel_p): Add cases for TLS relocations.
1496 (xcoff_create_ldrel): Add l_symndx for TLS sections.
1497
4a403be0
CC
14982021-03-12 Clément Chigot <clement.chigot@atos.net>
1499
1500 * reloc.c (BFD_RELOC_PPC_TOC16_HI, BFD_RELOC_PPC_TOC16_LO):
1501 New relocations.
1502 * bfd-in2.h: Regenerate.
1503 * libbfd.h: Regenerate.
1504 * coff-rs6000.c (xcoff_calculate_relocation): Call
1505 xcoff_reloc_type_toc for R_TOCU and R_TOCL.
1506 (xcoff_howto_table): Remove src_mask for TOC relocations.
1507 Add R_TOCU and R_TOCL howtos.
1508 (_bfd_xcoff_reloc_type_lookup): Add cases for
1509 BFD_RELOC_PPC_TOC16_HI and BFD_RELOC_PPC_TOC16_LO.
1510 (xcoff_reloc_type_toc): Compute the whole offset.
1511 Implement R_TOCU and R_TOCL.
1512 * coff64-rs6000.c (xcoff64_calculate_relocation):
1513 Likewise.
1514 (xcoff64_howto_table): Likewise.
1515 (xcoff64_reloc_type_lookup): Likewise.
1516
2c1bef53
CC
15172021-03-12 Clément Chigot <clement.chigot@atos.net>
1518
1519 * coff-rs6000.c (xcoff_calculate_relocation): Correct and
1520 add new relocations.
1521 (xcoff_howto_table): Likewise.
1522 (xcoff_rtype2howto): Increase r_type maximum value.
1523 (xcoff_ppc_relocate_section): Reuse predefined HOWTOs instead
1524 of create a new one from scratch. Enable only some relocations
1525 to have a changing r_size.
1526 * coff64-rs6000.c (xcoff64_calculate_relocation): Likewise.
1527 (xcoff64_howto_table): Likewise.
1528 (xcoff64_rtype2howto): Likewise.
1529 (xcoff64_ppc_relocate_section): Likewise.
1530 * libxcoff.h (XCOFF_MAX_CALCULATE_RELOCATION): Fix value.
1531
0c929e83
CC
15322021-03-12 Clément Chigot <clement.chigot@atos.net>
1533
1534 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Move.
1535
6d4d9328
CC
15362021-03-12 Clément Chigot <clement.chigot@atos.net>
1537
1538 * coff64-rs6000.c (xcoff64_write_object_contents): Remove.
1539 * coffcode.h (coff_write_object_contents): Add bfd_mach_ppc_620
1540 support for o_cputype field. Avoid creating an empty a.out header
1541 for XCOFF64.
1542
8aa2d023
CC
15432021-03-12 Clément Chigot <clement.chigot@atos.net>
1544
1545 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add
1546 missing smclass.
1547
ebdcad3f
NC
15482021-03-11 Nelson Chu <nelson.chu@sifive.com>
1549
1550 * elfnn-riscv.c (riscv_elf_link_hash_table): New boolean
1551 restart_relax, used to check if we need to run the whole
1552 relaxations from relax pass 0 to 2 again.
1553 (riscv_elf_link_hash_table_create): Init restart_relax to FALSE.
1554 (_bfd_riscv_relax_align): Remove obsolete sec_flg0 set.
1555 (_bfd_riscv_relax_delete): Set again to TRUE if we do delete the code.
1556 (bfd_elfNN_riscv_restart_relax_sections): New function. Called by
1557 after_allocation to check if we need to run the whole relaxations again.
1558 (_bfd_riscv_relax_section): We will only enter into the relax pass 3
1559 when the restart_relax is FALSE; At last set restart_relax to TRUE if
1560 again is TRUE, too.
1561 * elfxx-riscv.h (bfd_elf32_riscv_restart_relax_sections): Declaration.
1562 (bfd_elf64_riscv_restart_relax_sections): Likewise.
1563
67b0f684
JB
15642021-03-10 Jan Beulich <jbeulich@suse.com>
1565
1566 * cofflink.c (_bfd_coff_write_global_sym): Range-check symbol
1567 offset.
1568
2dfa8341
AM
15692021-03-10 Alan Modra <amodra@gmail.com>
1570 Jan Beulich <jbeulich@suse.com>
1571
1572 * elf.c (bfd_elf_generic_reloc): Make references between debug
1573 sections use section relative values.
1574
87fa7d56
JB
15752021-03-09 Jan Beulich <jbeulich@suse.com>
1576
1577 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA.
1578
8c0546e9
L
15792021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1580
1581 PR ld/27425
1582 PR ld/27432
1583 * bfd.c (_bfd_get_link_info): New function.
1584 * elf-bfd.h (output_elf_obj_tdata): Add link_info.
1585 (elf_link_info): New.
1586 * libbfd-in.h (_bfd_get_link_info): New prototype.
1587 * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for
1588 R_AMD64_IMAGEBASE when generating x86-64 ELF executable.
1589 * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h".
1590 (pex64_link_add_symbols): New function.
1591 (coff_bfd_link_add_symbols): New macro.
1592 * libbfd.h: Regenerated.
1593
db6092f3
AB
15942021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1595 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * elf-bfd.h (elfcore_write_riscv_csr): Declare.
1598 * elf.c (elfcore_grok_riscv_csr): New function.
1599 (elfcore_grok_note): Handle NT_RISCV_CSR.
1600 (elfcore_write_riscv_csr): New function.
1601 (elfcore_write_register_note): Handle '.reg-riscv-csr'.
1602
0897bb7d
AB
16032021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1604 Andrew Burgess <andrew.burgess@embecosm.com>
1605
1606 * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define.
1607 (PRPSINFO_PR_PSARGS_LENGTH): Define.
1608 (riscv_write_core_note): New function.
1609 (riscv_elf_grok_psinfo): Make use of two new length defines.
1610 (elf_backend_write_core_note): Define.
1611
b63a5e38
AB
16122021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1613 Andrew Burgess <andrew.burgess@embecosm.com>
1614
1615 * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function.
1616 * elf.c (elfcore_grok_gdb_tdesc): New function.
1617 (elfcore_grok_note): Handle NT_GDB_TDESC.
1618 (elfcore_write_gdb_tdesc): New function.
1619 (elfcore_write_register_note): Handle NT_GDB_TDESC.
1620
2017f387
NC
16212021-03-05 Nick Clifton <nickc@redhat.com>
1622
1623 PR 27521
1624 * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms.
1625 (read_indexed_string): Placeholder function.
1626 (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx*
1627 forms.
1628
b01b5d9a
AM
16292021-03-05 Alan Modra <amodra@gmail.com>
1630
1631 * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
1632 2020-09-16 changes.
1633 * coff-x86_64.c (coff_amd64_reloc): Do more or less the same
1634 adjustments here instead. Separate pc-relative adjustments
1635 from symbol related adjustments. Tidy comments and formatting.
1636
6b5465b9
JB
16372021-03-04 Jan Beulich <jbeulich@suse.com>
1638
1639 * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
1640 final PE images.
1641
0b7733b6
AM
16422021-03-04 Alan Modra <amodra@gmail.com>
1643
1644 * rs6000-core.c (rs6000coff_core_p): Correct prototype.
1645
5789f845
AM
16462021-03-03 Alan Modra <amodra@gmail.com>
1647
1648 PR 27500
1649 * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
1650 processing not when start/stop symbol section is unmarked but
1651 on first time a start/stop symbol is processed.
1652
dc83f2d2
AM
16532021-03-03 Alan Modra <amodra@gmail.com>
1654
1655 * reloc.c: Include x86_64.h rather than internal.h.
1656
ca8f6bc6
NC
16572021-03-02 Nick Clifton <nickc@redhat.com>
1658
1659 PR 27484
1660 * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
1661 function and variable tags and a second time to resolve their
1662 attributes.
1663
211bcd01
NA
16642021-03-02 Nick Alcock <nick.alcock@oracle.com>
1665
1666 * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
1667
b80e421f
AM
16682021-03-02 Alan Modra <amodra@gmail.com>
1669
1670 PR 27451
1671 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
1672 linker defined start/stop symbols when start_stop_gc.
1673
f5b9c288
AM
16742021-03-02 Alan Modra <amodra@gmail.com>
1675
1676 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
1677 indirect to pc-relative or toc-relative for undefined symbols.
1678
8ee10e86
AM
16792021-03-01 Alan Modra <amodra@gmail.com>
1680 Fangrui Song <maskray@google.com>
1681
1682 * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
1683 defined start/stop symbols when start_stop_gc.
1684 (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
1685 (bfd_elf_define_start_stop): Don't modify ldscript_def syms.
1686 * linker.c (bfd_generic_define_start_stop): Likewise.
1687
bbaddd4b
AM
16882021-02-25 Alan Modra <amodra@gmail.com>
1689
1690 PR 27441
1691 * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak.
1692 * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and
1693 use when deciding an as-needed library should be loaded instead
1694 of using the binding of the library definition.
1695
93af1b04
AM
16962021-02-24 Alan Modra <amodra@gmail.com>
1697
1698 PR 27459
1699 * coff-stgo32.c (go32exe_check_format): Sanity check size of
1700 header to avoid a buffer overflow.
1701
e9d18e06
AM
17022021-02-22 Alan Modra <amodra@gmail.com>
1703
1704 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
1705 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
1706
5a9f5403
NC
17072021-02-19 Nelson Chu <nelson.chu@sifive.com>
1708
1709 PR 27158
1710 * elfnn-riscv.c (perform_relocation): Updated encoding macros.
1711 (_bfd_riscv_relax_call): Likewise.
1712 (_bfd_riscv_relax_lui): Likewise.
1713 * elfxx-riscv.c (howto_table): Likewise.
1714
3d73d29e
NC
17152021-02-18 Nelson Chu <nelson.chu@sifive.com>
1716
1717 * Makefile.am: Added cpu-riscv.h.
1718 * Makefile.in: Regenerated.
1719 * po/SRC-POTFILES.in: Regenerated.
1720 * cpu-riscv.h: Added to support spec versions controlling.
1721 Also added extern arrays and functions for cpu-riscv.c.
1722 (enum riscv_spec_class): Define all spec classes here uniformly.
1723 (struct riscv_spec): Added for all specs.
1724 (RISCV_GET_SPEC_CLASS): Added to reduce repeated code.
1725 (RISCV_GET_SPEC_NAME): Likewise.
1726 (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class.
1727 (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class.
1728 (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name.
1729 * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec.
1730 (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS.
1731 (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME.
1732 (riscv_priv_specs): Moved below.
1733 (riscv_get_priv_spec_class_from_numbers): Likewise, updated.
1734 (riscv_isa_specs): Moved from include/opcode/riscv.h.
1735 * elfnn-riscv.c: Included cpu-riscv.h.
1736 (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec.
1737 * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h.
1738 (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h.
1739 * elfxx-riscv.h: Removed extern functions to cpu-riscv.h.
1740
b9b204b3
AM
17412021-02-17 Alan Modra <amodra@gmail.com>
1742
1743 * wasm-module.c: Guard include of limits.h.
1744 (CHAR_BIT): Provide backup define.
1745 (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
1746 Correct signed overflow checking.
1747
0d6aab77
NC
17482021-02-17 Nelson Chu <nelson.chu@sifive.com>
1749
1750 PR 27200
1751 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
1752 copying the elf flags from input BFD to output BFD, until we have
1753 checked if the input BFD has no code section or not. Also fix the
1754 problem that we only check the first section rather than the entire
1755 sections for input BFD.
1756
7b54cadd
AM
17572021-02-16 Alan Modra <amodra@gmail.com>
1758
1759 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
1760 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
1761
8c674061
JB
17622021-02-15 Jan Beulich <jbeulich@suse.com>
1763
1764 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
1765 * doc/Makefile.in: Re-generate.
1766
1781a9d0
AM
17672021-02-15 Alan Modra <amodra@gmail.com>
1768
1769 * elf32-nds32.c (nds32_get_section_contents): Replace
1770 bfd_malloc_and_get_section with bfd_get_full_section_contents.
1771 (nds32_elf_relax_delete_blanks): Init contents.
1772 (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
1773
8b78cbec
AM
17742021-02-15 Alan Modra <amodra@gmail.com>
1775
1776 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
1777 bfd_get_full_section_contents.
1778
d7a7af8f
AM
17792021-02-14 Alan Modra <amodra@gmail.com>
1780
1781 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
1782 all fixes to bfd_generic_get_relocated_section_contents since this
1783 function was split out.
1784
234b98ce
AM
17852021-02-11 Alan Modra <amodra@gmail.com>
1786
1787 * config.bfd: Remove ia64 from obsolete list.
1788
769c253f
AM
17892021-02-11 Alan Modra <amodra@gmail.com>
1790
1791 PR ld/22269
1792 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
1793
31c711a2
AM
17942021-02-11 Alan Modra <amodra@gmail.com>
1795
1796 PR 27294
1797 * elf32-avr.c (avr_elf32_load_records_from_section): Use
1798 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
1799 unnecessary casts.
1800
6db658c5
AM
18012021-02-11 Alan Modra <amodra@gmail.com>
1802
1803 PR 27291
1804 * section.c (bfd_get_section_contents): Avoid possible overflow
1805 when range checking offset and count.
1806 (bfd_set_section_contents): Likewise.
1807
95148614
NA
18082021-02-03 Nick Alcock <nick.alcock@oracle.com>
1809
1810 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
1811 favour of LIBINTL.
1812 * configure: Regenerated.
1813
a57d1773
AM
18142021-02-09 Alan Modra <amodra@gmail.com>
1815
1816 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
1817 * configure.ac: Delete symbian entries.
1818 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
1819 * elf32-arm.c: Remove symbian support. Formatting.
1820 * targets.c: Delete symbian entries.
1821 * configure: Regenerate.
1822
1a2f1b54
L
18232021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1824
1825 PR ld/19609
1826 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
1827 info when failed to convert GOTPCREL relocation.
1828
24075dcc
NC
18292021-02-04 Nelson Chu <nelson.chu@sifive.com>
1830
1831 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
1832
7d409ac0
AM
18332021-02-04 Alan Modra <amodra@gmail.com>
1834
1835 PR 27311
1836 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
1837 libraries for IR references on pass over libraries after LTO
1838 recompilation.
1839
f01fb44c
AM
18402021-02-03 Alan Modra <amodra@gmail.com>
1841
1842 PR 27311
1843 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
1844 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
1845 libraries when H is an indirect symbol after calling
1846 _bfd_elf_add_default_symbol.
1847
69551367
AM
18482021-02-03 Alan Modra <amodra@gmail.com>
1849
1850 PR 27311
1851 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
1852 undecorated symbol will have a different version.
1853
9918bff7
AM
18542021-02-02 Alan Modra <amodra@gmail.com>
1855
1856 PR 27311
1857 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
1858 Use when handling default versioned symbol. Rename existing
1859 override variable to nondef_override and use for non-default
1860 versioned symbol.
1861 (elf_link_add_object_symbols): Adjust call to suit. Don't
1862 pull in as-needed libraries when override is set.
1863
1f568f9a
EH
18642021-02-01 Emery Hemingway <ehmry@posteo.net>
1865
1866 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
1867
34c10233
EV
18682021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
1869
1870 PR 27254
1871 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
1872 offset for the R_RL78_RH_SADDR relocation.
1873
c4566785
AM
18742021-01-29 Alan Modra <amodra@gmail.com>
1875
1876 PR 27271
1877 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
1878 on symbols defined in absolute or other special sections.
1879
def97fb9
AM
18802021-01-28 Alan Modra <amodra@gmail.com>
1881
1882 PR 27259
1883 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
1884 prevent endless looping of linked-to sections.
1885
4cb1265b
MS
18862020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1887
1888 * bfd-elf.h (elfcore_write_file_note): New function.
1889 * elf.c (elfcore_write_file_note): New function.
1890
4287950e
AM
18912021-01-26 Alan Modra <amodra@gmail.com>
1892
1893 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
1894
940d0202
L
18952021-01-24 H.J. Lu <hongjiu.lu@intel.com>
1896
1897 PR binutils/27231
1898 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
1899 number tables.
1900
18454c15
L
19012021-01-23 H.J. Lu <hongjiu.lu@intel.com>
1902
1903 PR binutils/27231
1904 * dwarf2.c (read_rnglists): Advance rngs_ptr after
1905 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
1906
4bd7c902
AM
19072021-01-20 Alan Modra <amodra@gmail.com>
1908
1909 * elf32-ppc.c: Delete outdated comment.
1910 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
1911 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
1912
8bd10d6b
AM
19132021-01-20 Alan Modra <amodra@gmail.com>
1914
1915 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
1916 section symbols are present.
1917
30845f11
AM
19182021-01-19 Alan Modra <amodra@gmail.com>
1919
1920 * elf64-ppc.c (elf_hash_entry): New inline function. Use
1921 throughout to replace casts.
1922 (branch_reloc_hash_match): Remove const from params.
1923 (use_local_plt): New function.
1924 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
1925 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
1926 Use use_local_plt.
1927 * elf32-ppc.c (use_local_plt): New function.
1928 (allocate_dynrelocs, ppc_elf_relocate_section),
1929 (write_global_sym_plt): Use use_local_plt.
1930
994b2513
L
19312021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1932
1933 PR ld/27193
1934 * elflink.c (elf_create_symbuf): Also ignore section symbols.
1935
75a933f3
L
19362021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1937
1938 PR ld/23169
1939 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
1940 check pointer_equality_needed.
1941
68b00778
L
19422021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1943
1944 * elf-linker-x86.h (elf_linker_x86_params): Add
1945 report_relative_reloc.
1946 * elf32-i386.c (elf_i386_relocate_section): Call
1947 _bfd_x86_elf_link_report_relative_reloc to report relative
1948 relocations for -z report-relative-reloc.
1949 (elf_i386_finish_dynamic_symbol): Likewse.
1950 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
1951 (elf_x86_64_finish_dynamic_symbol): Likewse.
1952 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
1953 function.
1954 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
1955 prototype.
1956
ad92f33d
AM
19572021-01-16 Alan Modra <amodra@gmail.com>
1958
1959 * compress.c (decompress_contents): Tidy inflateEnd result test.
1960
eb6e6af8
AM
19612021-01-16 Alan Modra <amodra@gmail.com>
1962
1963 PR 26002
1964 * elflink.c (elf_link_output_extsym): Use version 1 in
1965 .gnu.version for undefined unversioned symbols.
1966
4bb5732e
NC
19672021-01-15 Nelson Chu <nelson.chu@sifive.com>
1968
1969 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
1970 caused the by previous commit accidentally.
1971
1942a048
NC
19722021-01-15 Nelson Chu <nelson.chu@sifive.com>
1973
1974 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
1975 also aligned the code.
1976
b800637e
NC
19772021-01-15 Nelson Chu <nelson.chu@sifive.com>
1978
1979 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
1980
dcd709e0
NC
19812021-01-15 Nelson Chu <nelson.chu@sifive.com>
1982
1983 * elfnn-riscv.c: Comments tidy and improvement.
1984 * elfxx-riscv.c: Likewise.
1985 * elfxx-riscv.h: Likewise.
1986
8ca9c7eb
L
19872021-01-14 H.J. Lu <hongjiu.lu@intel.com>
1988
1989 PR ld/26688
1990 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
1991 section for R_BFIN_FUNCDESC.
1992
7e0d77ef
NC
19932021-01-14 Nick Clifton <nickc@redhat.com>
1994
1995 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
1996
5347ed60
AM
19972021-01-13 Alan Modra <amodra@gmail.com>
1998
1999 * Makefile.in: Regenerate.
2000 * doc/Makefile.in: Regenerate.
2001
b209b5a6
AM
20022021-01-13 Alan Modra <amodra@gmail.com>
2003
2004 PR 27160
2005 * section.c (struct bfd_section): Remove pattern field.
2006 (BFD_FAKE_SECTION): Adjust to suit.
2007 * bfd-in2.h: Regenerate.
2008 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
2009 (bfd_elf_final_link): Don't call elf_fixup_link_order.
2010
d546b610
L
20112021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2012
2013 PR binutils/26792
2014 * configure.ac: Use GNU_MAKE_JOBSERVER.
2015 * aclocal.m4: Regenerated.
2016 * configure: Likewise.
2017
c2e9a4a3
L
20182021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2019
2020 PR ld/27171
2021 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
2022 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
2023
83b33c6c
L
20242021-01-11 H.J. Lu <hongjiu.lu@intel.com>
2025
2026 PR ld/27173
2027 * configure: Regenerated.
2028
a8aa72b9
NC
20292021-01-11 Nick Clifton <nickc@redhat.com>
2030
2031 * po/fr.po: Updated French translation.
2032 * po/pt.po: Updated Portuguese translation.
2033 * po/sr.po: Updated Serbian translation.
2034 * po/uk.po: Updated Ukranian translation.
2035
a4966cd9
L
20362021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2037
2038 * configure: Regenerated.
2039
0a94990b
L
20402021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2041
2042 PR ld/27166
2043 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
2044 -z lam-u48 and -z lam-u57.
2045
573fe3fb
NC
20462021-01-09 Nick Clifton <nickc@redhat.com>
2047
2048 * version.m4: Change to 2.36.50.
2049 * configure: Regenerate.
2050 * po/bfd.pot: Regenerate.
2051
055bc77a
NC
20522021-01-09 Nick Clifton <nickc@redhat.com>
2053
2054 * 2.36 release branch crated.
2055
ba9e922f
L
20562021-01-08 H.J. Lu <hongjiu.lu@intel.com>
2057
2058 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
2059 LAM_U57 when setting LAM_U48.
2060
b1b29aa5
L
20612021-01-08 H.J. Lu <hongjiu.lu@intel.com>
2062
2063 PR ld/26256
2064 PR ld/27160
2065 * elflink.c (elf_fixup_link_order): Verify that fixing up
2066 SHF_LINK_ORDER doesn't increase the output section size.
2067
64307045
AM
20682021-01-09 Alan Modra <amodra@gmail.com>
2069
2070 * configure: Regenerate.
2071
f4782128
ST
20722021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
2073
2074 * configure: Regenerate.
2075
d1bcae83
L
20762021-01-07 H.J. Lu <hongjiu.lu@intel.com>
2077
2078 PR 27109
2079 * aix386-core.c (core_aix386_vec): Initialize
2080 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
2081 * aout-target.h (MY (vec)): Likewise.
2082 * binary.c (binary_vec): Likewise.
2083 * cisco-core.c (core_cisco_be_vec): Likewise.
2084 (core_cisco_le_vec): Likewise.
2085 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
2086 * coff-i386.c (TARGET_SYM): Likewise.
2087 (TARGET_SYM_BIG): Likewise.
2088 * coff-ia64.c (TARGET_SYM): Likewise.
2089 * coff-mips.c (mips_ecoff_le_vec): Likewise.
2090 (mips_ecoff_be_vec): Likewise.
2091 (mips_ecoff_bele_vec): Likewise.
2092 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
2093 (powerpc_xcoff_vec): Likewise.
2094 * coff-sh.c (sh_coff_small_vec): Likewise.
2095 (sh_coff_small_le_vec): Likewise.
2096 * coff-tic30.c (tic30_coff_vec): Likewise.
2097 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
2098 (tic54x_coff0_beh_vec): Likewise.
2099 (tic54x_coff1_vec): Likewise.
2100 (tic54x_coff1_beh_vec): Likewise.
2101 (tic54x_coff2_vec): Likewise.
2102 (tic54x_coff2_beh_vec): Likewise.
2103 * coff-x86_64.c (TARGET_SYM): Likewise.
2104 (TARGET_SYM_BIG): Likewise.
2105 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
2106 (rs6000_xcoff64_aix_vec): Likewise.
2107 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
2108 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
2109 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
2110 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
2111 (TARGET_LITTLE_SYM): Likewise.
2112 * hppabsd-core.c (core_hppabsd_vec): Likewise.
2113 * hpux-core.c (core_hpux_vec): Likewise.
2114 * i386msdos.c (i386_msdos_vec): Likewise.
2115 * ihex.c (ihex_vec): Likewise.
2116 * irix-core.c (core_irix_vec): Likewise.
2117 * mach-o-target.c (TARGET_NAME): Likewise.
2118 * mmo.c (mmix_mmo_vec): Likewise.
2119 * netbsd-core.c (core_netbsd_vec): Likewise.
2120 * osf-core.c (core_osf_vec): Likewise.
2121 * pdp11.c (MY (vec)): Likewise.
2122 * pef.c (pef_vec): Likewise.
2123 (pef_xlib_vec): Likewise.
2124 * plugin.c (plugin_vec): Likewise.
2125 * ppcboot.c (powerpc_boot_vec): Likewise.
2126 * ptrace-core.c (core_ptrace_vec): Likewise.
2127 * sco5-core.c (core_sco5_vec): Likewise.
2128 * som.c (hppa_som_vec): Likewise.
2129 * srec.c (srec_vec): Likewise.
2130 (symbolsrec_vec): Likewise.
2131 * tekhex.c (tekhex_vec): Likewise.
2132 * trad-core.c (core_trad_vec): Likewise.
2133 * verilog.c (verilog_vec): Likewise.
2134 * vms-alpha.c (alpha_vms_vec): Likewise.
2135 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
2136 * wasm-module.c (wasm_vec): Likewise.
2137 * xsym.c (sym_vec): Likewise.
2138 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
2139 isn't set.
2140 (elf_map_symbols): Don't include ignored section symbols.
2141 * elfcode.h (elf_slurp_symbol_table): Also set
2142 BSF_SECTION_SYM_USED on STT_SECTION symbols.
2143 * elflink.c (bfd_elf_final_link): Generated section symbols only
2144 when emitting relocations or reqired.
2145 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
2146 * syms.c (BSF_SECTION_SYM_USED): New.
2147 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
2148 (bfd_target): Add keep_unused_section_symbols.
2149 (bfd_keep_unused_section_symbols): New.
2150 * bfd-in2.h: Regenerated.
2151
17d60030
NC
21522021-01-07 Nick Clifton <nickc@redhat.com>
2153
2154 PR 25713
2155 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
2156 absolute paths and check to see if they are longer than MAX_PATH.
2157
aa881ecd
PT
21582021-01-07 Philipp Tomsich <prt@gnu.org>
2159
2160 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
2161
2652cfad
CXW
21622021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
2163 Jim Wilson <jimw@sifive.com>
2164 Andrew Waterman <andrew@sifive.com>
2165 Maxim Blinov <maxim.blinov@embecosm.com>
2166 Kito Cheng <kito.cheng@sifive.com>
2167 Nelson Chu <nelson.chu@sifive.com>
2168
2169 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
2170
d4e57b87
L
21712021-01-06 H.J. Lu <hongjiu.lu@intel.com>
2172
2173 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
2174 (bfinfdpic_check_relocs): Likewise.
2175
599c86c4
AM
21762021-01-06 Alan Modra <amodra@gmail.com>
2177
2178 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
2179 on unknown r_type.
2180 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
2181
3677b729
AM
21822021-01-06 Alan Modra <amodra@gmail.com>
2183
2184 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
2185 (sparc64-*-solaris2*): Add sparc_elf64_vec and
2186 sparc_elf32_vec.
2187
fbc09e7a
MC
21882021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2189
2190 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
2191 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
2192 * configure.ac: Handle riscv_elf[32|64]_be_vec.
2193 * configure: Regenerate.
2194 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
2195 riscv_is_insn_reloc.
2196 (riscv_get_insn): RISC-V instructions are always little endian, but
2197 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
2198 the insturctions.
2199 (riscv_put_insn): Likewsie.
2200 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
2201 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
2202 use riscv_[get|put]_insn or bfd_[get|put].
2203 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
2204 or bfd_[get|put]l16 for code.
2205 (riscv_elf_relocate_section): Likewise.
2206 (riscv_elf_finish_dynamic_symbol): Likewise.
2207 (riscv_elf_finish_dynamic_sections): Likewise.
2208 (_bfd_riscv_relax_call): Likewise.
2209 (_bfd_riscv_relax_lui): Likewise.
2210 (_bfd_riscv_relax_align): Likewise.
2211 (_bfd_riscv_relax_pc): Likewise.
2212 (riscv_elf_object_p): Handled for big endian.
2213 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
2214 * targets.c: Add riscv_elf[32|64]_be_vec.
2215 (_bfd_target_vector): Likewise.
2216
c8bad65e
AM
22172021-01-05 Alan Modra <amodra@gmail.com>
2218
2219 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
2220 for relocatable executable.
2221
de6a7ee4
AM
22222021-01-05 Alan Modra <amodra@gmail.com>
2223
2224 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
2225
18b98722
NC
22262021-01-05 Nelson Chu <nelson.chu@sifive.com>
2227
2228 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
2229 make sure gp symbol is output as a dynamic symbol.
2230
cd6d537c
L
22312021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2232
2233 PR ld/26256
2234 * elflink.c (compare_link_order): Place unordered sections before
2235 ordered sections.
2236 (elf_fixup_link_order): Add a link info argument. Allow mixed
2237 ordered and unordered input sections for non-relocatable link.
2238 Sort the consecutive bfd_indirect_link_order sections with the
2239 same pattern. Change the offsets of the bfd_indirect_link_order
2240 sections only.
2241 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
2242 * section.c (bfd_section): Add pattern.
2243 (BFD_FAKE_SECTION): Initialize pattern to NULL.
2244 * bfd-in2.h: Regenerated.
2245
dbb078f6
AF
22462021-01-04 Alexander Fedotov <alfedotov@gmail.com>
2247
2248 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
2249 of private flags with 0x.
2250 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
2251
5b4293ba
AM
22522021-01-04 Alan Modra <amodra@gmail.com>
2253
2254 PR 26822
2255 * elflink.c (elf_link_input_bfd): Use the file base name in
2256 linker generated STT_FILE symbols.
2257
4c0e540e
NC
22582021-01-04 Nelson Chu <nelson.chu@sifive.com>
2259
2260 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
2261 * elfxx-riscv.h: Add declaration.
2262 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
2263 riscv_compare_subsets to check the orders.
2264 (riscv_skip_prefix): Removed.
2265 (riscv_prefix_cmp): Removed.
2266
e9cf3691
AM
22672021-01-04 Alan Modra <amodra@gmail.com>
2268
2269 PR 26741
2270 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
2271 calculating subset version length.
2272
f9a6a8f0
AM
22732021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2274
2275 * xcofflink.c: Correct spelling in comments.
2276
250d07de
AM
22772021-01-01 Alan Modra <amodra@gmail.com>
2278
2279 Update year range in copyright notice of all files.
2280
c2795844 2281For older changes see ChangeLog-2020
3499769a 2282\f
a2c58332 2283Copyright (C) 2021-2022 Free Software Foundation, Inc.
3499769a
AM
2284
2285Copying and distribution of this file, with or without modification,
2286are permitted in any medium without royalty provided the copyright
2287notice and this notice are preserved.
2288
2289Local Variables:
2290mode: change-log
2291left-margin: 8
2292fill-column: 74
2293version-control: never
2294End: