+2017-10-12 Alan Modra <amodra@gmail.com>
+
+ * elf32-nds32.c (nds32_elf_size_dynamic_sections): Set .interp
+ when executable rather than non-PIC.
+ * elf32-score.c (s3_bfd_score_elf_size_dynamic_sections): Likewise.
+ * elf32-score7.c (s7_bfd_score_elf_size_dynamic_sections): Likewise.
+
+2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
+
+ * elf-bfd.h (elf_backend_data): Add `linux_prpsinfo64_ugid16'
+ member.
+ * elf-linux-core.h (elf_external_linux_prpsinfo64): Rename to...
+ (elf_external_linux_prpsinfo64_ugid32): ... this.
+ (swap_linux_prpsinfo32_out): Rename to...
+ (swap_linux_prpsinfo32_ugid32_out): ... this.
+ (elf_external_linux_prpsinfo64_ugid16): New structure.
+ (swap_linux_prpsinfo64_ugid16_out): New function.
+ * elfxx-target.h [!elf_backend_linux_prpsinfo64_ugid16]
+ (elf_backend_linux_prpsinfo64_ugid16): Define.
+ (elfNN_bed): Initialize `linux_prpsinfo64_ugid16' member.
+ * elf.c (elfcore_write_linux_prpsinfo64): Handle both variants
+ of the 64-bit Linux core PRPSINFO note.
+ * elf64-sh64.c (elf_backend_linux_prpsinfo64_ugid16): Define.
+
+2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
+
+ * elf-bfd.h (elf_backend_data): Add `linux_prpsinfo32_ugid16'
+ member.
+ (elfcore_write_ppc_linux_prpsinfo32): Remove prototype.
+ * elf32-ppc.c (elfcore_write_ppc_linux_prpsinfo32): Remove.
+ (elf_external_ppc_linux_prpsinfo32)
+ (swap_ppc_linux_prpsinfo32_out): Move to...
+ * elf-linux-core.h (elf_external_linux_prpsinfo32_ugid32)
+ (swap_linux_prpsinfo32_ugid32_out): ... these.
+ (elf_external_linux_prpsinfo32): Rename to...
+ (elf_external_linux_prpsinfo32_ugid16): ... this.
+ (swap_linux_prpsinfo32_out): Rename to...
+ (swap_linux_prpsinfo32_ugid16_out): ... this.
+ * elfxx-target.h [!elf_backend_linux_prpsinfo32_ugid16]
+ (elf_backend_linux_prpsinfo32_ugid16): Define.
+ (elfNN_bed): Initialize `linux_prpsinfo32_ugid16' member.
+ * elf.c (elfcore_write_linux_prpsinfo32): Handle both variants
+ of the 32-bit Linux core PRPSINFO note.
+ * elf32-am33lin.c (elf_backend_linux_prpsinfo32_ugid16): Define.
+ * elf32-arm.c (elf_backend_linux_prpsinfo32_ugid16): Define.
+ * elf32-cris.c (elf_backend_linux_prpsinfo32_ugid16): Define.
+ * elf32-frv.c (elf_backend_linux_prpsinfo32_ugid16): Define.
+ * elf32-i386.c (elf_backend_linux_prpsinfo32_ugid16): Define.
+ * elf32-m32r.c (elf_backend_linux_prpsinfo32_ugid16): Define.
+ * elf32-m68k.c (elf_backend_linux_prpsinfo32_ugid16): Define.
+ * elf32-s390.c (elf_backend_linux_prpsinfo32_ugid16): Define.
+ * elf32-sh.c (elf_backend_linux_prpsinfo32_ugid16): Define.
+ * elf32-sparc.c (elf_backend_linux_prpsinfo32_ugid16): Define.
+
+2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
+
+ * elf-linux-core.h (elf_external_linux_prpsinfo64): Move the
+ `gap' member ahead of `pr_flag'.
+
+2017-10-11 Pedro Alves <palves@redhat.com>
+
+ * bfd.c (_doprnt): Rename to ...
+ (_bfd_doprnt): ... this.
+ (error_handler_internal): Adjust.
+
+2017-10-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf32-i386.c (elf_i386_check_relocs): Set GOT refcount to 1
+ instead of incrementing it.
+ * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
+
+2017-10-10 Renlin Li <renlin.li@arm.com>
+
+ PR ld/21402
+ * elf32-arm.c (allocate_dynrelocs_for_symbol): Only make undefined weak
+ symbols into dynamic.
+
+2017-10-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/22274
+ * elfnn-riscv.c (riscv_elf_link_hash_table): Add max_alignment.
+ (riscv_elf_link_hash_table_create): Initialize max_alignment to
+ (bfd_vma) -1.
+ (_bfd_riscv_relax_section): Cache the max alignment of output
+ sections if possible.
+
+2017-10-10 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (ppc64_elf_before_check_relocs): Set sec_type for
+ .opd whenever .opd is present and non-zero size. Move code
+ setting abiversion to/from output file earlier. Only set
+ u.opd.func_sec when --gc-sections. Read relocs and set up
+ u.opd.func_sec values here..
+ (ppc64_elf_check_relocs): ..rather than here. Simplify opd
+ section tests.
+ (ppc64_elf_edit_opd): Don't set sec_type for .opd here.
+
+2017-10-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf-m10300.c (mn10300_elf_check_relocs): Don't free cached
+ isymbuf.
+
+2017-10-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf32-bfin.c (bfin_size_dynamic_sections): Don't create the
+ .interp section with "ld --no-dynamic-linker".
+
+2017-10-09 Alan Modra <amodra@gmail.com>
+
+ PR 22212
+ * dwarf2.c (_bfd_dwarf2_cleanup_debug_info): Free
+ funcinfo_hash_table and varinfo_hash_table.
+
+2017-10-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf32-sh.c (readonly_dynrelocs): Dump dynamic relocation
+ in read-only section with minfo.
+ (sh_elf_size_dynamic_sections): Likewise.
+
+2017-10-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Remove
+ a strayed comment.
+
+2017-10-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfxx-tilegx.c (tilegx_elf_finish_dynamic_sections): Set
+ this_hdr.sh_entsize only if section size > 0.
+
+2017-10-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfxx-x86.c (elf_x86_allocate_dynrelocs): Reformat.
+
+2017-10-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfxx-sparc.c (readonly_dynrelocs): Dump dynamic relocation
+ in read-only section with minfo.
+ (_bfd_sparc_elf_size_dynamic_sections): Likewise.
+
+2017-10-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfxx-x86.h (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Update
+ comments.
+
+2017-10-06 John Baldwin <jhb@FreeBSD.org>
+
+ * elf-bfd.h (struct elf_backend_data): Add
+ `elf_backend_grok_freebsd_prstatus'.
+ * elf.c (elfcore_grok_freebsd_note): Call
+ `elf_backend_grok_freebsd_prstatus' to handle NT_PRSTATUS if
+ present.
+ * elfn32-mips.c (elf_n32_mips_grok_freebsd_prstatus): New
+ function.
+ (elf_backend_grok_freebsd_prstatus): Define.
+ * elfxx-target.h (elf_backend_grok_freebsd_prstatus): Define.
+ (elfNN_bed): Initialize `elf_backend_grok_freebsd_prstatus'.
+
+2017-10-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf32-i386.c (elf_i386_check_relocs): Replace has_got_reloc
+ and has_non_got_reloc with zero_undefweak.
+ * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
+ * elfxx-x86.c (_bfd_x86_elf_link_hash_newfunc): Initialize
+ zero_undefweak to 1.
+ (_bfd_x86_elf_copy_indirect_symbol): Replace has_got_reloc and
+ has_non_got_reloc with zero_undefweak.
+ * elfxx-x86.h (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Replace
+ has_got_reloc and has_non_got_reloc with zero_undefweak.
+ (elf_x86_link_hash_entry): Likewise.
+
+2017-10-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfxx-x86.h (COPY_INPUT_RELOC_P): Add "do/while(0);".
+ (VERIFY_COPY_RELOC): Likewise.
+
+2017-10-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfxx-x86.h (VERIFY_COPY_RELOC): New.
+ * elf32-i386.c (elf_i386_finish_dynamic_symbol): Use it.
+ * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
+
+2017-10-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfxx-x86.h (VERIFY_PLT_ENTRY): New.
+ * elf32-i386.c (elf_i386_finish_dynamic_symbol): Use it.
+ * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
+
2017-10-06 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-x86.h (COPY_INPUT_RELOC_P): New.