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