1 2022-04-01 John Baldwin <jhb@FreeBSD.org>
3 * elf-bfd.h (elfcore_write_x86_segbases): New.
4 * elf.c (elfcore_grok_freebsd_note): Add pseudosections for
5 NT_FREEBSD_X86_SEGBASES register notes.
6 (elfcore_write_x86_segbases): New.
7 (elfcore_write_register_note): Write NT_FREEBSD_X86_SEGBASES
10 2022-04-01 John Baldwin <jhb@FreeBSD.org>
12 * elf.c (elfcore_grok_freebsd_note): Remove checks for namesz.
14 2022-03-22 Steiner H Gunderson <steinar+sourceware@gunderson.no>
16 * dwarf2.c (_bfd_dwarf2_find_nearest_line): if a function name is
17 found, but no line number info, then return a result of 2.
19 2022-03-21 Steiner H Gunderson <steinar+sourceware@gunderson.no>
22 * dwarf2.c (scan_unit_for_symbols): When performing second pass,
23 check to see if the function or variable being processed is the
24 same as the previous one.
26 2022-03-18 Viorel Preoteasa <viorel.preoteasa@gmail.com>
29 * elf32-arm.c (THM_MAX_FWD_BRANCH_OFFSET): Fix definition.
30 (THM2_MAX_FWD_BRANCH_OFFSET): Likewise.
32 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
34 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES):
36 (BFD64_BACKENDS): Add elf64-amdgcn.lo.
37 (BFD64_BACKENDS_CFILES): Add elf64-amdgcn.c.
38 * Makefile.in: Re-generate.
40 * elf64-amdgcn.c: New.
41 * archures.c (bfd_architecture): Add bfd_arch_amdgcn and related
43 (bfd_amdgcn_arch): New.
44 (bfd_archures_list): Add bfd_amdgcn_arch.
45 * bfd-in2.h: Re-generate.
46 * config.bfd: Handle amdgcn* target.
47 * configure.ac: Handle amdgcn_elf64_le_vec.
48 * configure: Re-generate.
49 * elf-bfd.h (elf_target_id): Add AMDGCN_ELF_DATA.
50 * targets.c (amdgcn_elf64_le_vec): New.
51 (_bfd_target_vector): Add amdgcn_elf64_le_vec.
53 2022-03-01 Torbjörn Svensson <torbjorn.svensson@st.com>
54 Fred Eisele <fredrick.eisele@gmail.com>
57 * bfdio.c (_bfd_real_fopen): Fix typo.
59 2022-03-01 Nick Clifton <nickc@redhat.com>
62 * elf32-arm.c (elf32_arm_merge_eabi_attributes): If the first
63 input bfd has a Tag_ABI_HardFP_use set to 3 but does not also have
64 TAG_FP_arch set then reset the TAG_ABI_HardFP_use.
66 2022-02-28 Torbjörn Svensson <torbjorn.svensson@st.com>
67 Fred Eisele <fredrick.eisele@gmail.com>
70 * bfdio.c (_bfd_real_fopen): Fix handling of paths longer than 260
71 characters on Windows hosts.
73 2022-02-28 Nick Clifton <nickc@redhat.com>
76 * config.bfd: Update error message for obsolete configurations.
78 2022-02-17 Nick Clifton <nickc@redhat.com>
80 * po/sr.po: Updated Serbian translation.
82 2022-02-16 Fangrui Song <maskray@google.com>
83 Nick Clifton <nickc@redhat.com>
86 * bfd-in2.h (struct bfd_section): Add type.
87 (discarded_section): Add field.
88 * elf.c (elf_fake_sections): Handle bfd_section::type.
89 * section.c (BFD_FAKE_SECTION): Add field.
90 * mri.c (mri_draw_tree): Update function call.
92 2022-02-11 Michael Forney <mforney@mforney.org>
94 * bfd.c (bfd_set_gp_value): Remove return with expression
97 2022-02-09 Nick Clifton <nickc@redhat.com>
99 * config.bfd: Move pending obsolesence targets into the definitely
102 2022-02-02 Nick Clifton <nickc@redhat.com>
105 * dwarf2.c (read_section): Change the heuristic that checks for
106 overlarge dwarf debug info sections.
108 2022-02-02 Stafford Horne <shorne@gmail.com>
111 * elf32-or1k.c (or1k_elf_got16_no_overflow_howto): Define.
112 (or1k_elf_relocate_section): Use new howto instead of trying to
113 mask out relocation bits.
115 2022-01-24 Roland McGrath <mcgrathr@google.com>
117 * doc/local.mk (%D%/bfdver.texi): Add mkdir command.
119 2022-01-24 Nick Clifton <nickc@redhat.com>
121 * po/fr.po: Updated French translation.
122 * po/ro.po: Updated Romanian translation.
123 * po/uk.po: Updated Ukranian translation.
125 2022-01-22 Nick Clifton <nickc@redhat.com>
127 * version.m4: Change to 2.38.50.
128 * configure: Regenerate.
129 * po/bfd.pot: Regenerate.
131 2022-01-22 Nick Clifton <nickc@redhat.com>
133 * 2.38 release branch created.
135 2022-01-17 Nick Clifton <nickc@redhat.com>
137 * Makefile.in: Regenerate.
138 * configure: Regenerate.
139 * doc/Makefile.in: Regenerate.
140 * po/bfd.pot: Regenerate.
142 2021-12-15 Nikita Popov <npv1310@gmail.com>
145 * dwarf1.c (parse_die): Fix undefined behaviour in range tests.
147 2021-11-17 Nick Clifton <nickc@redhat.com>
150 * elf.c (assign_file_positions_for_non_load_sections): Replace
151 assertion with a warning message.
153 2021-10-19 Nick Clifton <nickc@redhat.com>
155 * linker.c (_bfd_generic_link_add_one_symbol): Test for a NULL
156 name before checking to see if the symbol is __gnu_lto_slim.
157 * archive.c (_bfd_compute_and_write_armap): Likewise.
159 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
161 * configure: Regenerate.
163 2021-09-15 Andrew Burgess <andrew.burgess@embecosm.com>
165 * archures.c (bfd_arch_list): Use 'char *' instead of 'char **'
166 when calculating space for a string list.
168 2021-09-014 Cupertino Miranda <cmiranda@synopsys.com>
169 Claudiu Zissulescu <claziss@synopsys.com>
171 * arc-got.h (arc_static_sym_data): New structure.
172 (get_static_sym_data): New function.
173 (relocate_fix_got_relocs_for_got_info): Move the computation fo
174 symbol value and section to above introduced function, and use
177 2021-09-07 Luis Machado <luis.machado@linaro.org>
179 Revert: [AArch64] MTE corefile support
181 2021-05-21 Luis Machado <luis.machado@linaro.org>
183 * elf.c (elfcore_make_memtag_note_section): New function.
184 (elfcore_grok_note): Handle NT_MEMTAG note types.
186 2021-09-07 Nick Clifton <nickc@redhat.com>
189 * elf32-xtensa.c (elf_xtensa_do_reloc): Add check for put of range
193 * elfxx-riscv.c (riscv_elf_add_sub_reloc): Add check for out of
196 2021-08-10 Nick Clifton <nickc@redhat.com>
198 * po/sr.po: Updated Serbian translation.
200 2021-07-18 Nick Clifton <nickc@redhat.com>
202 * config.bfd: Move pending obsoletion targets to obsolete list.
204 2021-07-16 Giulio Benetti <giulio.benetti@benettiengineering.com>
206 * elf32-or1k.c (or1k_elf_relocate_section): Use a separate entry
207 in switch case R_OR1K_INSN_REL_26 where we need to check for
208 !SYMBOL_CALLS_LOCAL() instead of !SYMBOL_REFERENCES_LOCAL().
210 2021-07-14 Clément Chigot <clement.chigot@atos.net>
212 * libxcoff.h (struct xcoff_dwsect_name): Add DWARF name.
213 * coff-rs6000.c (xcoff_dwsect_names): Update.
214 * coffcode.h (sec_to_styp_flags): Likewise.
215 (coff_new_section_hook): Likewise.
217 2021-07-10 Alan Modra <amodra@gmail.com>
219 * dwarf2.c (read_address): Remove accidental commit.
220 (read_ranges): Compare offset rather than pointers.
222 2021-07-08 Nick Clifton <nickc@redhat.com>
224 * po/pt.po: Updated Portuguese translation.
226 2021-07-07 Nick Clifton <nickc@redhat.com>
228 * elfcode.h (elf_swap_symbol_out): Revert accidental change that
229 removed an abort if the shndx pointer is NULL.
231 2021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
233 * sysdep.h [!ENABLE_NLS]: Prevent inclusion of <libintl.h> on
236 2021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
238 * configure.ac: Check for strnlen declaration.
239 * configure, config.in: Regenerate.
241 2021-07-07 Nick Clifton <nickc@redhat.com>
244 * coff-rs6000.c (xcoff_reloc_type_tls): Reformat error messages in
245 order to fix problems when translating.
246 * cofflink.c (_bfd_coff_write_global_sym): Likewise.
247 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
249 * po/bfd.pot: Regenerate.
251 2021-07-06 Michael Matz <matz@suse.de>
254 * elfnn-riscv.c (riscv_relax_delete_bytes): Check for any
257 2021-07-06 Alan Modra <amodra@gmail.com>
260 * elf64-bpf.c (bpf_elf_generic_reloc): Add missing ATTRIBUTE_UNUSED.
262 2021-07-05 Alan Modra <amodra@gmail.com>
265 * elf64-bpf.c (bpf_elf_generic_reloc): Use correct bfd for bfd_put
266 and bfd_put_32 calls. Correct section limit checks.
268 2021-07-03 Nick Clifton <nickc@redhat.com>
270 * version.m4: Update version number.
271 * configure: Regenerate.
272 * po/opcodes.pot: Regenerate.
274 2021-07-03 Nick Clifton <nickc@redhat.com>
276 * 2.37 release branch created.
278 2021-07-02 Nick Clifton <nickc@redhat.com>
281 * dwarf2.c (read_ranges): Check that range_ptr does not exceed
284 2021-06-30 YunQiang Su <yunqiang.su@cipunited.com>
287 * bfd/elfxx-mips.c (_bfd_mips_elf_section_from_shdr,
288 _bfd_mips_elf_fake_sections): Mark LTO debug info as
291 2021-06-29 Nick Clifton <nickc@redhat.com>
293 * config.bfd (obsolete configurations): Add netbsdpe.
295 2021-06-22 Nelson Chu <nelson.chu@sifive.com>
297 * elfnn-riscv.c (riscv_pcrel_hi_reloc): Added field to store
298 the original relocation type, in case the type is converted to
300 (riscv_pcrel_lo_reloc): Removed unused name field.
301 (riscv_pcrel_relocs): Added comments.
302 (riscv_zero_pcrel_hi_reloc): Removed unused input_bfd.
303 (riscv_record_pcrel_hi_reloc): Updated.
304 (riscv_record_pcrel_lo_reloc): Likewise.
305 (riscv_resolve_pcrel_lo_relocs): Likewise. Check the original
306 type of auipc, to make sure the %pcrel_lo without any addends.
307 Otherwise, report dangerous relocation error.
308 (riscv_elf_relocate_section): Updated above functions are changed.
309 For R_RISCV_GOT_HI20, report dangerous relocation error when addend
312 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
315 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Count PLT for GOTOFF
316 relocation against IFUNC symbols.
317 (_bfd_x86_elf_adjust_dynamic_symbol): Likewise.
319 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
321 * elflink.c (bfd_elf_final_link): Correct DT_TEXTREL warning in
324 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
326 * elf-properties.c (_bfd_elf_parse_gnu_properties): Handle
327 GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI,
328 GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI.
329 (elf_merge_gnu_properties): Likewise.
331 2021-06-11 Alan Modra <amodra@gmail.com>
334 * elf-bfd.h (struct elf_obj_tdata): Add is_pie.
335 * elflink.c (elf_link_add_object_symbols): Set is_pie.
337 2021-06-09 Nick Clifton <nickc@redhat.com>
340 * config.bfd: Do not add the sparc_elf32_vec or sparc_elf64_vec
341 vectors to Sparc Solaris2 targets.
343 2021-06-08 Michael Matz <matz@suse.de>
345 * elf.c (bfd_section_from_shdr): Set has_secondary_relocs flag.
346 (_bfd_elf_slurp_secondary_reloc_section): Use it for early-out.
348 2021-06-07 Jan Beulich <jbeulich@suse.com>
350 * dwarf2.c (read_ranges, read_rnglists): Add u suffix to constant.
352 2021-06-02 Alan Modra <amodra@gmail.com>
354 * elf-attrs.c (_bfd_elf_parse_attributes): Break out of loop if
355 subsection length is too small to cover tag and length field.
357 2021-05-31 Nelson Chu <nelson.chu@sifive.com>
358 Lifang Xia <lifang_xia@c-sky.com>
361 * elfnn-riscv.c (struct riscv_elf_link_hash_table): New integer pointer
362 to monitor the data segment phase.
363 (bfd_elfNN_riscv_set_data_segment_info): New function called by
364 after_allocation, to set the data_segment_phase from expld.dataseg.
365 (_bfd_riscv_relax_section): Don't relax when data_segment_phase is
366 exp_seg_relro_adjust (0x4).
367 * elfxx-riscv.h (bfd_elf32_riscv_set_data_segment_info): New extern.
368 (bfd_elf64_riscv_set_data_segment_info): Likewise
370 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
373 * elf32-i386.c: Don't include "libiberty.h".
374 (elf_howto_table): Revert commits a7664973b24 and 50c95a739c9.
375 (elf_i386_rtype_to_howto): Revert commit 50c95a739c9.
376 (elf_i386_info_to_howto_rel): Likewise.
377 (elf_i386_tls_transition): Likewise.
378 (elf_i386_relocate_section): Likewise.
379 * elf64-x86-64.c (x86_64_elf_howto_table): Revert commits
380 a7664973b24 and 50c95a739c9.
381 (elf_x86_64_rtype_to_howto): Revert commit 50c95a739c9.
382 * elfxx-x86.c (_bfd_x86_elf_parse_gnu_properties): Likewise.
383 * elfxx-x86.h (elf_x86_obj_tdata): Likewise.
384 (elf_x86_has_code16): Likewise.
386 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
389 * elf32-i386.c: Include "libiberty.h".
390 (elf_howto_table): Add 16-bit R_386_PC16 entry.
391 (elf_i386_rtype_to_howto): Add a BFD argument. Use 16-bit
392 R_386_PC16 if input has 16-bit mode instructions.
393 (elf_i386_info_to_howto_rel): Update elf_i386_rtype_to_howto
395 (elf_i386_tls_transition): Likewise.
396 (elf_i386_relocate_section): Likewise.
397 * elf64-x86-64.c (x86_64_elf_howto_table): Add 16-bit
399 (elf_x86_64_rtype_to_howto): Use 16-bit R_X86_64_PC16 if input
400 has 16-bit mode instructions.
401 * elfxx-x86.c (_bfd_x86_elf_parse_gnu_properties): Set
402 elf_x86_has_code16 if relocatable input is marked with
403 GNU_PROPERTY_X86_FEATURE_2_CODE16.
404 * elfxx-x86.h (elf_x86_obj_tdata): Add has_code16.
405 (elf_x86_has_code16): New.
407 2021-05-26 Nelson Chu <nelson.chu@sifive.com>
409 * elfxx-riscv.h (check_unknown_prefixed_ext): New bool.
410 * elfxx-riscv.c (riscv_parse_prefixed_ext): Do not check the
411 prefixed extension name if check_unknown_prefixed_ext is false.
412 * elfnn-riscv.c (riscv_merge_arch_attr_info): Set
413 check_unknown_prefixed_ext to false for linker.
415 2021-05-25 Nick Clifton <nickc@redhat.com>
417 * elf32-arn.c (struct elf_arm_obj_tdata): Add num_entries field.
418 (elf32_arm_num_entries): New macro.
419 (elf32_arm_allocate_local_sym_info): Initialise the new field.
420 Allocate arrays individually so that buffer overruns can be
421 detected by memory checkers.
422 (elf32_arm_create_local_iplt): Check num_entries.
423 (elf32_arm_get_plt_info): Likewise.
424 (elf32_arm_final_link_relocate): Likewise.
425 (elf32_arm_check_relocs): Likewise.
426 (elf32_arm_size_dynamic_sections): Likewise.
427 (elf32_arm_output_arch_local_syms): Likewise.
429 2021-05-25 Nick Clifton <nickc@redhat.com>
431 * elf32-arm.c: Fix formatting.
433 2021-05-25 Alan Modra <amodra@gmail.com>
435 * elf-attrs.c (elf_attr_strdup): New function.
436 (_bfd_elf_attr_strdup): Use it here.
437 (elf_add_obj_attr_string): New function, extracted from..
438 (bfd_elf_add_obj_attr_string): ..here.
439 (elf_add_obj_attr_int_string): New function, extracted from..
440 (bfd_elf_add_obj_attr_int_string): ..here.
441 (_bfd_elf_parse_attributes): Don't allocate an extra byte for a
442 string terminator. Instead ensure parsing doesn't go past
443 end of sub-section. Use size_t variables for lengths.
445 2021-05-22 Alan Modra <amodra@gmail.com>
447 * libbfd.c (_bfd_safe_read_leb128): Remove length_return parameter.
448 Replace data pointer with pointer to pointer. Increment pointer
450 * libbfd-in.h (_bfd_safe_read_leb128): Update prototype.
451 * elf-attrs.c (_bfd_elf_parse_attributes): Adjust to suit. Be
452 careful not to increment data pointer past end. Remove now
453 redundant pr17512 check.
454 * wasm-module.c (READ_LEB128): Adjust to suit changes to
455 _bfd_safe_read_leb128.
456 * dwarf2.c (read_n_bytes): New inline function, old one renamed to..
457 (read_blk): ..this. Allocate and return block. Increment bfd_byte**
459 (read_3_bytes): New function.
460 (read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes),
461 (read_8_bytes, read_string, read_indirect_string),
462 (read_indirect_line_string, read_alt_indirect_string): Take a
463 byte_byte** arg which is incremented over bytes read. Remove any
464 bytes_read return. Rewrite limit checks to compare lengths
465 rather than pointers.
466 (read_abbrevs, read_attribute_value, read_formatted_entries),
467 (decode_line_info, find_abstract_instance, read_ranges),
468 (read_rnglists, scan_unit_for_symbols, parse_comp_unit),
469 (stash_comp_unit): Adjust to suit. Rewrite limit checks to
470 compare lengths rather than pointers.
471 * libbfd.h: Regenerate.
473 2021-05-21 Luis Machado <luis.machado@linaro.org>
475 * elf.c (elfcore_make_memtag_note_section): New function.
476 (elfcore_grok_note): Handle NT_MEMTAG note types.
478 2021-05-20 Andrew Burgess <andrew.burgess@embecosm.com>
480 * section.c (bfd_get_section_by_name): Return NULL if name is
482 (bfd_get_section_by_name_if): Likewise.
483 * dwarf2.c (read_section): Remove unneeded NULL check.
484 (find_debug_info): Likewise.
486 2021-05-19 Nick Clifton <nickc@redhat.com>
488 * plugin.c (bfd_plugin_open_input): Inform the user if the limit
489 on the number of open files is reached. If possible, try to
490 increase this limit before failing.
492 2021-05-14 Nelson Chu <nelson.chu@sifive.com>
494 * elfnn-riscv.c (riscv_resolve_pcrel_lo_relocs): Check the values
495 of %pcrel_hi, before and after adding the addend. Make sure the
496 value won't be changed, otherwise, report dangerous error.
498 2021-05-13 Nelson Chu <nelson.chu@sifive.com>
500 * elfxx-riscv.c (check_implicit_always): The check_func, always add
501 the implicit subset without checking.
502 (check_implicit_for_i): The check_func for i, only add zicsr and
503 zifencei when the version of i less than 2.1.
504 (struct riscv_implicit_subset): Record the subsets and their
505 corresponding implicit subsets.
506 (riscv_implicit_subsets): Table records all implicit informations.
507 (riscv_parse_add_implicit_subsets): Updated and add implicit subsets
508 according to riscv_implicit_subsets. Remove the redundant codes.
510 2021-05-13 Alan Modra <amodra@gmail.com>
513 * elf32-sh.c (sh_elf_info_to_howto): Correct check for last valid
516 2021-05-12 Luis Machado <luis.machado@linaro.org>
518 * elf-bfd.h (elfcore_write_aarch_mte): New prototype.
519 * elf.c (elfcore_grok_aarch_mte, elfcore_write_aarch_mte): New
521 (elfcore_grok_note): Handle notes of type NT_ARM_TAGGED_ADDR_CTRL.
522 (elfcore_write_register_note): Handle MTE notes.
524 2021-05-11 Alan Modra <amodra@gmail.com>
527 * pdp11.c (aout_get_external_symbols): Clear first four bytes of
528 strings array, not just the first byte.
529 * aoutx.h (aout_get_external_symbols): Likewise.
531 2021-05-10 H.J. Lu <hongjiu.lu@intel.com>
534 * simple.c (bfd_simple_get_relocated_section_contents): Remove
537 2021-05-10 Nick Clifton <nickc@redhat.com>
540 * simple.c (simple_dummy_add_to_set): New function.
541 (simple_dummy_constructor): New function.
542 (simple_dummy_multiple_common): New function.
543 (bfd_simple_get_relocated_section_contents): Zero out the
544 callbacks structure, and then set the add_to_set, constructor and
545 multiple_common fields.
547 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
549 * elf32-pru.c (elf_backend_can_gc_sections): Define as 1.
551 2021-05-08 Mike Frysinger <vapier@gentoo.org>
553 * doc/Makefile.am (html-local, bfd/index.html): New targets.
554 * doc/Makefile.in: Regenerate.
556 2021-05-08 Mike Frysinger <vapier@gentoo.org>
558 * doc/Makefile.am (AM_MAKEINFOFLAGS): Define.
559 * doc/Makefile.in: Regenerate.
561 2021-05-07 Clément Chigot <clement.chigot@atos.net>
563 * coff-rs6000.c (xcoff_dwsect_names): Add new DWARF
565 * coffgen.c (coff_pointerize_aux): Handle C_DWARF.
566 (coff_print_symbol): Likewise.
567 * libxcoff.h (XCOFF_DWSECT_NBR_NAMES): Update.
569 2021-05-07 Jan Beulich <jbeulich@suse.com>
571 * elf64-x86-64.c (x86_64_elf_howto_table): Set src_mask fields
574 2021-05-07 Alan Modra <amodra@gmail.com>
576 * bfd-in2.h: Regenerate.
577 * libbfd.h: Regenerate.
579 2021-05-06 Stafford Horne <shorne@gmail.com>
582 * elf32-or1k.c (PLT_ENTRY_SIZE_LARGE, PLT_MAX_INSN_COUNT,
583 OR1K_ADD, OR1K_ORI): New macros to help with plt creation.
584 (elf_or1k_link_hash_table): New field plt_count.
585 (elf_or1k_link_hash_entry): New field plt_index.
586 (elf_or1k_plt_entry_size): New function.
587 (or1k_write_plt_entry): Update to support variable size PLTs.
588 (or1k_elf_finish_dynamic_sections): Use new or1k_write_plt_entry
590 (or1k_elf_finish_dynamic_symbol): Update to write large PLTs
592 (allocate_dynrelocs): Use elf_or1k_plt_entry_size to account for
595 2021-05-06 Stafford Horne <shorne@gmail.com>
598 * elf32-or1k.c (or1k_elf_relocate_section): Relax R_OR1K_GOT16
599 overflow check if we have R_OR1K_GOT_AHI16 followed by
602 2021-05-06 Stafford Horne <shorne@gmail.com>
605 * bfd-in2.h: Add BFD_RELOC_OR1K_GOT_AHI16 relocation.
606 * elf32-or1k.c (or1k_elf_howto_table, or1k_reloc_map): Likewise.
607 (or1k_final_link_relocate, or1k_elf_relocate_section,
608 or1k_elf_check_relocs): Likewise.
609 * libbfd.h (bfd_reloc_code_real_names): Likewise.
612 2021-05-06 Stafford Horne <shorne@gmail.com>
615 * elf32-or1k.c (or1k_elf_adjust_dynamic_symbol): Change
616 condition used to cleanup plt entries to cleanup forced local
619 2021-05-05 H.J. Lu <hongjiu.lu@intel.com>
622 * elflink.c (elf_link_output_symstrtab): Always append ".COUNT"
625 2021-05-05 Alan Modra <amodra@gmail.com>
627 * vms-lib.c (vms_traverse_index): Account for vms_kbn size when
628 sanity checking keylen.
630 2021-05-04 Nick Clifton <nickc@redhat.com>
632 * libbfd.c (bfd_malloc): Provide some documenation. Treat a size
634 (bfd_realloc): Likewise.
635 (bfd_zmalloc): Likewise.
636 (bfd_realloc_or_free): Provide some documentation. Treat a size
637 of 0 as a request to free.
638 * libbfd-in.h (bfd_realloc): Remove prototype.
639 (bfd_realloc_or_free): Remove prototype.
640 (bfd_zmalloc): Remove prototype.
641 * libbfd.h: Regenerate.
643 2021-05-03 Jan Beulich <jbeulich@suse.com>
645 * elf32-i386.c (elf_howto_table): Switch all 32-bit relocs to
646 complain_overflow_dont.
647 * elf64-x86-64.c (x86_64_elf_howto_table): Switch all 64-bit
648 relocs to complain_overflow_dont.
650 2021-05-03 Alan Modra <amodra@gmail.com>
652 * elf32-ppc.c (allocate_dynrelocs): Keep dyn_relocs for undefweak
653 symbols when -z dynamic-undefined-weak or when there are no
654 dynamic relocs in read-only sections and -z nodynamic-undefined-weak
656 * elf64-ppc.c (allocate_dynrelocs): Likewise.
658 2021-05-03 Alan Modra <amodra@gmail.com>
660 * elf32-ppc.c (allocate_dynrelocs): Call ensure_undef_dynamic for
661 weak undefined symols that only appear on PLT relocs.
662 * elf64-ppc.c (allocate_dynrelocs): Likewise.
664 2021-05-03 Alan Modra <amodra@gmail.com>
667 * elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop.
669 2021-05-03 Alan Modra <amodra@gmail.com>
671 * elf32-csky.c (is_mapping_symbol_name): New function.
672 (csky_elf_is_target_special_symbol): Likewise.
673 (csky_elf_maybe_function_sym): Likewise.
674 (bfd_elf32_bfd_is_target_special_symbol): Define.
675 (elf_backend_maybe_function_sym): Define.
677 2021-04-30 Nick Clifton <nickc@redhat.com>
680 * mach-o.c (bfd_mach_o_core_fetch_environment): Use bfd_get_32 to
683 2021-04-30 Nick Clifton <nickc@redhat.com>
686 * elf32-xtensa.c (elf_xtensa_grok_prstatus): Check for core notes
689 2021-04-30 Nick Clifton <nickc@redhat.com>
692 * libbfd.c (bfd_realloc_or_free): Do not free a pointer than has
693 been realloc'ed to size 0.
695 2021-04-30 Nick Clifton <nickc@redhat.com>
698 * coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Check for invalid name
701 2021-04-29 Nick Clifton <nickc@redhat.com>
704 * som.c (som_slurp_symbol_table): Assign symbols without any scope
705 to the undefined section.
706 (som_decode_symclass): Check for a missing symbol section.
707 * syms.c (bfd_decode_symclass): Likewise.
709 2021-04-29 Nick Clifton <nickc@redhat.com>
712 * som.c (som_slurp_string_table): Place a terminating NUL byte at
713 the end of the table.
714 (som_slurp_symbol_table): Check for an over-large offset into the
717 2021-04-28 Nick Clifton <nickc@redhat.com>
719 * elf.c (_bfd_elf_maybe_function_sym): Do not accept annobin
720 symbols as potential function symbols.
721 * elfnn-aarch64.c (elfNN_aarch64_maybe_function_sym): Likewise.
722 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
723 * elf32-arm.c (elf32_arm_maybe_function_sym): Likewise.
725 2021-04-26 Mike Frysinger <vapier@gentoo.org>
727 * elf-bfd.h: Include stdlib.h.
729 2021-04-26 Jan Beulich <jbeulich@suse.com>
731 * elf32-i386.c (elf_howto_table): Switch R_386_PC16 to
732 complain_overflow_signed.
733 * elf64-x86-64.c (x86_64_elf_howto_table): Switch R_X86_64_PC16
734 to complain_overflow_signed.
736 2021-04-23 Eric Botcazou <ebotcazou@adacore.com>
738 * elf.c (special_sections_p): Add .persistent.bss.
740 2021-04-23 Jan Beulich <jbeulich@suse.com>
742 * elf32-i386.c (elf_howto_table): R_386_TLS_DESC_CALL has zero
744 * elf64-x86-64.c (x86_64_elf_howto_table): R_X86_64_TLSDESC_CALL
747 2021-04-22 Clément Chigot <clement.chigot@atos.net>
749 * hash.c (struct bfd_strtab_hash): Remove xcoff field.
750 Add length_field_size field.
751 (_bfd_stringtab_init): Change prototype.
752 Adapt to new length_field_size.
753 (_bfd_xcoff_stringtab_init): Likewise.
754 (_bfd_stringtab_add): Likewise.
755 (_bfd_stringtab_emit): Likewise.
756 * libbfd-in.h (_bfd_xcoff_stringtab_init):
758 * libbfd.h: Regenerate.
759 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create):
760 Call _bfd_xcoff_stringtab_init with isxcoff64 value.
762 2021-04-22 Clément Chigot <clement.chigot@atos.net>
764 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Add errors for
765 unsupported storage class or auxialiry entries.
766 Improve and adapt to new aux structures.
768 (_bfd_xcoff_swap_aux_out): Likewise.
769 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Likewise.
770 (_bfd_xcoff64_swap_aux_out): Likewise.
772 2021-04-21 Eli Zaretskii <eliz@gnu.org>
775 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add display
776 of IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP,
777 IMAGE_FILE_NET_RUN_FROM_SWAP and IMAGE_FILE_UP_SYSTEM_ONLY flags.
778 Decode the contents of the DllCharacteristics field.
780 2021-04-21 Nick Clifton <nickc@redhat.com>
783 * srec.c (srec_read_section): Replace assertions with error
786 2021-04-20 Clément Chigot <clement.chigot@atos.net>
789 * reloc.c (BFD_RELOC_PPC_NEG): New relocation.
790 * bfd-in2.h: Regenerate.
791 * libbfd.h: Regenerate.
792 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Add
793 BFD_RELOC_PPC_NEG handler.
794 (xcoff_reloc_type_neg): Correctly substract addend.
795 * coff64-rs6000.c (xcoff64_howto_table): Add R_NEG_32
797 (xcoff64_rtype2howto): Add handler for R_NEG_32.
798 (xcoff64_reloc_type_lookup): Add BFD_RELOC_PPC_NEG handler.
799 * xcofflink.c (xcoff_need_ldrel_p): Check output section
800 for R_POS-like relocations. New argument added.
801 (xcoff_mark): Adapt to new xcoff_need_ldrel_p argument.
802 (xcoff_link_input_bfd): Likewise.
804 2021-04-16 Alan Modra <amodra@gmail.com>
807 * coffcode.h (styp_to_sec_flags): Use an unsigned long styp_flags.
808 (coff_write_object_contents): Pass bfd to COFF_ENCODE_ALIGNMENT,
809 ignore alignment checks when return is false. Formatting.
811 2021-04-15 Nelson Chu <nelson.chu@sifive.com>
814 * elfnn-riscv.c (riscv_elf_is_target_special_symbol): Added to
815 omit local and empty symbols since they usually generated to
816 mark the auipc instructions.
818 2021-04-15 Lifang Xia<lifang_xia@c-sky.com>
820 * elf32-csky.c (csky_elf_howto_table)
821 <R_CKCORE_PCREL_IMM16BY2>: Set special_function to
822 bfd_elf_generic_reloc.
823 <R_CKCORE_PCREL_IMM16BY4>: Likewise.
824 <R_CKCORE_PCREL_IMM10BY4>: Likewise.
825 <R_CKCORE_PCREL_IMM18BY2>: Likewise.
826 <R_CKCORE_PCREL_FLRW_IMM8BY4>: Likewise.
828 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
831 * elf.c (assign_file_positions_for_non_load_sections): Set
832 p_memsz to p_filesz for the loadable PT_NOTE segment.
834 2021-04-14 Frederic Cambus <fred@statdns.com>
836 * elf.c (elfcore_grok_netbsd_note): Remove unneeded #ifdef
837 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
839 2021-04-14 Alan Modra <amodra@gmail.com>
842 * elf32-metag.c (elf_metag_relocate_section): Don't use &hh->elf
843 when hh might be NULL, test for NULL first.
845 2021-04-14 Alan Modra <amodra@gmail.com>
848 * elf32-arm.c (elf32_arm_size_stubs): Don't use &hash->root when
849 hash might be NULL, cast instead.
851 2021-04-13 Clément Chigot <clement.chigot@atos.net>
853 * xcofflink.c (xcoff_link_check_ar_symbols): Update esym earlier.
855 2021-04-13 Nelson Chu <nelson.chu@sifive.com>
857 * elfnn-riscv.c (riscv_version_mismatch): Do not report the warning
858 when the version of input or output is RISCV_UNKNOWN_VERSION, since
859 the extension is added implicitly.
860 * elfxx-riscv.c: Updated the obsolete comments.
861 (RISCV_UNKNOWN_VERSION): Moved to elfxx-riscv.h.
862 * elfxx-riscv.h (RISCV_UNKNOWN_VERSION): Added.
864 2021-04-12 Alan Modra <amodra@gmail.com>
866 * elf-bfd.h (ENABLE_CHECKING): Define.
867 (elf_link_hash_lookup): Abort if wrong type of hash table.
868 * configure.ac (--enable-checking): Add support.
869 * config.in: Regenerate.
870 * configure: Regenerate.
872 2021-04-12 Alan Modra <amodra@gmail.com>
874 * elf-bfd.h (is_elf_hash_table): Convert macro to inline function.
875 (elf_link_hash_lookup, elf_link_hash_traverse): Likewise.
876 (elf_hash_table, elf_hash_table_id): Likewise.
877 * elf32-arm.c (elf32_arm_setup_section_lists): Delete redundant
878 is_elf_hash_table check.
879 * elf32-csky.c (elf32_csky_setup_section_lists): Likewise.
880 * elf32-hppa.c (clobber_millicode_symbols): Correct param types.
881 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
882 * elfnn-ia64.c (elfNN_ia64_global_dyn_info_free: Likewise.
883 (elfNN_ia64_global_dyn_sym_thunk: Likewise.
884 * elf64-ia64-vms.c (elf64_ia64_global_dyn_info_free): Likewise.
885 (elf64_ia64_global_dyn_sym_thunk): Likewise.
886 (elf64_vms_link_add_object_symbols): Pass base type of hash table
887 to is_elf_hash_table.
888 * elflink.c (_bfd_elf_dynamic_symbol_p): Likewise.
889 (_bfd_elf_symbol_refs_local_p, _bfd_elf_add_dynamic_entry): Likewise.
890 (_bfd_elf_strip_zero_sized_dynamic_sections): Likewise.
891 (_bfd_elf_link_check_relocs, elf_link_add_object_symbols): Likewise.
892 (bfd_elf_final_link): Likewise.
893 * elfnn-aarch64.c (elfNN_aarch64_setup_section_lists): Likewise.
894 * elf64-ppc.c (ppc64_elf_set_toc): Likewise. Use bfd_link_hash_lookup.
896 2021-04-12 Alan Modra <amodra@gmail.com>
898 * elf-bfd.h (struct elf_backend_data): Return bfd_link_hash_entry*
899 from elf_backend_archive_symbol_lookup.
900 (_bfd_elf_archive_symbol_lookup): Return bfd_link_hash_entry*.
901 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Likewise. Check
902 we have a ppc_hash_table before accessing ppc_link_hash_entry
904 * elflink.c (_bfd_elf_archive_symbol_lookup): Return
905 bfd_link_hash_entry*.
906 (elf_link_add_archive_symbols): Adjust to suit.
908 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
910 * elfxx-riscv.c (riscv_parse_std_ext): Fixed the wrong versions of
911 i-ext when expanding g-ext.
913 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
915 * elfxx-riscv.c (riscv_ext_dont_care_version): Removed.
916 (riscv_parse_add_subset): Always add the implicit extensions, even if
917 their versions are RISCV_UNKNOWN_VERSION.
918 (riscv_parse_std_ext): Delay to add i-ext as the implicit extension
919 in the riscv_parse_add_implicit_subsets. Besides, add g-ext as the
920 implicit extension after it has been expanded.
921 (riscv_parse_add_implicit_subsets): Updated.
923 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
925 * elfxx-riscv.c (riscv_std_z_ext_strtab): Moved forward.
926 (riscv_std_s_ext_strtab): Likewise.
927 (riscv_std_h_ext_strtab): Likewise.
928 (riscv_std_zxm_ext_strtab): Added for the zxm prefix.
929 (enum riscv_prefix_ext_class): Moved forward and renamed from
930 riscv_isa_ext_class. Reorder them according to the parsing order,
931 since the enum values are used to check the orders in the
932 riscv_compare_subsets.
933 (struct riscv_parse_prefix_config): Moved forward and renamed from
934 riscv_parse_config_t. Also removed the ext_valid_p field, the
935 related functions are replaced by riscv_valid_prefixed_ext.
936 (parse_config): Moved forward and updated. The more letters of the
937 prefix string, the more forward it must be defined. Otherwise, we
938 will get the wrong mapping when using strncmp in riscv_get_prefix_class.
939 (riscv_get_prefix_class): Moved forward. Support to parse the
940 multi-letter prefix, like zxm.
941 (riscv_known_prefixed_ext): New function, check if the prefixed
942 extension is supported according to the right riscv_std_*_ext_strtab.
943 (riscv_valid_prefixed_ext): New function, used to replace the
944 riscv_ext_*_valid_p functions.
945 (riscv_init_ext_order): Do not set the values for prefix keywords
946 since they may have multiple letters for now.
947 (riscv_compare_subsets): Set the order values of prefix keywords
948 to negative numbers according to the riscv_prefix_ext_class.
949 (riscv_parse_std_ext): Call riscv_get_prefix_class to see if we
950 have parsed the prefixed extensions.
951 (riscv_parse_prefixed_ext): Updated and removed the parameter config.
952 Report error when the prefix is unknown.
953 (riscv_parse_subset): Do not parse the prefixed extensions according
954 to the orders in the parse_config. Remove the confused message and
955 let riscv_parse_prefixed_ext to report the details.
956 * elfxx-riscv.h (enum riscv_isa_ext_class): Moved to elfxx-riscv.c.
957 (riscv_get_prefix_class): Removed to static.
959 2021-04-08 Mike Frysinger <vapier@gentoo.org>
961 * configure.ac (ACX_BUGURL): Use https://.
962 * configure.com (COPY_TEXT): Likewise.
963 * configure: Regenerate.
965 2021-04-05 Alan Modra <amodra@gmail.com>
967 * configure.ac: Don't check for long long or long double type.
968 Don't check for alloca.h, limits.h, stddef.h, stdlib.h, string.h,
969 strings.h, time.h, wchar.h, wctype.h or sys/time.h. Don't check
970 for strtoull, free, malloc, realloc, getenv, strstr, snprintf,
971 vsnprintf, strlen or setitimer. Sort AC_CHECK_DECLS.
972 (AC_ISC_POSIX): Don't invoke.
973 (AC_HEADER_TIME, AC_HEADER_DIRENT, ACX_HEADER_STRING): Likewise.
974 * sysdep.h: Remove many HAVE_*_H checks and fallback declarations.
975 Do test HAVE_SYS_TYPES_H. Don't include sys/time.h. Reorder
976 header order as per automake AC_INCLUDES_DEFAULT.
977 * bfd-in.h: Include inttypes.h unconditionally.
978 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Assume long long and
979 long double are available.
980 (bfd_scan_vma): Assume long long and strtoull are available.
981 * elflink.c: Include limits.h unconditionally.
982 * elfnn-riscv.c: Likewise.
983 * wasm-module.c: Likewise.
984 * hpux-core.c: Include dirent.h unconditionally.
985 * trad-core.c: Likewise.
986 * hosts/x86-64linux.h: Include stdlib.h unconditionally.
987 * peXXigen.c: Remove HAVE_WCHAR_H and HAVE_WCTYPE_H checks.
988 * elf32-m68hc1x.c: Don't include alloca-conf.h.
989 * elf64-hppa.c: Likewise.
991 * wasm-module.c: Likewise.
993 * bfd-in2.h: Regenerate.
994 * config.in: Regenerate.
995 * configure: Regenerate.
997 2021-04-01 Tamar Christina <tamar.christina@arm.com>
1000 * cofflink.c (_bfd_coff_generic_relocate_section): Ignore overflow.
1002 2021-04-01 Martin Liska <mliska@suse.cz>
1004 * ecoff.c (strneq): Remove strneq and use startswith.
1005 (_bfd_ecoff_slurp_armap): Likewise.
1007 2021-04-01 Martin Liska <mliska@suse.cz>
1009 * elf-bfd.h (bfd_section_is_ctf): Use startswith function.
1010 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
1011 (elf_get_reloc_section): Likewise.
1012 * elf32-arc.c (elf_arc_size_dynamic_sections): Likewise.
1013 * elf32-m32r.c (m32r_elf_section_flags): Likewise.
1014 * elf32-microblaze.c (microblaze_elf_size_dynamic_sections): Likewise.
1015 * elf32-nds32.c (nds32_elf_size_dynamic_sections): Likewise.
1016 (nds32_elf_relocate_section): Likewise.
1017 (nds32_elf_action_discarded): Likewise.
1018 (nds32_elf_check_relocs): Likewise.
1019 (nds32_elf_section_flags): Likewise.
1020 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
1021 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
1022 * elf32-rx.c (rx_table_find): Likewise.
1023 (rx_table_map): Likewise.
1024 * elf32-spu.c (spu_elf_backend_symbol_processing): Likewise.
1025 (spu_elf_find_overlays): Likewise.
1026 (needs_ovl_stub): Likewise.
1027 (allocate_spuear_stubs): Likewise.
1028 (build_spuear_stubs): Likewise.
1029 (mark_overlay_section): Likewise.
1030 (spu_elf_auto_overlay): Likewise.
1031 (spu_elf_output_symbol_hook): Likewise.
1032 * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Likewise.
1033 * elf32-xtensa.c (xtensa_property_section_name): Likewise.
1034 * elf64-ppc.c (ppc64_elf_section_flags): Likewise.
1035 (ppc64_elf_relocate_section): Likewise.
1036 * elflink.c (resolve_section): Likewise.
1037 (UNARY_OP): Likewise.
1038 (BINARY_OP_HEAD): Likewise.
1039 (elf_link_input_bfd): Likewise.
1040 * elfnn-riscv.c (riscv_elf_size_dynamic_sections): Likewise.
1041 * elfxx-riscv.c (riscv_parse_subset): Likewise.
1042 * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): Likewise.
1043 * opncls.c (get_build_id): Likewise.
1045 2021-03-31 Alan Modra <amodra@gmail.com>
1048 * bfd-in.h: Don't poison FALSE or TRUE.
1049 * bfd-in2.h: Regenerate.
1051 2021-03-31 Alan Modra <amodra@gmail.com>
1053 * sysdep.h: POISON_BFD_BOOLEAN: Define.
1054 * aix5ppc-core.c, * aout-cris.c, * aout-ns32k.c, * aout-target.h,
1055 * aoutx.h, * arc-got.h, * archive.c, * archive64.c, * archures.c,
1056 * bfd-in.h, * bfd.c, * bfdwin.c, * binary.c, * cache.c,
1057 * coff-alpha.c, * coff-arm.c, * coff-arm.h, * coff-bfd.c,
1058 * coff-bfd.h, * coff-go32.c, * coff-i386.c, * coff-ia64.c,
1059 * coff-mcore.c, * coff-mips.c, * coff-rs6000.c, * coff-sh.c,
1060 * coff-stgo32.c, * coff-tic30.c, * coff-tic4x.c, * coff-tic54x.c,
1061 * coff-x86_64.c, * coff-z80.c, * coff-z8k.c, * coff64-rs6000.c,
1062 * coffcode.h, * coffgen.c, * cofflink.c, * compress.c,
1063 * corefile.c, * cpu-aarch64.c, * cpu-aarch64.h, * cpu-alpha.c,
1064 * cpu-arc.c, * cpu-arm.c, * cpu-arm.h, * cpu-avr.c, * cpu-bfin.c,
1065 * cpu-bpf.c, * cpu-cr16.c, * cpu-cris.c, * cpu-crx.c,
1066 * cpu-csky.c, * cpu-d10v.c, * cpu-d30v.c, * cpu-dlx.c,
1067 * cpu-epiphany.c, * cpu-fr30.c, * cpu-frv.c, * cpu-ft32.c,
1068 * cpu-h8300.c, * cpu-hppa.c, * cpu-i386.c, * cpu-ia64.c,
1069 * cpu-iamcu.c, * cpu-ip2k.c, * cpu-iq2000.c, * cpu-k1om.c,
1070 * cpu-l1om.c, * cpu-lm32.c, * cpu-m10200.c, * cpu-m10300.c,
1071 * cpu-m32c.c, * cpu-m32r.c, * cpu-m68hc11.c, * cpu-m68hc12.c,
1072 * cpu-m68k.c, * cpu-m9s12x.c, * cpu-m9s12xg.c, * cpu-mcore.c,
1073 * cpu-mep.c, * cpu-metag.c, * cpu-microblaze.c, * cpu-mips.c,
1074 * cpu-mmix.c, * cpu-moxie.c, * cpu-msp430.c, * cpu-mt.c,
1075 * cpu-nds32.c, * cpu-nfp.c, * cpu-nios2.c, * cpu-ns32k.c,
1076 * cpu-or1k.c, * cpu-pdp11.c, * cpu-pj.c, * cpu-powerpc.c,
1077 * cpu-pru.c, * cpu-riscv.c, * cpu-rl78.c, * cpu-rs6000.c,
1078 * cpu-rx.c, * cpu-s12z.c, * cpu-s390.c, * cpu-score.c,
1079 * cpu-sh.c, * cpu-sparc.c, * cpu-spu.c, * cpu-tic30.c,
1080 * cpu-tic4x.c, * cpu-tic54x.c, * cpu-tic6x.c, * cpu-tilegx.c,
1081 * cpu-tilepro.c, * cpu-v850.c, * cpu-v850_rh850.c, * cpu-vax.c,
1082 * cpu-visium.c, * cpu-wasm32.c, * cpu-xc16x.c, * cpu-xgate.c,
1083 * cpu-xstormy16.c, * cpu-xtensa.c, * cpu-z80.c, * cpu-z8k.c,
1084 * dwarf1.c, * dwarf2.c, * ecoff-bfd.h, * ecoff.c, * ecofflink.c,
1085 * elf-attrs.c, * elf-bfd.h, * elf-eh-frame.c, * elf-hppa.h,
1086 * elf-ifunc.c, * elf-m10200.c, * elf-m10300.c, * elf-nacl.c,
1087 * elf-nacl.h, * elf-properties.c, * elf-s390-common.c,
1088 * elf-s390.h, * elf-strtab.c, * elf-vxworks.c, * elf-vxworks.h,
1089 * elf.c, * elf32-am33lin.c, * elf32-arc.c, * elf32-arm.c,
1090 * elf32-arm.h, * elf32-avr.c, * elf32-avr.h, * elf32-bfin.c,
1091 * elf32-bfin.h, * elf32-cr16.c, * elf32-cr16.h, * elf32-cris.c,
1092 * elf32-crx.c, * elf32-csky.c, * elf32-csky.h, * elf32-d10v.c,
1093 * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
1094 * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c, * elf32-gen.c,
1095 * elf32-h8300.c, * elf32-hppa.c, * elf32-hppa.h, * elf32-i386.c,
1096 * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, * elf32-m32c.c,
1097 * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
1098 * elf32-m68hc1x.c, * elf32-m68hc1x.h, * elf32-m68k.c,
1099 * elf32-m68k.h, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
1100 * elf32-metag.h, * elf32-microblaze.c, * elf32-mips.c,
1101 * elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
1102 * elf32-nios2.c, * elf32-nios2.h, * elf32-or1k.c, * elf32-pj.c,
1103 * elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
1104 * elf32-rx.c, * elf32-s12z.c, * elf32-s390.c, * elf32-score.c,
1105 * elf32-score.h, * elf32-score7.c, * elf32-sh-relocs.h,
1106 * elf32-sh.c, * elf32-sparc.c, * elf32-spu.c, * elf32-spu.h,
1107 * elf32-tic6x.c, * elf32-tic6x.h, * elf32-tilegx.c,
1108 * elf32-tilepro.c, * elf32-v850.c, * elf32-v850.h,
1109 * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
1110 * elf32-xc16x.c, * elf32-xgate.c, * elf32-xstormy16.c,
1111 * elf32-xtensa.c, * elf32-z80.c, * elf64-alpha.c, * elf64-bpf.c,
1112 * elf64-gen.c, * elf64-hppa.c, * elf64-ia64-vms.c,
1113 * elf64-mips.c, * elf64-mmix.c, * elf64-nfp.c, * elf64-ppc.c,
1114 * elf64-ppc.h, * elf64-s390.c, * elf64-sparc.c,
1115 * elf64-tilegx.c, * elf64-x86-64.c, * elfcode.h,
1116 * elfcore.h, * elflink.c, * elfn32-mips.c, * elfnn-aarch64.c,
1117 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-aarch64.c,
1118 * elfxx-aarch64.h, * elfxx-ia64.c, * elfxx-ia64.h,
1119 * elfxx-mips.c, * elfxx-mips.h, * elfxx-riscv.c, * elfxx-riscv.h,
1120 * elfxx-sparc.c, * elfxx-sparc.h, * elfxx-target.h,
1121 * elfxx-tilegx.c, * elfxx-tilegx.h, * elfxx-x86.c, * elfxx-x86.h,
1122 * format.c, * genlink.h, * hash.c, * i386aout.c, * i386lynx.c,
1123 * i386msdos.c, * ihex.c, * libaout.h, * libbfd-in.h,
1124 * libbfd.c, * libcoff-in.h, * libecoff.h, * libpei.h,
1125 * libxcoff.h, * linker.c, * mach-o-aarch64.c, * mach-o-arm.c,
1126 * mach-o-i386.c, * mach-o-x86-64.c, * mach-o.c, * mach-o.h,
1127 * merge.c, * mmo.c, * netbsd.h, * opncls.c, * pc532-mach.c,
1128 * pdp11.c, * pe-arm.c, * pe-i386.c, * pe-mcore.c, * pe-sh.c,
1129 * pe-x86_64.c, * peXXigen.c, * pef.c, * pei-arm.c, * pei-i386.c,
1130 * pei-ia64.c, * pei-mcore.c, * pei-sh.c, * pei-x86_64.c,
1131 * peicode.h, * plugin.c, * plugin.h, * ppcboot.c, * reloc.c,
1132 * reloc16.c, * rs6000-core.c, * section.c, * simple.c, * som.c,
1133 * som.h, * srec.c, * stabs.c, * syms.c, * targets.c, * tekhex.c,
1134 * verilog.c, * vms-alpha.c, * vms-lib.c, * vms-misc.c, * vms.h,
1135 * wasm-module.c, * xcofflink.c, * xcofflink.h, * xsym.c,
1136 * xsym.h: Replace bfd_boolean with bool, FALSE with false, and
1137 TRUE with true throughout.
1138 * bfd-in2.h: Regenerate.
1139 * libbfd.h: Regenerate.
1140 * libcoff.h: Regenerate.
1142 2021-03-31 Alan Modra <amodra@gmail.com>
1144 * bfd-in.h: Include stdbool.h.
1145 (bfd_boolean): Define as bool
1146 * bfd-in2.h: Regenerate.
1148 2021-03-31 Alan Modra <amodra@gmail.com>
1150 * .gitignore: Delete bfd_stdint.h entry.
1151 * Makefile.am (bfdinclude_HEADERS): Delete bfd_stdint.h.
1152 (BUILD_HFILES, LOCAL_H_DEPS): Likewise.
1153 * bfd-in.h: Include stdint.h in place of bfd_stdint.h.
1154 * configure.ac: Don't invoke GCC_HEADER_STDINT.
1155 * configure.com: Don't create bfd_stdint.h.
1156 * Makefile.in: Regenerate.
1157 * aclocal.m4: Regenerate.
1158 * bfd-in2.h: Regenerate.
1159 * config.in: Regenerate.
1160 * configure: Regenerate.
1161 * doc/Makefile.in: Regenerate.
1162 * po/BLD-POTFILES.in: Regenerate.
1164 2021-03-31 Alan Modra <amodra@gmail.com>
1166 * bfd-in.h: Include string.h.
1167 (LITMEMCPY, LITSTRCPY): Delete.
1168 * bfd-in2.h: Regenerate.
1170 2021-03-30 Alan Modra <amodra@gmail.com>
1172 * elflink.c (elf_link_add_object_symbols): Don't set h->indx
1173 unless is_elf_hash_table.
1175 2021-03-29 Alan Modra <amodra@gmail.com>
1177 * aoutx.h (aout_link_write_symbols): Don't cast boolean expression
1179 * elf32-or1k.c (or1k_set_got_and_rela_sizes): Dont compare booleans
1181 * elf32-arc.c (name_for_global_symbol): Don't compare boolean to TRUE.
1182 (is_reloc_PC_relative): Don't use "boolean_condition ? TRUE : FALSE".
1183 (is_reloc_SDA_relative, is_reloc_for_GOT): Likewise.
1184 (is_reloc_for_PLT, is_reloc_for_TLS): Likewise.
1185 * elf32-arm.c (stm32l4xx_need_create_replacing_stub): Likewise.
1186 * elf32-nds32.c (insert_nds32_elf_blank): Likewise.
1187 * elf32-rx.c (rx_set_section_contents): Likewise.
1188 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise.
1189 * elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): Likewise.
1190 * mach-o.c (bfd_mach_o_read_command): Likewise.
1191 * targets.c (bfd_get_target_info): Likewise.
1193 2021-03-29 Alan Modra <amodra@gmail.com>
1195 * coff-z80.c (z80_is_local_label_name): Return bfd_boolean.
1196 * elf32-z80.c (z80_is_local_label_name): Likewise.
1197 * elf32-spu.c (spu_elf_modify_headers): Likewise.
1198 * elf32-nds32.h (struct elf_nds32_link_hash_table <hyper_relax>):
1200 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Correct test
1201 for error return from vms_write_data_block.
1203 2021-03-29 Alan Modra <amodra@gmail.com>
1205 * elf32-i386.c (elf_i386_finish_local_dynamic_symbol): Return int.
1206 * elf64-ia64-vms.c (elf64_ia64_local_dyn_info_free): Likewise.
1207 (elf64_ia64_local_dyn_sym_thunk): Likewise.
1208 * elf64-x86-64.c (elf_x86_64_finish_local_dynamic_symbol): Likewise.
1209 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_ifunc_dynrelocs),
1210 (elfNN_aarch64_finish_local_dynamic_symbol): Likewise.
1211 * elfnn-ia64.c (elfNN_ia64_local_dyn_info_free): Likewise.
1212 (elfNN_ia64_local_dyn_sym_thunk): Likewise.
1213 * elfnn-riscv.c (allocate_local_ifunc_dynrelocs): Likewise.
1214 (riscv_pcrel_reloc_eq): Likewise.
1215 (riscv_elf_finish_local_dynamic_symbol): Likewise.
1216 * elfxx-sparc.c (allocate_local_dynrelocs): Likewise.
1217 (finish_local_dynamic_symbol): Likewise.
1218 * elfxx-x86.c (elf_x86_allocate_local_dynreloc): Likewise.
1219 * elfxx-mips.c (mips_elf_resolve_got_page_ref): Likewise.
1220 (mips_elf_count_got_symbols): Change return type to bfd_boolean.
1222 2021-03-29 Alan Modra <amodra@gmail.com>
1224 * elflink.c (elf_link_output_symstrtab): Make flinfo parameter
1226 (bfd_elf_final_link): Delete out_sym_func typedef and don't cast
1227 elf_link_output_symstrtab when calling output_arch_syms and
1228 output_arch_local_syms.
1229 * elf-bfd.h (struct elf_backend_data <elf_backend_output_arch_syms,
1230 elf_backend_output_arch_local_syms>): Change return type of func
1231 arg to match elf_link_output_symstrtab.
1232 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Correct
1234 * elf32-nds32.c (nds32_elf_output_symbol_hook): Correct return type.
1235 (nds32_elf_output_arch_syms): Correct func return type.
1237 2021-03-29 Alan Modra <amodra@gmail.com>
1239 * elf-m10200.c (mn10200_elf_relocate_section): Return int.
1240 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1241 * elf32-arc.c (elf_arc_relocate_section): Likewise.
1242 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
1243 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
1244 * elf32-bfin.c (bfin_relocate_section): Likewise.
1245 (bfinfdpic_relocate_section): Likewise.
1246 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
1247 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1248 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
1249 * elf32-csky.c (csky_elf_relocate_section): Likewise.
1250 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
1251 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
1252 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1253 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1254 * elf32-ft32.c (ft32_elf_relocate_section): Likewise.
1255 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
1256 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1257 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1258 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
1259 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
1260 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1261 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
1262 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1263 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1264 * elf32-m68hc1x.h (elf32_m68hc11_relocate_section): Likewise.
1265 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1266 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1267 * elf32-mep.c (mep_elf_relocate_section): Likewise.
1268 * elf32-metag.c (elf_metag_relocate_section): Likewise.
1269 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
1270 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
1271 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
1272 * elf32-mt.c (mt_elf_relocate_section): Likewise.
1273 * elf32-nds32.c (nds32_elf_relocate_section): Likewise.
1274 * elf32-nios2.c (nios2_elf32_relocate_section): Likewise.
1275 * elf32-or1k.c (or1k_elf_relocate_section): Likewise.
1276 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1277 * elf32-pru.c (pru_elf32_relocate_section): Likewise.
1278 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
1279 * elf32-rx.c (rx_elf_relocate_section): Likewise.
1280 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1281 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1282 (_bfd_score_elf_relocate_section): Likewise.
1283 * elf32-score.h (s7_bfd_score_elf_relocate_section): Likewise.
1284 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1285 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1286 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1287 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
1288 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1289 * elf32-vax.c (elf_vax_relocate_section): Likewise.
1290 * elf32-visium.c (visium_elf_relocate_section): Likewise.
1291 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
1292 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1293 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
1294 * elf32-z80.c (z80_elf_relocate_section): Likewise.
1295 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
1296 (elf64_alpha_relocate_section): Likewise.
1297 * elf64-bpf.c (bpf_elf_relocate_section): Likewise.
1298 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
1299 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
1300 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
1301 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1302 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1303 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1304 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise.
1305 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1306 * elfnn-riscv.c (riscv_elf_relocate_section): Likewise.
1307 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
1308 * elfxx-mips.h (_bfd_mips_elf_relocate_section): Likewise.
1309 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1310 * elfxx-sparc.h (_bfd_sparc_elf_relocate_section): Likewise.
1311 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
1312 * elfxx-tilegx.h (tilegx_elf_relocate_section): Likewise.
1314 2021-03-26 Keith Seitz <keiths@redhat.com>
1316 * elfcore.h (_bfd_elf_core_find_build_id): Seek file
1317 offset of program headers after calling elf_read_notes.
1319 2021-03-23 Jan Beulich <jbeulich@suse.com>
1321 * dwarf2.c (read_indexed_string): Rename index to idx.
1323 2021-03-22 Martin Liska <mliska@suse.cz>
1325 * bfd-in.h (startswith): Add startswith function.
1326 (CONST_STRNEQ): Remove.
1327 * bfd-in2.h (startswith): Regenerate with make headers.
1328 * archive.c (bfd_slurp_armap): Replace usage of CONST_STRNEQ with startswith.
1329 (_bfd_slurp_extended_name_table): Likewise.
1330 * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise.
1331 * bfd.c (bfd_get_sign_extend_vma): Likewise.
1332 (bfd_convert_section_size): Likewise.
1333 (bfd_convert_section_contents): Likewise.
1334 * coff-stgo32.c (go32exe_create_stub): Likewise.
1335 (go32exe_check_format): Likewise.
1336 * coffcode.h (styp_to_sec_flags): Likewise.
1337 (GNU_DEBUGALTLINK): Likewise.
1338 * coffgen.c (_bfd_coff_section_already_linked): Likewise.
1339 (coff_gc_sweep): Likewise.
1340 (bfd_coff_gc_sections): Likewise.
1341 * cofflink.c (coff_link_add_symbols): Likewise.
1342 (process_embedded_commands): Likewise.
1343 * compress.c (bfd_is_section_compressed_with_header): Likewise.
1344 (bfd_init_section_decompress_status): Likewise.
1345 * dwarf2.c (find_debug_info): Likewise.
1346 (place_sections): Likewise.
1347 * ecoff.c (_bfd_ecoff_slurp_armap): Likewise.
1348 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
1349 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
1350 (assign_section_numbers): Likewise.
1351 (elfcore_grok_win32pstatus): Likewise.
1352 * elf32-arm.c (cmse_scan): Likewise.
1353 (elf32_arm_gc_mark_extra_sections): Likewise.
1354 (elf32_arm_size_dynamic_sections): Likewise.
1355 (is_arm_elf_unwind_section_name): Likewise.
1356 * elf32-bfin.c (bfin_size_dynamic_sections): Likewise.
1357 * elf32-cr16.c (_bfd_cr16_elf_size_dynamic_sections): Likewise.
1358 * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
1359 * elf32-csky.c (csky_elf_size_dynamic_sections): Likewise.
1360 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
1361 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1362 * elf32-lm32.c (lm32_elf_size_dynamic_sections): Likewise.
1363 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Likewise.
1364 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1365 * elf32-metag.c (elf_metag_size_dynamic_sections): Likewise.
1366 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
1367 * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Likewise.
1368 * elf32-or1k.c (or1k_elf_size_dynamic_sections): Likewise.
1369 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
1370 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1371 * elf32-score.c (s3_bfd_score_elf_size_dynamic_sections): Likewise.
1372 * elf32-score7.c (s7_bfd_score_elf_size_dynamic_sections): Likewise.
1373 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
1374 * elf32-tic6x.c (is_tic6x_elf_unwind_section_name): Likewise.
1375 (elf32_tic6x_size_dynamic_sections): Likewise.
1376 * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
1377 * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Likewise.
1378 (xtensa_is_insntable_section): Likewise.
1379 (xtensa_is_littable_section): Likewise.
1380 (xtensa_is_proptable_section): Likewise.
1381 (xtensa_property_section_name): Likewise.
1382 (xtensa_callback_required_dependence): Likewise.
1383 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
1384 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1385 * elf64-ia64-vms.c (is_unwind_section_name): Likewise.
1386 (get_reloc_section): Likewise.
1387 (elf64_ia64_size_dynamic_sections): Likewise.
1388 (elf64_ia64_object_p): Likewise.
1389 * elf64-mmix.c (mmix_elf_add_symbol_hook): Likewise.
1390 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Likewise.
1391 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1392 * elflink.c (elf_link_add_object_symbols): Likewise.
1393 (_bfd_elf_gc_mark_extra_sections): Likewise.
1394 (bfd_elf_parse_eh_frame_entries): Likewise.
1395 (_bfd_elf_section_already_linked): Likewise.
1396 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Likewise.
1397 * elfnn-ia64.c (is_unwind_section_name): Likewise.
1398 (elfNN_ia64_size_dynamic_sections): Likewise.
1399 (elfNN_ia64_object_p): Likewise.
1400 * elfxx-mips.c (FN_STUB_P): Likewise.
1401 (CALL_STUB_P): Likewise.
1402 (CALL_FP_STUB_P): Likewise.
1403 (_bfd_mips_elf_section_from_shdr): Likewise.
1404 (_bfd_mips_elf_fake_sections): Likewise.
1405 (_bfd_mips_elf_size_dynamic_sections): Likewise.
1406 (_bfd_mips_final_write_processing): Likewise.
1407 (_bfd_mips_elf_final_link): Likewise.
1408 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
1409 * elfxx-x86.c (elf_i386_is_reloc_section): Likewise.
1410 (elf_x86_64_is_reloc_section): Likewise.
1411 * hpux-core.c (thread_section_p): Likewise.
1412 * libcoff.h (bfd_pei_p): Likewise.
1413 * linker.c (REAL): Likewise.
1414 (unwrap_hash_lookup): Likewise.
1415 (_bfd_generic_link_add_one_symbol): Likewise.
1416 * mmo.c (mmo_internal_write_section): Likewise.
1417 * osf-core.c (osf_core_core_file_p): Likewise.
1418 * pef.c (bfd_pef_print_symbol): Likewise.
1419 * pei-x86_64.c (pex64_print_all_pdata_sections): Likewise.
1420 * som.c (som_slurp_symbol_table): Likewise.
1421 (som_slurp_armap): Likewise.
1422 * wasm-module.c (wasm_compute_custom_section_file_position): Likewise.
1424 2021-03-22 Jan Beulich <jbeulich@suse.com>
1426 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Add missing
1427 language translation wrapping to _bfd_error_handler()
1430 2021-03-21 Alan Modra <amodra@gmail.com>
1432 * bfd-in.h (startswith): New inline.
1433 (CONST_STRNEQ): Use startswith.
1434 * bfd-in2.h: Regenerate.
1436 2021-03-20 Alan Modra <amodra@gmail.com>
1439 * elf.c (_bfd_elf_make_section_from_shdr): Remove SHF_EXCLUDE
1440 test for .gnu.debuglto*.
1442 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1445 * elf.c (_bfd_elf_make_section_from_shdr): Treat
1446 .gnu.debuglto_.debug_ section as debugging section unless it is
1447 marked with SHF_EXCLUDE.
1448 * elflink.c (elf_create_symbuf): Revert commit 994b2513281.
1449 (bfd_elf_match_symbols_in_sections): Ignore section symbols when
1450 matching non-debugging sections or linkonce section with comdat
1453 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1456 * dwarf2.c (read_attribute_value): Check version >= 3 for
1459 2021-03-16 Nick Clifton <nickc@redhat.com>
1461 * peXXigen.c (_bfd_XXi_swap_aux_out): Avoid potential buffer
1462 overrun by using sizeof of the destination x_fname field as the
1465 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1467 * elfxx-riscv.c (riscv_std_z_ext_strtab): Add zba, zbb and zbc.
1469 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1471 * reloc.c (BFD_RELOC_PPC_TLS_LE, BFD_RELOC_PPC_TLS_IE,
1472 BFD_RELOC_PPC_TLS_M, BFD_RELOC_PPC_TLS_ML, BFD_RELOC_PPC64_TLS_GD,
1473 BFD_RELOC_PPC64_TLS_LD, BFD_RELOC_PPC64_TLS_LE,
1474 BFD_RELOC_PPC64_TLS_IE, BFD_RELOC_PPC64_TLS_M,
1475 BFD_RELOC_PPC64_TLS_ML): New relocations.
1476 * bfd-in2.h: Regenerate.
1477 * libbfd.h: Regenerate.
1478 * coff-rs6000.c (xcoff_calculate_relocation): Call
1479 xcoff_reloc_type_tls for TLS relocations.
1480 (xcoff_howto_table): Implement TLS relocations.
1481 (_bfd_xcoff_reloc_type_lookup): Add cases TLS relocations.
1482 (xcoff_reloc_type_tls): New function.
1483 * coff64-rs6000.c (xcoff_calculate_relocation): Likewise.
1484 (xcoff_howto_table): Likewise.
1485 (_bfd_xcoff_reloc_type_lookup): Likewise.
1486 * coffcode.h (sec_to_styp_flags): Handle TLS sections.
1487 (styp_to_sec_flags): Likewise.
1488 (coff_compute_section_file_positions): Avoid file offset
1489 optimisation for .data when the previous section is .tdata.
1490 (coff_write_object_contents): Handle TLS sections.
1491 * coffswap.h (coff_swap_aouthdr_out): Add support for
1492 new fields in aouthdr.
1493 * libxcoff.h (xcoff_reloc_type_tls): Add prototype.
1494 * xcofflink.c (xcoff_link_add_symbols): Handle XMC_UL.
1495 (xcoff_need_ldrel_p): Add cases for TLS relocations.
1496 (xcoff_create_ldrel): Add l_symndx for TLS sections.
1498 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1500 * reloc.c (BFD_RELOC_PPC_TOC16_HI, BFD_RELOC_PPC_TOC16_LO):
1502 * bfd-in2.h: Regenerate.
1503 * libbfd.h: Regenerate.
1504 * coff-rs6000.c (xcoff_calculate_relocation): Call
1505 xcoff_reloc_type_toc for R_TOCU and R_TOCL.
1506 (xcoff_howto_table): Remove src_mask for TOC relocations.
1507 Add R_TOCU and R_TOCL howtos.
1508 (_bfd_xcoff_reloc_type_lookup): Add cases for
1509 BFD_RELOC_PPC_TOC16_HI and BFD_RELOC_PPC_TOC16_LO.
1510 (xcoff_reloc_type_toc): Compute the whole offset.
1511 Implement R_TOCU and R_TOCL.
1512 * coff64-rs6000.c (xcoff64_calculate_relocation):
1514 (xcoff64_howto_table): Likewise.
1515 (xcoff64_reloc_type_lookup): Likewise.
1517 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1519 * coff-rs6000.c (xcoff_calculate_relocation): Correct and
1520 add new relocations.
1521 (xcoff_howto_table): Likewise.
1522 (xcoff_rtype2howto): Increase r_type maximum value.
1523 (xcoff_ppc_relocate_section): Reuse predefined HOWTOs instead
1524 of create a new one from scratch. Enable only some relocations
1525 to have a changing r_size.
1526 * coff64-rs6000.c (xcoff64_calculate_relocation): Likewise.
1527 (xcoff64_howto_table): Likewise.
1528 (xcoff64_rtype2howto): Likewise.
1529 (xcoff64_ppc_relocate_section): Likewise.
1530 * libxcoff.h (XCOFF_MAX_CALCULATE_RELOCATION): Fix value.
1532 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1534 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Move.
1536 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1538 * coff64-rs6000.c (xcoff64_write_object_contents): Remove.
1539 * coffcode.h (coff_write_object_contents): Add bfd_mach_ppc_620
1540 support for o_cputype field. Avoid creating an empty a.out header
1543 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1545 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add
1548 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
1550 * elfnn-riscv.c (riscv_elf_link_hash_table): New boolean
1551 restart_relax, used to check if we need to run the whole
1552 relaxations from relax pass 0 to 2 again.
1553 (riscv_elf_link_hash_table_create): Init restart_relax to FALSE.
1554 (_bfd_riscv_relax_align): Remove obsolete sec_flg0 set.
1555 (_bfd_riscv_relax_delete): Set again to TRUE if we do delete the code.
1556 (bfd_elfNN_riscv_restart_relax_sections): New function. Called by
1557 after_allocation to check if we need to run the whole relaxations again.
1558 (_bfd_riscv_relax_section): We will only enter into the relax pass 3
1559 when the restart_relax is FALSE; At last set restart_relax to TRUE if
1561 * elfxx-riscv.h (bfd_elf32_riscv_restart_relax_sections): Declaration.
1562 (bfd_elf64_riscv_restart_relax_sections): Likewise.
1564 2021-03-10 Jan Beulich <jbeulich@suse.com>
1566 * cofflink.c (_bfd_coff_write_global_sym): Range-check symbol
1569 2021-03-10 Alan Modra <amodra@gmail.com>
1570 Jan Beulich <jbeulich@suse.com>
1572 * elf.c (bfd_elf_generic_reloc): Make references between debug
1573 sections use section relative values.
1575 2021-03-09 Jan Beulich <jbeulich@suse.com>
1577 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA.
1579 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1583 * bfd.c (_bfd_get_link_info): New function.
1584 * elf-bfd.h (output_elf_obj_tdata): Add link_info.
1585 (elf_link_info): New.
1586 * libbfd-in.h (_bfd_get_link_info): New prototype.
1587 * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for
1588 R_AMD64_IMAGEBASE when generating x86-64 ELF executable.
1589 * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h".
1590 (pex64_link_add_symbols): New function.
1591 (coff_bfd_link_add_symbols): New macro.
1592 * libbfd.h: Regenerated.
1594 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1595 Andrew Burgess <andrew.burgess@embecosm.com>
1597 * elf-bfd.h (elfcore_write_riscv_csr): Declare.
1598 * elf.c (elfcore_grok_riscv_csr): New function.
1599 (elfcore_grok_note): Handle NT_RISCV_CSR.
1600 (elfcore_write_riscv_csr): New function.
1601 (elfcore_write_register_note): Handle '.reg-riscv-csr'.
1603 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1604 Andrew Burgess <andrew.burgess@embecosm.com>
1606 * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define.
1607 (PRPSINFO_PR_PSARGS_LENGTH): Define.
1608 (riscv_write_core_note): New function.
1609 (riscv_elf_grok_psinfo): Make use of two new length defines.
1610 (elf_backend_write_core_note): Define.
1612 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1613 Andrew Burgess <andrew.burgess@embecosm.com>
1615 * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function.
1616 * elf.c (elfcore_grok_gdb_tdesc): New function.
1617 (elfcore_grok_note): Handle NT_GDB_TDESC.
1618 (elfcore_write_gdb_tdesc): New function.
1619 (elfcore_write_register_note): Handle NT_GDB_TDESC.
1621 2021-03-05 Nick Clifton <nickc@redhat.com>
1624 * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms.
1625 (read_indexed_string): Placeholder function.
1626 (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx*
1629 2021-03-05 Alan Modra <amodra@gmail.com>
1631 * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
1633 * coff-x86_64.c (coff_amd64_reloc): Do more or less the same
1634 adjustments here instead. Separate pc-relative adjustments
1635 from symbol related adjustments. Tidy comments and formatting.
1637 2021-03-04 Jan Beulich <jbeulich@suse.com>
1639 * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
1642 2021-03-04 Alan Modra <amodra@gmail.com>
1644 * rs6000-core.c (rs6000coff_core_p): Correct prototype.
1646 2021-03-03 Alan Modra <amodra@gmail.com>
1649 * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
1650 processing not when start/stop symbol section is unmarked but
1651 on first time a start/stop symbol is processed.
1653 2021-03-03 Alan Modra <amodra@gmail.com>
1655 * reloc.c: Include x86_64.h rather than internal.h.
1657 2021-03-02 Nick Clifton <nickc@redhat.com>
1660 * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
1661 function and variable tags and a second time to resolve their
1664 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
1666 * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
1668 2021-03-02 Alan Modra <amodra@gmail.com>
1671 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
1672 linker defined start/stop symbols when start_stop_gc.
1674 2021-03-02 Alan Modra <amodra@gmail.com>
1676 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
1677 indirect to pc-relative or toc-relative for undefined symbols.
1679 2021-03-01 Alan Modra <amodra@gmail.com>
1680 Fangrui Song <maskray@google.com>
1682 * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
1683 defined start/stop symbols when start_stop_gc.
1684 (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
1685 (bfd_elf_define_start_stop): Don't modify ldscript_def syms.
1686 * linker.c (bfd_generic_define_start_stop): Likewise.
1688 2021-02-25 Alan Modra <amodra@gmail.com>
1691 * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak.
1692 * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and
1693 use when deciding an as-needed library should be loaded instead
1694 of using the binding of the library definition.
1696 2021-02-24 Alan Modra <amodra@gmail.com>
1699 * coff-stgo32.c (go32exe_check_format): Sanity check size of
1700 header to avoid a buffer overflow.
1702 2021-02-22 Alan Modra <amodra@gmail.com>
1704 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
1705 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
1707 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
1710 * elfnn-riscv.c (perform_relocation): Updated encoding macros.
1711 (_bfd_riscv_relax_call): Likewise.
1712 (_bfd_riscv_relax_lui): Likewise.
1713 * elfxx-riscv.c (howto_table): Likewise.
1715 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
1717 * Makefile.am: Added cpu-riscv.h.
1718 * Makefile.in: Regenerated.
1719 * po/SRC-POTFILES.in: Regenerated.
1720 * cpu-riscv.h: Added to support spec versions controlling.
1721 Also added extern arrays and functions for cpu-riscv.c.
1722 (enum riscv_spec_class): Define all spec classes here uniformly.
1723 (struct riscv_spec): Added for all specs.
1724 (RISCV_GET_SPEC_CLASS): Added to reduce repeated code.
1725 (RISCV_GET_SPEC_NAME): Likewise.
1726 (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class.
1727 (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class.
1728 (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name.
1729 * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec.
1730 (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS.
1731 (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME.
1732 (riscv_priv_specs): Moved below.
1733 (riscv_get_priv_spec_class_from_numbers): Likewise, updated.
1734 (riscv_isa_specs): Moved from include/opcode/riscv.h.
1735 * elfnn-riscv.c: Included cpu-riscv.h.
1736 (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec.
1737 * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h.
1738 (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h.
1739 * elfxx-riscv.h: Removed extern functions to cpu-riscv.h.
1741 2021-02-17 Alan Modra <amodra@gmail.com>
1743 * wasm-module.c: Guard include of limits.h.
1744 (CHAR_BIT): Provide backup define.
1745 (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
1746 Correct signed overflow checking.
1748 2021-02-17 Nelson Chu <nelson.chu@sifive.com>
1751 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
1752 copying the elf flags from input BFD to output BFD, until we have
1753 checked if the input BFD has no code section or not. Also fix the
1754 problem that we only check the first section rather than the entire
1755 sections for input BFD.
1757 2021-02-16 Alan Modra <amodra@gmail.com>
1759 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
1760 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
1762 2021-02-15 Jan Beulich <jbeulich@suse.com>
1764 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
1765 * doc/Makefile.in: Re-generate.
1767 2021-02-15 Alan Modra <amodra@gmail.com>
1769 * elf32-nds32.c (nds32_get_section_contents): Replace
1770 bfd_malloc_and_get_section with bfd_get_full_section_contents.
1771 (nds32_elf_relax_delete_blanks): Init contents.
1772 (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
1774 2021-02-15 Alan Modra <amodra@gmail.com>
1776 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
1777 bfd_get_full_section_contents.
1779 2021-02-14 Alan Modra <amodra@gmail.com>
1781 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
1782 all fixes to bfd_generic_get_relocated_section_contents since this
1783 function was split out.
1785 2021-02-11 Alan Modra <amodra@gmail.com>
1787 * config.bfd: Remove ia64 from obsolete list.
1789 2021-02-11 Alan Modra <amodra@gmail.com>
1792 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
1794 2021-02-11 Alan Modra <amodra@gmail.com>
1797 * elf32-avr.c (avr_elf32_load_records_from_section): Use
1798 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
1801 2021-02-11 Alan Modra <amodra@gmail.com>
1804 * section.c (bfd_get_section_contents): Avoid possible overflow
1805 when range checking offset and count.
1806 (bfd_set_section_contents): Likewise.
1808 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
1810 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
1812 * configure: Regenerated.
1814 2021-02-09 Alan Modra <amodra@gmail.com>
1816 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
1817 * configure.ac: Delete symbian entries.
1818 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
1819 * elf32-arm.c: Remove symbian support. Formatting.
1820 * targets.c: Delete symbian entries.
1821 * configure: Regenerate.
1823 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1826 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
1827 info when failed to convert GOTPCREL relocation.
1829 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
1831 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
1833 2021-02-04 Alan Modra <amodra@gmail.com>
1836 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
1837 libraries for IR references on pass over libraries after LTO
1840 2021-02-03 Alan Modra <amodra@gmail.com>
1843 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
1844 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
1845 libraries when H is an indirect symbol after calling
1846 _bfd_elf_add_default_symbol.
1848 2021-02-03 Alan Modra <amodra@gmail.com>
1851 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
1852 undecorated symbol will have a different version.
1854 2021-02-02 Alan Modra <amodra@gmail.com>
1857 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
1858 Use when handling default versioned symbol. Rename existing
1859 override variable to nondef_override and use for non-default
1861 (elf_link_add_object_symbols): Adjust call to suit. Don't
1862 pull in as-needed libraries when override is set.
1864 2021-02-01 Emery Hemingway <ehmry@posteo.net>
1866 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
1868 2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
1871 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
1872 offset for the R_RL78_RH_SADDR relocation.
1874 2021-01-29 Alan Modra <amodra@gmail.com>
1877 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
1878 on symbols defined in absolute or other special sections.
1880 2021-01-28 Alan Modra <amodra@gmail.com>
1883 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
1884 prevent endless looping of linked-to sections.
1886 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1888 * bfd-elf.h (elfcore_write_file_note): New function.
1889 * elf.c (elfcore_write_file_note): New function.
1891 2021-01-26 Alan Modra <amodra@gmail.com>
1893 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
1895 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
1898 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
1901 2021-01-23 H.J. Lu <hongjiu.lu@intel.com>
1904 * dwarf2.c (read_rnglists): Advance rngs_ptr after
1905 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
1907 2021-01-20 Alan Modra <amodra@gmail.com>
1909 * elf32-ppc.c: Delete outdated comment.
1910 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
1911 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
1913 2021-01-20 Alan Modra <amodra@gmail.com>
1915 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
1916 section symbols are present.
1918 2021-01-19 Alan Modra <amodra@gmail.com>
1920 * elf64-ppc.c (elf_hash_entry): New inline function. Use
1921 throughout to replace casts.
1922 (branch_reloc_hash_match): Remove const from params.
1923 (use_local_plt): New function.
1924 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
1925 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
1927 * elf32-ppc.c (use_local_plt): New function.
1928 (allocate_dynrelocs, ppc_elf_relocate_section),
1929 (write_global_sym_plt): Use use_local_plt.
1931 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1934 * elflink.c (elf_create_symbuf): Also ignore section symbols.
1936 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1939 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
1940 check pointer_equality_needed.
1942 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1944 * elf-linker-x86.h (elf_linker_x86_params): Add
1945 report_relative_reloc.
1946 * elf32-i386.c (elf_i386_relocate_section): Call
1947 _bfd_x86_elf_link_report_relative_reloc to report relative
1948 relocations for -z report-relative-reloc.
1949 (elf_i386_finish_dynamic_symbol): Likewse.
1950 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
1951 (elf_x86_64_finish_dynamic_symbol): Likewse.
1952 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
1954 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
1957 2021-01-16 Alan Modra <amodra@gmail.com>
1959 * compress.c (decompress_contents): Tidy inflateEnd result test.
1961 2021-01-16 Alan Modra <amodra@gmail.com>
1964 * elflink.c (elf_link_output_extsym): Use version 1 in
1965 .gnu.version for undefined unversioned symbols.
1967 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1969 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
1970 caused the by previous commit accidentally.
1972 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1974 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
1975 also aligned the code.
1977 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1979 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
1981 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1983 * elfnn-riscv.c: Comments tidy and improvement.
1984 * elfxx-riscv.c: Likewise.
1985 * elfxx-riscv.h: Likewise.
1987 2021-01-14 H.J. Lu <hongjiu.lu@intel.com>
1990 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
1991 section for R_BFIN_FUNCDESC.
1993 2021-01-14 Nick Clifton <nickc@redhat.com>
1995 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
1997 2021-01-13 Alan Modra <amodra@gmail.com>
1999 * Makefile.in: Regenerate.
2000 * doc/Makefile.in: Regenerate.
2002 2021-01-13 Alan Modra <amodra@gmail.com>
2005 * section.c (struct bfd_section): Remove pattern field.
2006 (BFD_FAKE_SECTION): Adjust to suit.
2007 * bfd-in2.h: Regenerate.
2008 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
2009 (bfd_elf_final_link): Don't call elf_fixup_link_order.
2011 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2014 * configure.ac: Use GNU_MAKE_JOBSERVER.
2015 * aclocal.m4: Regenerated.
2016 * configure: Likewise.
2018 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2021 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
2022 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
2024 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
2027 * configure: Regenerated.
2029 2021-01-11 Nick Clifton <nickc@redhat.com>
2031 * po/fr.po: Updated French translation.
2032 * po/pt.po: Updated Portuguese translation.
2033 * po/sr.po: Updated Serbian translation.
2034 * po/uk.po: Updated Ukranian translation.
2036 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2038 * configure: Regenerated.
2040 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2043 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
2044 -z lam-u48 and -z lam-u57.
2046 2021-01-09 Nick Clifton <nickc@redhat.com>
2048 * version.m4: Change to 2.36.50.
2049 * configure: Regenerate.
2050 * po/bfd.pot: Regenerate.
2052 2021-01-09 Nick Clifton <nickc@redhat.com>
2054 * 2.36 release branch crated.
2056 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
2058 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
2059 LAM_U57 when setting LAM_U48.
2061 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
2065 * elflink.c (elf_fixup_link_order): Verify that fixing up
2066 SHF_LINK_ORDER doesn't increase the output section size.
2068 2021-01-09 Alan Modra <amodra@gmail.com>
2070 * configure: Regenerate.
2072 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
2074 * configure: Regenerate.
2076 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
2079 * aix386-core.c (core_aix386_vec): Initialize
2080 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
2081 * aout-target.h (MY (vec)): Likewise.
2082 * binary.c (binary_vec): Likewise.
2083 * cisco-core.c (core_cisco_be_vec): Likewise.
2084 (core_cisco_le_vec): Likewise.
2085 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
2086 * coff-i386.c (TARGET_SYM): Likewise.
2087 (TARGET_SYM_BIG): Likewise.
2088 * coff-ia64.c (TARGET_SYM): Likewise.
2089 * coff-mips.c (mips_ecoff_le_vec): Likewise.
2090 (mips_ecoff_be_vec): Likewise.
2091 (mips_ecoff_bele_vec): Likewise.
2092 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
2093 (powerpc_xcoff_vec): Likewise.
2094 * coff-sh.c (sh_coff_small_vec): Likewise.
2095 (sh_coff_small_le_vec): Likewise.
2096 * coff-tic30.c (tic30_coff_vec): Likewise.
2097 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
2098 (tic54x_coff0_beh_vec): Likewise.
2099 (tic54x_coff1_vec): Likewise.
2100 (tic54x_coff1_beh_vec): Likewise.
2101 (tic54x_coff2_vec): Likewise.
2102 (tic54x_coff2_beh_vec): Likewise.
2103 * coff-x86_64.c (TARGET_SYM): Likewise.
2104 (TARGET_SYM_BIG): Likewise.
2105 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
2106 (rs6000_xcoff64_aix_vec): Likewise.
2107 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
2108 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
2109 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
2110 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
2111 (TARGET_LITTLE_SYM): Likewise.
2112 * hppabsd-core.c (core_hppabsd_vec): Likewise.
2113 * hpux-core.c (core_hpux_vec): Likewise.
2114 * i386msdos.c (i386_msdos_vec): Likewise.
2115 * ihex.c (ihex_vec): Likewise.
2116 * irix-core.c (core_irix_vec): Likewise.
2117 * mach-o-target.c (TARGET_NAME): Likewise.
2118 * mmo.c (mmix_mmo_vec): Likewise.
2119 * netbsd-core.c (core_netbsd_vec): Likewise.
2120 * osf-core.c (core_osf_vec): Likewise.
2121 * pdp11.c (MY (vec)): Likewise.
2122 * pef.c (pef_vec): Likewise.
2123 (pef_xlib_vec): Likewise.
2124 * plugin.c (plugin_vec): Likewise.
2125 * ppcboot.c (powerpc_boot_vec): Likewise.
2126 * ptrace-core.c (core_ptrace_vec): Likewise.
2127 * sco5-core.c (core_sco5_vec): Likewise.
2128 * som.c (hppa_som_vec): Likewise.
2129 * srec.c (srec_vec): Likewise.
2130 (symbolsrec_vec): Likewise.
2131 * tekhex.c (tekhex_vec): Likewise.
2132 * trad-core.c (core_trad_vec): Likewise.
2133 * verilog.c (verilog_vec): Likewise.
2134 * vms-alpha.c (alpha_vms_vec): Likewise.
2135 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
2136 * wasm-module.c (wasm_vec): Likewise.
2137 * xsym.c (sym_vec): Likewise.
2138 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
2140 (elf_map_symbols): Don't include ignored section symbols.
2141 * elfcode.h (elf_slurp_symbol_table): Also set
2142 BSF_SECTION_SYM_USED on STT_SECTION symbols.
2143 * elflink.c (bfd_elf_final_link): Generated section symbols only
2144 when emitting relocations or reqired.
2145 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
2146 * syms.c (BSF_SECTION_SYM_USED): New.
2147 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
2148 (bfd_target): Add keep_unused_section_symbols.
2149 (bfd_keep_unused_section_symbols): New.
2150 * bfd-in2.h: Regenerated.
2152 2021-01-07 Nick Clifton <nickc@redhat.com>
2155 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
2156 absolute paths and check to see if they are longer than MAX_PATH.
2158 2021-01-07 Philipp Tomsich <prt@gnu.org>
2160 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
2162 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
2163 Jim Wilson <jimw@sifive.com>
2164 Andrew Waterman <andrew@sifive.com>
2165 Maxim Blinov <maxim.blinov@embecosm.com>
2166 Kito Cheng <kito.cheng@sifive.com>
2167 Nelson Chu <nelson.chu@sifive.com>
2169 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
2171 2021-01-06 H.J. Lu <hongjiu.lu@intel.com>
2173 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
2174 (bfinfdpic_check_relocs): Likewise.
2176 2021-01-06 Alan Modra <amodra@gmail.com>
2178 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
2180 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
2182 2021-01-06 Alan Modra <amodra@gmail.com>
2184 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
2185 (sparc64-*-solaris2*): Add sparc_elf64_vec and
2188 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2190 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
2191 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
2192 * configure.ac: Handle riscv_elf[32|64]_be_vec.
2193 * configure: Regenerate.
2194 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
2195 riscv_is_insn_reloc.
2196 (riscv_get_insn): RISC-V instructions are always little endian, but
2197 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
2199 (riscv_put_insn): Likewsie.
2200 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
2201 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
2202 use riscv_[get|put]_insn or bfd_[get|put].
2203 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
2204 or bfd_[get|put]l16 for code.
2205 (riscv_elf_relocate_section): Likewise.
2206 (riscv_elf_finish_dynamic_symbol): Likewise.
2207 (riscv_elf_finish_dynamic_sections): Likewise.
2208 (_bfd_riscv_relax_call): Likewise.
2209 (_bfd_riscv_relax_lui): Likewise.
2210 (_bfd_riscv_relax_align): Likewise.
2211 (_bfd_riscv_relax_pc): Likewise.
2212 (riscv_elf_object_p): Handled for big endian.
2213 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
2214 * targets.c: Add riscv_elf[32|64]_be_vec.
2215 (_bfd_target_vector): Likewise.
2217 2021-01-05 Alan Modra <amodra@gmail.com>
2219 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
2220 for relocatable executable.
2222 2021-01-05 Alan Modra <amodra@gmail.com>
2224 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
2226 2021-01-05 Nelson Chu <nelson.chu@sifive.com>
2228 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
2229 make sure gp symbol is output as a dynamic symbol.
2231 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2234 * elflink.c (compare_link_order): Place unordered sections before
2236 (elf_fixup_link_order): Add a link info argument. Allow mixed
2237 ordered and unordered input sections for non-relocatable link.
2238 Sort the consecutive bfd_indirect_link_order sections with the
2239 same pattern. Change the offsets of the bfd_indirect_link_order
2241 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
2242 * section.c (bfd_section): Add pattern.
2243 (BFD_FAKE_SECTION): Initialize pattern to NULL.
2244 * bfd-in2.h: Regenerated.
2246 2021-01-04 Alexander Fedotov <alfedotov@gmail.com>
2248 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
2249 of private flags with 0x.
2250 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
2252 2021-01-04 Alan Modra <amodra@gmail.com>
2255 * elflink.c (elf_link_input_bfd): Use the file base name in
2256 linker generated STT_FILE symbols.
2258 2021-01-04 Nelson Chu <nelson.chu@sifive.com>
2260 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
2261 * elfxx-riscv.h: Add declaration.
2262 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
2263 riscv_compare_subsets to check the orders.
2264 (riscv_skip_prefix): Removed.
2265 (riscv_prefix_cmp): Removed.
2267 2021-01-04 Alan Modra <amodra@gmail.com>
2270 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
2271 calculating subset version length.
2273 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2275 * xcofflink.c: Correct spelling in comments.
2277 2021-01-01 Alan Modra <amodra@gmail.com>
2279 Update year range in copyright notice of all files.
2281 For older changes see ChangeLog-2020
2283 Copyright (C) 2021-2022 Free Software Foundation, Inc.
2285 Copying and distribution of this file, with or without modification,
2286 are permitted in any medium without royalty provided the copyright
2287 notice and this notice are preserved.
2293 version-control: never