+2020-03-17 Nick Clifton <nickc@redhat.com>
+
+ PR 25688
+ * elf.c (_bfd_elf_copy_special_section_fields): Replace assertions
+ with error messages.
+
+2020-03-17 Nick Clifton <nickc@redhat.com>
+
+ PR 25687
+ * elf.c (_bfd_elf_slurp_secondary_reloc_section): Remove redundant
+ free. Add free on another failure path.
+
+2020-03-16 Alan Modra <amodra@gmail.com>
+
+ PR 25675
+ * elf.c (elf_sort_segments): Don't call bfd_octets_per_byte unless
+ we have a non-zero section count. Do lma comparison in octets.
+
+2020-03-16 Alan Modra <amodra@gmail.com>
+
+ * vms-alpha.c (dst_restore_location): Validate index into
+ dst_ptr_offsets array before accessing. Return status.
+ (dst_retrieve_location): Similarly, making "loc" parameter a
+ pointer to return value.
+ (_bfd_vms_slurp_etir): Update calls to above functions.
+
+2020-03-14 Kamil Rytarowski <n54@gmx.com>
+
+ * configure.ac: Include netbsd-core.lo for all NetBSD arm and mips
+ targets.
+ * configure: Regenerated.
+
+2020-03-14 Alan Modra <amodra@gmail.com>
+
+ * section.c (BFD_FAKE_SECTIONS): Formatting.
+ * bfd-in2.h: Regenerate.
+
+2020-03-13 Kamil Rytarowski <n54@gmx.com>
+
+ * elf.c (elfcore_grok_netbsd_note): Add support for
+ NT_NETBSDCORE_LWPSTATUS notes.
+
+2020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
+
+ * bfd-in2.h: Regenerate.
+ * section.c (asection): Add already_assigned field.
+ (BFD_FAKE_SECTION): Add default initializer for it.
+ * ecoff.c (bfd_debug_section): Initialize already_assigned field.
+ * elf32-arm.c (arm_build_one_stub): Add support for
+ non_contiguous_regions.
+ * elf32-csky.c (csky_build_one_stub): Likewise.
+ * elf32-hppa.c (hppa_build_one_stub): Likewise.
+ * elf32-m68hc11.c (m68hc11_elf_build_one_stub): Likewise.
+ * elf32-m68hc12.c (m68hc12_elf_build_one_stub): Likewise.
+ * elf32-metag.c (metag_build_one_stub): Likewise.
+ * elf32-nios2.c (nios2_build_one_stub): Likewise.
+ * elf64-ppc.c (ppc_build_one_stub): Likewise.
+ (ppc_size_one_stub): Likewise.
+ * elfnn-aarch64.c (aarch64_build_one_stub): Likewise.
+ * elflink.c (elf_link_input_bfd): Likewise.
+
+2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/24920
+ * elf-linker-x86.h (elf_linker_x86_params): Add
+ static_before_all_inputs and has_dynamic_linker.
+ * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
+ dynamic input objects if -static is passed at command-line
+ before all input files without --dynamic-linker unless
+ --no-dynamic-linker is used.
+
+2020-03-13 Kamil Rytarowski <n54@gmx.com>
+
+ * elf.c (elfcore_grok_netbsd_note): Add support for aarch64.
+
+2020-03-13 Christian Eggers <ceggers@gmx.de>
+
+ * bfd.c (bfd_record_phdr): New local "opb". Fix assignment of
+ "p_paddr" from "at".
+ * elfcode.h (bfd_from_remote_memory): Add units to several
+ parameters. New local "opb". Fix usage of p_align. Fix
+ calculation of "localbase" from "ehdr_vma" and "p_vaddr". Fix
+ call of target_read_memory.
+ * elflink.c (elf_fixup_link_order): Fix scope of "s" local. Fix
+ calculation of "offset" and "output_offset".
+ (bfd_elf_final_link): New local "opb". Fix calculation of "size"
+ from "offset" and fix calculation of "end" from "vma+size". Fix
+ comparison between "sh_addr" and "vma"/"output_offset".
+ (bfd_elf_discard_info): Fix calculation of "eh_alignment".
+ * elf-bfd.h (struct elf_link_hash_table): Add unit to tls_size
+ member.
+ * elf.c (_bfd_elf_map_sections_to_segments): Add unit (bytes/
+ octets) to "wrap_to2 and "phdr_size" locals. Fix calculation of
+ "wrap_to" value. Add unit (bytes) to phdr_lma variable. Fix
+ assignment of p_paddr from phdr_lma. Fix comparison between
+ "lma+size" and "next->lma".
+ (elf_sort_segments): Fix assignment from p_paddr to lma.
+ (assign_file_positions_for_load_sections): Add unit (bytes) to
+ local "align". Fix calculation of local "off_adjust". Fix
+ calculation of local "filehdr_vaddr".
+ (assign_file_positions_for_non_load_sections): New local "opb".
+ Fix calculation of "end" from "p_size". Fix comparison between
+ "vma+SECTION_SIZE" and "start". Fix calculation of "p_memsz"
+ from "end" and "p_vaddr".
+ (rewrite_elf_program_header): Fix comparison between p_vaddr and
+ vma. Fix assignment to p_paddr from lma. Fix comparison between
+ p_paddr and lma. Fix assignment to p_paddr from lma.
+ * merge.c (sec_merge_emit): New local "opb". Convert
+ "alignment_power" to octets.
+ (_bfd_add_merge_section): New locals "alignment_power" and
+ "opb". Fix comparison between "alignment_power" and
+ "sizeof(align)".
+ (_bfd_merge_sections): New local "opb". Divide size by opb
+ before checking align mask.
+
+2020-03-13 Christian Eggers <ceggers@gmx.de>
+
+ * elf.c (_bfd_elf_make_section_from_shdr): Introduce new temp
+ opb. Divide Elf_Internal_Shdr::sh_addr by opb when setting
+ section LMA/VMA.
+ (_bfd_elf_make_section_from_phdr): Similarly.
+ (elf_fake_sections): Fix calculation of
+ Elf_Internal_shdr::sh_addr from section VMA.
+ (_bfd_elf_map_sections_to_segments): Fix mixup between octets
+ and bytes.
+ (assign_file_positions_for_load_sections): Fix calculations of
+ Elf_Internal_shdr::p_vaddr and p_paddr from section LMA/VMA. Fix
+ comparison between program header address and section LMA.
+ (assign_file_positions_for_non_load_sections): Likewise.
+ (rewrite_elf_program_header): Likewise. Introduce new temp opb.
+ (IS_CONTAINED_BY_VMA): Add parameter opb.
+ (IS_CONTAINED_BY_LMA,IS_SECTION_IN_INPUT_SEGMENT,
+ INCLUDE_SECTION_IN_SEGMENT): Likewise.
+ (copy_elf_program_header): Update call to ELF_SECTION_IN_SEGMENT.
+ Fix calculations of p_addr_valid and p_vaddr_offset.
+ * elflink.c (elf_link_add_object_symbols): Multiply section VMA
+ with octets per byte when comparing against p_vaddr.
+
+2020-03-11 Alan Modra <amodra@gmail.com>
+
+ * som.c (setup_sections): Sanity check subspace.name.
+
+2020-03-11 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (ppc64_elf_inline_plt): Do increment rel in for loop.
+
+2020-03-10 Alan Modra <amodra@gmail.com>
+
+ PR 25648
+ * ihex.c (ihex_write_object_contents): Don't assume ordering of
+ addresses here.
+
+2020-03-09 Alan Modra <amodra@gmail.com>
+
+ * wasm-module.c (wasm_scan): Sanity check file name length
+ before allocating memory. Move common section setup code. Do
+ without bfd_tell to calculate section size.
+
+2020-03-06 Nick Clifton <nickc@redhat.com>
+
+ * elf.c (_bfd_elf_set_section_contents): Replace call to abort
+ with error messages and failure return values.
+
+2020-03-05 Max Filippov <jcmvbkbc@gmail.com>
+
+ * elf32-xtensa.c (shrink_dynamic_reloc_sections): Shrink dynamic
+ relocation sections for any removed reference to a dynamic symbol.
+
+2020-03-05 Nick Clifton <nickc@redhat.com>
+
+ * elf-bfd.h (struct elf_backend_data): Add new fields:
+ init_secondary_reloc_section, slurp_secondary_reloc_section,
+ write_secondary_reloc_section.
+ (_bfd_elf_init_secondary_reloc_section): Prototype.
+ (_bfd_elf_slurp_secondary_reloc_section): Prototype.
+ (_bfd_elf_write_secondary_reloc_section): Prototype.
+ * elf.c ( bfd_section_from_shdr): Invoke the new
+ init_secondary_reloc_section backend function, if defined, when a
+ second reloc section is encountered.
+ (swap_out_syms): Invoke the new symbol_section_index function, if
+ defined, when computing the section index of an OS/PROC specific
+ symbol.
+ (_bfd_elf_init_secondary_reloc_section): New function.
+ (_bfd_elf_slurp_secondary_reloc_section): New function.
+ (_bfd_elf_write_secondary_reloc_section): New function.
+ (_bfd_elf_copy_special_section_fields): New function.
+ * elfcode.h (elf_write_relocs): Invoke the new
+ write_secondary_relocs function, if defined, in order to emit
+ secondary relocs.
+ (elf_slurp_reloc_table): Invoke the new slurp_secondary_relocs
+ function, if defined, in order to read in secondary relocs.
+ * elfxx-target.h (elf_backend_copy_special_section_fields):
+ Provide a non-NULL default definition.
+ (elf_backend_init_secondary_reloc_section): Likewise.
+ (elf_backend_slurp_secondary_reloc_section): Likewise.
+ (elf_backend_write_secondary_reloc_section): Likewise.
+ (struct elf_backend_data elfNN_bed): Add initialisers for the new
+ fields.
+ * configure.ac (score_elf32_[bl]e_vec): Add elf64.lo
+ * configure: Regenerate.
+
+2020-03-05 Alan Modra <amodra@gmail.com>
+
+ * archive64.c (_bfd_archive_64_bit_slurp_armap): Check parsed_size
+ against file size before allocating memory. Use bfd_alloc rather
+ than bfd_zalloc for carsym/strings memory.
+
+2020-03-04 Alan Modra <amodra@gmail.com>
+
+ * elf.c (elf_fake_sections): Ensure sh_addralign is such that
+ sh_addr mod sh_addalign is zero.
+
+2020-03-04 Alan Modra <amodra@gmail.com>
+
+ * format.c (bfd_check_format_matches): Call cleanup on error exit.
+
+2020-03-03 Alan Modra <amodra@gmail.com>
+
+ * format.c (struct bfd_preserve): Add cleanup field.
+ (bfd_preserve_save): Add cleanup param and save.
+ (bfd_preserve_restore): Return cleanup.
+ (bfd_preserve_finish): Call the cleanup for the discarded match.
+ (bfd_check_format_matches): Pass cleanup to bfd_preserve_save,
+ and clear when preserving a match. Restore cleanup too when
+ restoring that match.
+
+2020-03-02 Alan Modra <amodra@gmail.com>
+
+ * cisco-core.c (cisco_core_file_p): Return bfd_cleanup.
+ * hpux-core.c (hpux_core_core_file_p): Update prototype.
+ * sco5-core.c (sco5_core_file_p): Return bfd_cleanup.
+ (core_sco5_vec): Correct initialisers.
+
2020-03-02 Alan Modra <amodra@gmail.com>
* aix386-core.c (aix386_core_file_p): Return bfd_cleanup.