+2018-11-09 Claudiu Zissulescu <claziss@synopsys.com>
+
+ * arc-got.h (arc_get_local_got_ents): Revamp it; use
+ elf_local_got_ents to store the local got list.
+ (get_got_entry_list_for_symbo): Restructure it.
+ * elf32-arc.c (elf_arc_relocate_section): Correct the call to
+ get_got_entry_list_for_symbol.
+
+2018-11-07 Nick Clifton <nickc@redhat.com>
+
+ * po/fr.po: Updated French translation.
+ * po/pt.po: Updated Portuguese translation.
+
+2018-11-06 Roman Bolshakov <r.bolshakov@yadro.com>
+ Saagar Jha <saagar@saagarjha.com>
+
+ * mach-o.h: Add new enums for BFD_MACH_O_PLATFORM_MACOS,
+ BFD_MACH_O_PLATFORM_IOS, BFD_MACH_O_PLATFORM_TVOS,
+ BFD_MACH_O_PLATFORM_WATCHOS, BFD_MACH_O_PLATFORM_BRIDGEOS,
+ BFD_MACH_O_TOOL_CLANG, BFD_MACH_O_TOOL_SWIFT, BFD_MACH_O_TOOL_LD.
+ (struct bfd_mach_o_note_command): New.
+ (struct bfd_mach_o_build_version_tool): New.
+ (struct bfd_mach_o_build_version_command): New.
+ (bfd_mach_o_read_version_min): Don't split version into
+ a few fields. Rename reserved to sdk.
+ * mach-o.c (bfd_mach_o_read_version_min): Don't split version into a
+ few fields. Rename reserved to sdk.
+ (bfd_mach_o_read_command): Handle LC_VERSION_MIN_TVOS, LC_NOTE,
+ LC_BUILD_VERSION.
+ (bfd_mach_o_read_note): New.
+ (bfd_mach_o_read_build_version): New.
+
+2018-11-07 Yoshinori Sato <ysato@users.sourceforge.jp>
+
+ * config.bfd: Add rx-*-linux.
+ * congigure.ac: Likewise.
+ * elf32-rx.c (rx_linux_object_p): New function.
+ (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME)
+ (elf_backend_object_p, elf32_bed): Define rx-*-linux.
+ * targets.c: Add rx_elf32_linux_le_vec.
+ * configure: Regenerate.
+
+2018-11-06 Romain Margheriti <lilrom13@gmail.com>
+
+ PR 23742
+ * mach-o.c (bfd_mach_o_read_command): Accept and ignore
+ BFD_MACH_O_LC_LINKER_OPTIONS and BFD_MACH_O_LC_BUILD_VERSION
+ commands.
+
+2018-11-02 Alan Modra <amodra@gmail.com>
+
+ PR 23850
+ * elf.c (bfd_section_from_shdr): Treat SHF_ALLOC SHT_REL* sections
+ in an executable or shared library as normal sections.
+
+2018-10-31 Renlin Li <renlin.li@arm.com>
+
+ * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Don't create got
+ section for Local Exec TLS model.
+
+2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/23818
+ * elflink.c (_bfd_elf_link_assign_sym_version): Hide symbols
+ defined in discarded input sections.
+
+2018-10-24 Alan Modra <amodra@gmail.com>
+
+ * elf32-arm.c (elf32_arm_size_stubs): Ignore as-needed libs that
+ were not needed.
+
+2018-10-23 Alan Modra <amodra@gmail.com>
+
+ PR 23806
+ * merge.c (_bfd_add_merge_section): Don't attempt to merge
+ sections with ridiculously large alignments.
+
+2018-10-23 Alan Modra <amodra@gmail.com>
+
+ PR 23805
+ * elflink.c (elf_link_input_bfd): Don't segfault on finding
+ STT_TLS symbols without any TLS sections. Instead, change the
+ symbol type to STT_NOTYPE.
+
+2018-10-23 Alan Modra <amodra@gmail.com>
+
+ PR 23804
+ * merge.c (_bfd_add_merge_section): Don't attempt to merge
+ sections where size is not a multiple of entsize.
+
+2018-10-20 Alan Modra <amodra@gmail.com>
+
+ PR 23788
+ * elf.c (section_match): Don't require a size match for SHT_SYMTAB
+ or SHT_STRTAB.
+
+2018-10-17 Alan Modra <amodra@gmail.com>
+
+ PR 23653
+ * elflink.c (_bfd_elf_link_create_dynstrtab): Match elf_object_id
+ too when choosing dynobj.
+
+2018-10-16 Alan Modra <amodra@gmail.com>
+
+ * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Simplify
+ PE_DEBUG_DATA size checks.
+
+2018-10-16 Alan Modra <amodra@gmail.com>
+
+ PR 23781
+ * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Free data
+ before returning.
+
+2018-10-16 Alan Modra <amodra@gmail.com>
+
+ PR 23534
+ * init.c (bfd_init): Return an unsigned int.
+ bfd-in2.h: Regenerate.
+
+2018-10-15 Alan Modra <amodra@gmail.com>
+
+ PR 23534
+ * init.c (BFD_INIT_MAGIC): Define.
+ (bfd_init): Return BFD_INIT_MAGIC.
+ bfd-in2.h: Regenerate.
+
+2018-10-13 Alan Modra <amodra@gmail.com>
+
+ PR 23770
+ PR 23425
+ * reloc.c (_bfd_clear_contents): Replace "location" param with
+ "buf" and "off". Bounds check "off". Return status.
+ * cofflink.c (_bfd_coff_generic_relocate_section): Update
+ _bfd_clear_contents call.
+ * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Likewise.
+ * elf32-arc.c (elf_arc_relocate_section): Likewise.
+ * elf32-i386.c (elf_i386_relocate_section): Likewise.
+ * elf32-metag.c (metag_final_link_relocate): Likewise.
+ * elf32-nds32.c (nds32_elf_get_relocated_section_contents): Likewise.
+ * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
+ * elf32-visium.c (visium_elf_relocate_section): Likewise.
+ * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
+ * elf64-x86-64.c *(elf_x86_64_relocate_section): Likewise.
+ * libbfd-in.h (_bfd_clear_contents): Update prototype.
+ * libbfd.h: Regenerate.
+
+2018-10-09 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
+
+ * elflink.c (elf_link_output_extsym): Do not place symbols into a
+ discarded .dynsym.
+
+2018-10-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/23428
+ * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Don't
+ add GNU_PROPERTY_X86_FEATURE_2_NEEDED to force program header
+ in non-code PT_LOAD segment.
+
+2018-10-08 Alan Modra <amodra@gmail.com>
+
+ * elf-nacl.c (nacl_modify_segment_map): Cope with header PT_LOAD
+ lacking sections.
+ * elf.c (_bfd_elf_map_sections_to_segments): Assume file and
+ program headers are required when info->load_phdrs. Reorganize
+ code handling program headers. Generate a mapping without
+ sections just for file and program headers when -z separate-code
+ would indicate they should be on a different page to the first
+ section.
+
+2018-10-08 Alan Modra <amodra@gmail.com>
+
+ * elf.c (assign_file_positions_for_load_sections): Set p_vaddr
+ from m->p_vaddr_offset for segments without sections. Invert
+ sign of p_vaddr_offset.
+ (rewrite_elf_program_header, copy_elf_program_header): Save
+ old segment p_vaddr to p_vaddr_offset. Invert sign of
+ p_vaddr_offset.
+
+2018-10-08 Alan Modra <amodra@gmail.com>
+
+ * elf.c (get_program_header_size): Don't count PT_INTERP if
+ .interp is empty.
+ (_bfd_elf_map_sections_to_segments): Don't create PT_INTERP if
+ .interp is empty.
+
+2018-10-08 Alan Modra <amodra@gmail.com>
+
+ * elf32-spu.c (spu_elf_modify_segment_map): Don't insert
+ overlays before segment containing headers.
+
+2018-10-08 Alan Modra <amodra@gmail.com>
+
+ * elf.c (make_mapping): Cope with zero size array at end of
+ struct elf_segment_map.
+ (_bfd_elf_map_sections_to_segments): Likewise.
+ (rewrite_elf_program_header, copy_elf_program_header): Likewise.
+ (_bfd_elf_map_sections_to_segments): Rename phdr_index to hdr_index.
+
+2018-10-05 Alan Modra <amodra@gmail.com>
+
+ * elf32-spu.c (spu_elf_create_sections): Make .note.spu_name
+ SHT_NOTE.
+
+2018-10-05 Richard Henderson <rth@twiddle.net>
+
+ * bfd-in2.h: Regenerated.
+ * elf32-or1k.c: (or1k_elf_howto_table): Fix formatting for
+ R_OR1K_PLT26, Add R_OR1K_PCREL_PG21, R_OR1K_GOT_PG21,
+ R_OR1K_TLS_GD_PG21, R_OR1K_TLS_LDM_PG21, R_OR1K_TLS_IE_PG21,
+ R_OR1K_LO13, R_OR1K_GOT_LO13, R_OR1K_TLS_GD_LO13, R_OR1K_TLS_LDM_LO13,
+ R_OR1K_TLS_IE_LO13, R_OR1K_SLO13, R_OR1K_PLTA26.
+ (or1k_reloc_map): Add BFD_RELOC_OR1K_PCREL_PG21,
+ BFD_RELOC_OR1K_GOT_PG21, BFD_RELOC_OR1K_TLS_GD_PG21,
+ BFD_RELOC_OR1K_TLS_LDM_PG21, BFD_RELOC_OR1K_TLS_IE_PG21,
+ BFD_RELOC_OR1K_LO13, BFD_RELOC_OR1K_GOT_LO13,
+ BFD_RELOC_OR1K_TLS_GD_LO13, BFD_RELOC_OR1K_TLS_GD_LO13,
+ BFD_RELOC_OR1K_TLS_LDM_LO13, BFD_RELOC_OR1K_TLS_IE_LO13,
+ BFD_RELOC_OR1K_SLO13, BFD_RELOC_OR1K_PLTA26.
+ (elf_or1k_link_hash_table): Add field saw_plta.
+ (or1k_final_link_relocate): Add value calculations for new relocations.
+ (or1k_elf_relocate_section): Add section relocations for new
+ relocations.
+ (or1k_write_plt_entry): New function.
+ (or1k_elf_finish_dynamic_sections): Add support for PLTA relocations
+ using new l.adrp instruction. Cleanup PLT relocation code generation.
+ * libbfd.h: Regenerated.
+ * reloc.c: Add BFD_RELOC_OR1K_PCREL_PG21, BFD_RELOC_OR1K_LO13,
+ BFD_RELOC_OR1K_SLO13, BFD_RELOC_OR1K_GOT_PG21, BFD_RELOC_OR1K_GOT_LO13,
+ BFD_RELOC_OR1K_PLTA26, BFD_RELOC_OR1K_TLS_GD_PG21,
+ BFD_RELOC_OR1K_TLS_GD_LO13, BFD_RELOC_OR1K_TLS_LDM_PG21,
+ BFD_RELOC_OR1K_TLS_LDM_LO13, BFD_RELOC_OR1K_TLS_IE_PG21,
+ BFD_RELOC_OR1K_TLS_IE_LO13.
+
+2018-10-05 Richard Henderson <rth@twiddle.net>
+
+ * elf32-or1k.c (or1k_elf_relocate_section): Add error for unknown
+ relocations. Add error for non zero addend with plt and got
+ relocations. Add error for got and plt references against dynamic, non
+ local, symbols. Add error when linking non shared liraries with
+ flag_pic.
+
+2018-10-05 Richard Henderson <rth@twiddle.net>
+ Stafford Horne <shorne@gmail.com>
+
+ * bfd-in2.h: Regenerated.
+ * elf32-or1k.c (N_ONES): New macro.
+ (or1k_elf_howto_table): Fix R_OR1K_PLT26 to complain on overflow.
+ Add definitions for R_OR1K_TLS_TPOFF, R_OR1K_TLS_DTPOFF,
+ R_OR1K_TLS_DTPMOD, R_OR1K_AHI16, R_OR1K_GOTOFF_AHI16,
+ R_OR1K_TLS_IE_AHI16, R_OR1K_TLS_LE_AHI16, R_OR1K_SLO16,
+ R_OR1K_GOTOFF_SLO16, R_OR1K_TLS_LE_SLO16.
+ (or1k_reloc_map): Add entries for BFD_RELOC_HI16_S,
+ BFD_RELOC_LO16_GOTOFF, BFD_RELOC_HI16_GOTOFF, BFD_RELOC_HI16_S_GOTOFF,
+ BFD_RELOC_OR1K_TLS_IE_AHI16, BFD_RELOC_OR1K_TLS_LE_AHI16,
+ BFD_RELOC_OR1K_SLO16, BFD_RELOC_OR1K_GOTOFF_SLO16,
+ BFD_RELOC_OR1K_TLS_LE_SLO16.
+ (or1k_reloc_type_lookup): Change search loop to start ad index 0 and
+ also check results before returning.
+ (or1k_reloc_name_lookup): Simplify loop to use R_OR1K_max as index
+ limit.
+ (or1k_final_link_relocate): New function.
+ (or1k_elf_relocate_section): Add support for new AHI and SLO
+ relocations. Use or1k_final_link_relocate instead of generic
+ _bfd_final_link_relocate.
+ (or1k_elf_check_relocs): Add support for new AHI and SLO relocations.
+ * reloc.c: Add new enums for BFD_RELOC_OR1K_SLO16,
+ BFD_RELOC_OR1K_GOTOFF_SLO16, BFD_RELOC_OR1K_TLS_IE_AHI16,
+ BFD_RELOC_OR1K_TLS_IE_AHI16, BFD_RELOC_OR1K_TLS_LE_AHI16,
+ BFD_RELOC_OR1K_TLS_LE_SLO16. Remove unused BFD_RELOC_OR1K_GOTOFF_HI16
+ and BFD_RELOC_OR1K_GOTOFF_LO16.
+ * libbfd.h: Regenerated.
+
+2018-10-04 Jim Wilson <jimw@sifive.com>
+
+ * elfnn-riscv.c (riscv_elf_size_dynamic_sections): In dynobj->sections
+ loop, handle htab->sdyntdata section.
+
2018-10-04 Jose E. Marchesi <jose.marchesi@oracle.com>
* elf64-sparc.c (elf64_sparc_output_arch_syms): Do notcorrect the