+2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com>
+
+ * targets.c (BFD_JUMP_TABLE_RELOCS): Add NAME##_set_reloc.
+ (struct bfd_target): New field _bfd_set_reloc.
+ * bfd.c (bfd_set_reloc): Call backend _set_bfd.
+ * reloc.c (_bfd_generic_set_reloc): New function.
+ * coffcode.h (coff_set_reloc): Define to _bfd_generic_set_reloc.
+ * nlm-target.h (nlm_set_reloc): Likewise.
+ * coff-rs6000.c (_bfd_xcoff_set_reloc): Likewise.
+ * aout-tic30.c (MY_set_reloc): Likewise.
+ * aout-target.h (MY_set_reloc): Likewise.
+ * elfxx-target.h (bfd_elfNN_set_reloc): Likewise.
+ * coff-alpha.c (_bfd_ecoff_set_reloc): Likewise.
+ * mach-o-target.c (bfd_mach_o_set_reloc): Likewise.
+ * vms-alpha.c (alpha_vms_set_reloc): Likewise.
+ * aout-adobe.c (aout_32_set_reloc): Likewise.
+ * bout.c (b_out_set_reloc): Likewise.
+ * coff-mips.c (_bfd_ecoff_set_reloc): Likewise.
+ * i386os9k.c (aout_32_set_reloc): Likewise.
+ * ieee.c (ieee_set_reloc): Likewise.
+ * oasys.c (oasys_set_reloc): Likewise.
+ * som.c (som_set_reloc): Likewise.
+ * versados.c (versados_set_reloc): Likewise.
+ * coff64-rs6000.c (rs6000_xcoff64_vec): Add
+ _bfd_generic_set_reloc.
+ (rs6000_xcoff64_aix_vec): LIkewise.
+ * libbfd.c (_bfd_norelocs_set_reloc): New function.
+ * libbfd-in.h: Prototype for _bfd_norelocs_set_reloc.
+ * i386msdos.c (msdos_set_reloc): Define to
+ _bfd_norelocs_set_reloc.
+ * elfcode.h (elf_set_reloc): Define.
+ * bfd-in2.h: Regenerated.
+
+2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/21481
+ * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Use .plt.bnd
+ for IFUNC function address.
+
+2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
+
+ * elf32-arc.c (FEATURE_LIST_NAME): Define.
+ (CONFLICT_LIST): Likewise.
+ (opcode/arc-attrs.h): Include.
+ (arc_elf_print_private_bfd_data): Print OSABI v4 flag.
+ (arc_extract_features): New file.
+ (arc_stralloc): Likewise.
+ (arc_elf_merge_attributes): Likewise.
+ (arc_elf_merge_private_bfd_data): Use object attributes.
+ (bfd_arc_get_mach_from_attributes): New function.
+ (arc_elf_object_p): Use object attributes.
+ (arc_elf_final_write_processing): Likewise.
+ (elf32_arc_obj_attrs_arg_type): New function.
+ (elf32_arc_obj_attrs_handle_unknown): Likewise.
+ (elf32_arc_section_from_shdr): Likewise.
+ (elf_backend_obj_attrs_vendor): Define.
+ (elf_backend_obj_attrs_section): Likewise.
+ (elf_backend_obj_attrs_arg_type): Likewise.
+ (elf_backend_obj_attrs_section_type): Likewise.
+ (elf_backend_obj_attrs_handle_unknown): Likewise.
+ (elf_backend_section_from_shdr): Likewise.
+
+2017-05-09 Andrew Goedhart <Andrewgoedhart@simplepowersolutions.co.za>
+
+ PR ld/21458
+ * elf32-arm.c (elf32_arm_final_link_relocate): Set the bottom bit
+ of the value when resolving a R_ARM_THM_ALU_PREL_11_0 relocation
+ and the destination is a Thumb symbol.
+
+2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf32-i386.c (elf_i386_get_synthetic_symtab): Add missing
+ initializer to silence GCC 4.2.
+ * lf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise.
+
+2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf64-x86-64.c (PLT_ENTRY_SIZE): Renamed to ...
+ (LAZY_PLT_ENTRY_SIZE): This.
+ (NON_LAZY_PLT_ENTRY_SIZE): New.
+ (elf_x86_64_plt0_entry): Renamed to ...
+ (elf_x86_64_lazy_plt0_entry): This.
+ (elf_x86_64_plt_entry): Renamed to ...
+ (elf_x86_64_lazy_plt_entry): This.
+ (elf_x86_64_bnd_plt0_entry): Renamed to ...
+ (elf_x86_64_lazy_bnd_plt0_entry): This.
+ (elf_x86_64_legacy_plt_entry): Removed.
+ (elf_x86_64_bnd_plt_entry): Renamed to ...
+ (elf_x86_64_lazy_bnd_plt_entry): This.
+ (elf_x86_64_legacy_plt2_entry): Renamed to ...
+ (elf_x86_64_non_lazy_plt_entry): This.
+ (elf_x86_64_bnd_plt2_entry): Renamed to ...
+ (elf_x86_64_non_lazy_bnd_plt_entry): This.
+ (elf_x86_64_eh_frame_plt): Renamed to ...
+ (elf_x86_64_eh_frame_lazy_plt): This.
+ (elf_x86_64_eh_frame_bnd_plt): Renamed to ...
+ (elf_x86_64_eh_frame_lazy_bnd_plt): This.
+ (elf_x86_64_eh_frame_plt_got): Renamed to ...
+ (elf_x86_64_eh_frame_non_lazy_plt): This.
+ (elf_x86_64_lazy_plt_layout): New.
+ (elf_x86_64_non_lazy_plt_layout): Likewise.
+ (elf_x86_64_plt_layout): Likewise.
+ (elf_x86_64_backend_data): Remove PLT layout information. Add
+ os for target system.
+ (GET_PLT_ENTRY_SIZE): Removed.
+ (elf_x86_64_lazy_plt): New.
+ (elf_x86_64_non_lazy_plt): Likewise.
+ (elf_x86_64_lazy_bnd_plt): Likewise.
+ (elf_x86_64_non_lazy_bnd_plt): Likewise.
+ (elf_x86-64_arch_bed): Updated.
+ (elf_x86_64_link_hash_table): Add plt, lazy_plt and non_lazy_plt.
+ (elf_x86_64_create_dynamic_sections): Removed.
+ (elf_x86_64_check_relocs): Don't check elf.dynobj. Don't call
+ _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section.
+ (elf_x86-64_adjust_dynamic_symbol): Updated.
+ (elf_x86_64_allocate_dynrelocs): Updated. Pass 0 as PLT header
+ size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate
+ size for PLT0 if there is no PLT0. Get plt_entry_size from
+ non_lazy_plt for non-lazy PLT entries.
+ (elf_x86_64_size_dynamic_sections): Updated. Get plt_entry_size
+ from non_lazy_plt for non-lazy PLT entries.
+ (elf_x86-64_relocate_section): Updated. Properly get PLT index
+ if there is no PLT0.
+ (elf_x86_64_finish_dynamic_symbol): Updated. Fill the first slot
+ in the PLT entry with generic PLT layout. Fill the non-lazy PLT
+ entries with non-lazy PLT layout. Don't fill the second and third
+ slots in the PLT entry if there is no PLT0.
+ (elf_x86_64_finish_dynamic_sections): Updated. Don't fill PLT0
+ if there is no PLT0. Set sh_entsize on the .plt.got section.
+ (compare_relocs): New.
+ (elf_x86_64_plt_type): Likewise.
+ (elf_x86_64_plt): Likewise.
+ (elf_x86_64_nacl_plt): New. Forward declaration.
+ (elf_x86_64_get_plt_sym_val): Removed.
+ (elf_x86_64_get_synthetic_symtab): Rewrite to check PLT sections
+ against all dynamic relocations.
+ (elf_x86_64_link_setup_gnu_properties): New function.
+ (elf_backend_create_dynamic_sections): Updated.
+ (elf_backend_setup_gnu_properties): New.
+ (elf_x86_64_nacl_plt): New.
+ (elf_x86_64_nacl_arch_bed): Updated.
+