+
+ Merge cegcc and mingw32ce target name changes from
+ CeGCC project:
+
+
+ * config.bfd: Add arm*-*-cegcc* target.
+
+
+ * config.bfd: Add arm-*-mingw32ce* target.
+
+
+ * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): New.
+ * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Likewise.
+ * elf32-i386.c (elf_i386_allocate_dynrelocs): Use it.
+ * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
+
+
+ * elf-bfd.h (_bfd_elf_create_ifunc_dyn_reloc): New.
+ * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Likewise.
+ * elf32-i386.c (elf_i386_check_relocs): Use it.
+ * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
+
+
+ * elf-bfd.h (elf_dyn_relocs): New.
+
+ * elf32-i386.c (elf_i386_dyn_relocs): Removed.
+ (elf_i386_link_hash_entry): Replace elf_i386_dyn_relocs with
+ elf_dyn_relocs.
+ (elf_i386_copy_indirect_symbol): Likewise.
+ (elf_i386_check_relocs): Likewise.
+ (elf_i386_gc_sweep_hook): Likewise.
+ (elf_i386_allocate_dynrelocs): Likewise.
+ (elf_i386_readonly_dynrelocs): Likewise.
+ (elf_i386_size_dynamic_sections): Likewise.
+
+ * elf64-x86-64.c (elf64_x86_64_dyn_relocs): Removed.
+ (elf64_x86_64_link_hash_entry): Replace elf64_x86_64_dyn_relocs
+ with elf_dyn_relocs.
+ (elf64_x86_64_copy_indirect_symbol): Updated.
+ (elf64_x86_64_check_relocs): Likewise.
+ (elf64_x86_64_gc_sweep_hook): Likewise.
+ (elf64_x86_64_adjust_dynamic_symbol): Likewise.
+ (elf64_x86_64_allocate_dynrelocs): Likewise.
+ (elf64_x86_64_readonly_dynrelocs): Likewise.
+ (elf64_x86_64_size_dynamic_sections): Likewise.
+
+
+ * elf32-arm.c (create_got_section): Get existing .rela.got
+ section.
+ * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise.
+ * elf32-lm32.c (create_got_section): Likewise.
+ * elf32-m32r.c (create_got_section): Likewise.
+ * elf32-ppc.c (ppc_elf_create_got): Likewise.
+ * elf32-s390.c (create_got_section): Likewise.
+ * elf32-sh.c (create_got_section): Likewise.
+ * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise.
+ * elf64-s390.c (create_got_section): Likewise.
+ * elfxx-sparc.c (create_got_section): Likewise.
+
+ * elflink.c (_bfd_elf_create_got_section): Properly initialize
+ the GOT size.
+
+
+ * elf-bfd.h (ELF_LOCAL_SYMBOL_HASH): New.
+
+ * elf32-i386.c (elf_i386_local_hash): Removed.
+ (elf_i386_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH.
+ (elf_i386_get_local_sym_hash): Likewise.
+
+ * elf64-x86-64.c (elf64_x86_64_local_hash): Removed.
+ (elf64_x86_64_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH.
+ (elf64_x86_64_get_local_sym_hash): Likewise.
+ * elfxx-ia64.c (elfNN_ia64_local_htab_hash): Likewise.
+ (get_local_sym_hash): Likewise.
+
+
+ * elfxx-ia64.c (elfNN_ia64_link_hash_table): Remove got_sec,
+ rel_got_sec and plt_sec.
+ (elfNN_ia64_relax_section): Updated.
+ (elfNN_ia64_create_dynamic_sections): Likewise.
+ (get_got): Likewise.
+ (allocate_dynrel_entries): Likewise.
+ (elfNN_ia64_size_dynamic_sections): Likewise.
+ (set_got_entry): Likewise.
+ (elfNN_ia64_choose_gp): Likewise.
+ (elfNN_ia64_relocate_section): Likewise.
+ (elfNN_ia64_finish_dynamic_symbol): Likewise.
+ (elfNN_ia64_finish_dynamic_sections): Likewise.
+
+
+ * elf32-spu.c (needs_ovl_stub): Respect .brinfo lrlive bits
+ also for calls.
+
+
+ * configure.in (elf): Add elf-ifunc.lo.
+
+ * configure: Regenerated.
+ * Makefile.in: Likewise.
+
+ * elf-bfd.h (elf_link_hash_table): Add sgot, sgotplt,
+ srelgot, splt, srelplt, igotplt, iplt, irelplt and irelifunc.
+
+ * elf32-i386.c (elf_i386_link_hash_table): Remove sgot,
+ sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and
+ irelifunc.
+ (elf_i386_link_hash_table_create): Likewise.
+ (elf_i386_create_dynamic_sections): Likewise.
+ (elf_i386_check_relocs): Likewise.
+ (elf_i386_allocate_dynrelocs): Likewise.
+ (elf_i386_size_dynamic_sections): Likewise.
+ (elf_i386_relocate_section): Likewise.
+ (elf_i386_finish_dynamic_symbol): Likewise.
+ (elf_i386_finish_dynamic_sections): Likewise.
+ (elf_i386_create_got_section): Removed.
+
+ * elf64-x86-64.c (elf64_x86_64_link_hash_table): Remove sgot,
+ sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and
+ irelifunc.
+ (elf64_x86_64_compute_jump_table_size): Updated.
+ (elf64_x86_64_link_hash_table_create): Likewise.
+ (elf64_x86_64_create_dynamic_sections): Likewise.
+ (elf64_x86_64_check_relocs): Likewise.
+ (elf64_x86_64_allocate_dynrelocs): Likewise.
+ (elf64_x86_64_size_dynamic_sections): Likewise.
+ (elf64_x86_64_relocate_section): Likewise.
+ (elf64_x86_64_finish_dynamic_symbol): Likewise.
+ (elf64_x86_64_finish_dynamic_sections): Likewise.
+ (elf64_x86_64_create_got_section): Removed.
+
+ * elflink.c (_bfd_elf_create_got_section): Use log_file_align
+ for pointer alignment. Set up section pointers.
+ (_bfd_elf_create_dynamic_sections): Likewise.
+ (_bfd_elf_create_ifunc_sections): Moved to ...
+ * elf-ifunc.c: Here. New.
+
+ * Makefile.am (BFD32_BACKENDS): Add elf-ifunc.lo.
+ (BFD32_BACKENDS_CFILES): Add elf-ifunc.c.
+ Run "make dep-am".
+
+
+ * elf32-arm.c (cortex_a8_erratum_scan): Change type of offset
+ to bfd_signed_vma. Cast constant operands which are used in
+ offset related expressions to bfd_signed_vma type as appropriate.
+
+
+ * elf32-vax.c (elf_vax_plt_sym_val): New function.
+ (elf_backend_plt_sym_val): Define.
+
+
+ * elf32-vax.c (elf_vax_reloc_type_class): New function.
+ (elf_backend_reloc_type_class): Define.
+
+
+ * elf32-vax.c (elf_vax_relocate_section): For symbol references
+ from an executable to a shared library treat R_VAX_PC32
+ relocations as R_VAX_PLT32 ones.
+
+
+ * elf32-vax.c (elf_vax_instantiate_got_entries): Skip local
+ symbols in GOT space calculation.
+ (elf_vax_relocate_section): Adjust accordingly.
+
+
+ * elf32-vax.c (elf_vax_plt_entry): Set the entry mask to
+ include <R11:R2>.
+
+
+ * elf32-vax.c (elf_vax_check_relocs): Handle the visibility
+ attribute.
+ (elf_vax_relocate_section): Likewise.
+
+
+ * elf32-i386.c (elf_i386_allocate_dynrelocs): Update comments.
+ * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
+
+
+ * elf32-i386.c (elf_i386_check_relocs): Reformat.
+ * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
+
+
+ * Makefile.am: Run "make dep-am".
+ * Makefile.in: Regenerated.
+
+
+ * elf32-i386.c (elf_i386_allocate_dynrelocs): Fix a typo.
+ * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
+
+
+ * po/ru.po: New Russian translation.
+ * configure.in (ALL_LINGUAS): Add ru.
+ * configure: Regenerate.
+
+
+ * elf32-i386.c: Remove duplicated comments.
+
+
+ PR ld/10270
+ * elf32-i386.c (elf_i386_allocate_dynrelocs): Disallow
+ dynamic IFUNC pointer in non-shared object. Use .got.plt
+ for IFUNC definition in PIE.
+ (elf_i386_allocate_dynrelocs): Resolve IFUNC definition in
+ PIE locally.
+
+ * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Disallow
+ dynamic IFUNC pointer in non-shared object. Use .got.plt
+ for IFUNC definition in PIE.
+ (elf64_x86_64_relocate_section): Resolve IFUNC definition in
+ PIE locally.
+
+
+ * elf32-i386.c (elf_i386_check_relocs): Properly report
+ local symbol for unhandled relocation against STT_GNU_IFUNC
+ symbol.
+ (elf_i386_relocate_section): Likewise.
+ * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
+ (elf64_x86_64_relocate_section): Likewise.
+
+
+ PR ld/10269
+ * elf32-i386.c: Include "objalloc.h" and "hashtab.h".
+ (elf_i386_link_hash_table): Add loc_hash_table and
+ loc_hash_memory.
+ (elf_i386_local_hash): New.
+ (elf_i386_local_htab_hash): Likewise.
+ (elf_i386_local_htab_eq): Likewise.
+ (elf_i386_get_local_sym_hash): Likewise.
+ (elf_i386_link_hash_table_free): Likewise.
+ (elf_i386_allocate_local_dynrelocs): Likewise.
+ (elf_i386_finish_local_dynamic_symbol): Likewise.
+ (bfd_elf64_bfd_link_hash_table_free): Likewise.
+ (elf_i386_link_hash_table_create): Create loc_hash_table and
+ loc_hash_memory.
+ (elf_i386_check_relocs): Handle local STT_GNU_IFUNC symbols.
+ (elf_i386_size_dynamic_sections): Likewise.
+ (elf_i386_relocate_section): Likewise.
+ (elf_i386_finish_dynamic_sections): Likewise.
+ (elf_i386_finish_dynamic_symbol): Check _DYNAMIC only if sym
+ isn't NULL.
+
+ * elf64-x86-64.c: Include "objalloc.h" and "hashtab.h".
+ (elf64_x86_64_link_hash_table): Add loc_hash_table and
+ loc_hash_memory.
+ (elf64_x86_64_local_hash): New.
+ (elf64_x86_64_local_htab_hash): Likewise.
+ (elf64_x86_64_local_htab_eq): Likewise.
+ (elf64_x86_64_get_local_sym_hash): Likewise.
+ (elf64_x86_64_link_hash_table_free): Likewise.
+ (elf64_x86_64_allocate_local_dynrelocs): Likewise.
+ (elf64_x86_64_finish_local_dynamic_symbol): Likewise.
+ (bfd_elf64_bfd_link_hash_table_free): Likewise.
+ (elf64_x86_64_link_hash_table_create): Create loc_hash_table
+ and loc_hash_memory.
+ (elf64_x86_64_check_relocs): Handle local STT_GNU_IFUNC
+ symbols.
+ (elf64_x86_64_size_dynamic_sections): Likewise.
+ (elf64_x86_64_relocate_section): Likewise.
+ (elf64_x86_64_finish_dynamic_sections): Likewise.
+ (elf64_x86_64_finish_dynamic_symbol): Check _DYNAMIC only if
+ sym isn't NULL.
+
+
+ * elf32-arm.c (elf32_arm_fix_exidx_coverage): Avoid crash if
+ elf_sec->this_hdr == NULL.
+
+
+ * reloc.c: Add BFD_RELOC_MACH_O_SECTDIFF and BFD_RELOC_MACH_O_PAIR.
+ * bfd-in2.h: Regenerated.
+ * libbfd.h: Regenerated.
+
+ * mach-o.c (FILE_ALIGN): New macro.
+ (bfd_mach_o_canonicalize_symtab): Adjust for bfd_mach_o_asymbol.
+ (bfd_mach_o_print_symbol): Ditto.
+ (bfd_mach_o_scan_write_thread): Adjust type of variable offset.
+ (bfd_mach_o_get_reloc_upper_bound): New function.
+ (bfd_mach_o_canonicalize_reloc): Ditto.
+ (bfd_mach_o_scan_write_relocs): Ditto.
+ (bfd_mach_o_scan_write_section_32): Remove offset argument.
+ (bfd_mach_o_scan_write_section_64): Ditto.
+ (bfd_mach_o_scan_write_segment_32): Write relocs. Fix size of data
+ written for load command. Do not compute section file offset.
+ (bfd_mach_o_scan_write_segment_64): Ditto.
+ (bfd_mach_o_scan_write_symtab): Compute file offset first.
+ Adjust for bfd_mach_o_asymbol. Move code to convert from BFD to
+ Mach-O to ...
+ (bfd_mach_o_mangle_symbols): ... this new function.
+ (bfd_mach_o_write_contents): Be sure to habe load commands built.
+ Call bfd_mach_o_mangle_symbols.
+ (bfd_mach_o_build_commands): Adjust for filelen field.
+ Use FILE_ALIGN macro. Clear section file offset if section is empty.
+ Do not set symtab file offset anymore here.
+ (bfd_mach_o_make_empty_symbol): Allocate a bfd_mach_o_asymbol.
+ (bfd_mach_o_make_bfd_section): Set SEC_RELOC if has reloc.
+ Set reloc_count and rel_filepos section fields.
+ (bfd_mach_o_scan_read_section_32): Type of argument offset is now
+ unsigned int.
+ (bfd_mach_o_scan_read_section_64): Ditto.
+ (bfd_mach_o_scan_read_section): Ditto.
+ (bfd_mach_o_scan_read_symtab_symbol): Typr of argument s is now
+ bfd_mach_o_asymbol. Use unsigned int for file offset type.
+ (bfd_mach_o_scan_read_symtab_symbol): Adjust for bfd_mach_o_asymbol.
+ Handle weak-ref symbols.
+ (bfd_mach_o_scan_read_symtab_symbols): Adjust for bfd_mach_o_asymbol.
+ (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
+ (bfd_mach_o_scan): Remove assignment to removed field.
+ (bfd_mach_o_mkobject_init): Ditto.
+ (bfd_mach_o_bfd_print_private_bfd_data): Adjust printf formatter.
+ (bfd_mach_o_bfd_reloc_type_lookup): New macro.
+ (bfd_mach_o_bfd_reloc_name_lookup): Ditto.
+ (bfd_mach_o_swap_reloc_in): Ditto.
+ (bfd_mach_o_swap_reloc_out): Ditto.
+
+ * mach-o.h (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_NON_LAZY)
+ (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_LAZY)
+ (BFD_MACH_O_REFERENCE_FLAG_DEFINED)
+ (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_DEFINED)
+ (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY)
+ (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY)
+ (BFD_MACH_O_REFERENCED_DYNAMICALLY, BFD_MACH_O_N_DESC_DISCARDED)
+ (BFD_MACH_O_N_NO_DEAD_STRIP, BFD_MACH_O_N_WEAK_REF)
+ (BFD_MACH_O_N_WEAK_DEF): New macros.
+ Add comments.
+ (bfd_mach_o_section_type): Add new enumeration values.
+ (BFD_MACH_O_S_SELF_MODIFYING_CODE)
+ (BFD_MACH_O_S_ATTR_LIVE_SUPPORT)
+ (BFD_MACH_O_S_ATTR_NO_DEAD_STRIP)
+ (BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS, BFD_MACH_O_S_ATTR_NO_TOC): New
+ macros.
+ (BFD_MACH_O_GENERIC_RELOC_VANILLA)
+ (BFD_MACH_O_GENERIC_RELOC_PAIR)
+ (BFD_MACH_O_GENERIC_RELOC_SECTDIFF)
+ (BFD_MACH_O_GENERIC_RELOC_PB_LA_PTR)
+ (BFD_MACH_O_GENERIC_RELOC_LOCAL_SECTDIFF): Ditto.
+ (BFD_MACH_O_RELENT_SIZE): Ditto.
+ (BFD_MACH_O_R_PCREL, BFD_MACH_O_GET_R_LENGTH)
+ (BFD_MACH_O_R_EXTERN, BFD_MACH_O_GET_R_TYPE)
+ (BFD_MACH_O_GET_R_SYMBOLNUM, BFD_MACH_O_SET_R_LENGTH)
+ (BFD_MACH_O_SET_R_TYPE, BFD_MACH_O_SET_R_SYMBOLNUM): Ditto.
+ (BFD_MACH_O_SR_SCATTERED, BFD_MACH_O_SR_PCREL)
+ (BFD_MACH_O_GET_SR_LENGTH, BFD_MACH_O_GET_SR_TYPE)
+ (BFD_MACH_O_GET_SR_ADDRESS, BFD_MACH_O_SET_SR_LENGTH)
+ (BFD_MACH_O_SET_SR_TYPE, BFD_MACH_O_SET_SR_ADDRESS): Ditto.
+ (bfd_mach_o_reloc_info): New struct.
+ (bfd_mach_o_asymbol): New struct.
+ (bfd_mach_o_symtab_command): The symbols field is now of type
+ bfd_mach_o_asymbol.
+ (bfd_mach_o_load_command): The offset and len fields are now of type
+ unsigned int.
+ (mach_o_data_struct): Remove symbols, nsymbols and ibfd fields.
+ Add a filelen field. Add comments.
+ (bfd_mach_o_backend_data): New struct.
+ (bfd_mach_o_get_backend_data): New macro.
+ (bfd_mach_o_scan_read_symtab_symbol): Parameter symbol now of type
+ bfd_mach_o_asymbol.
+ (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
+ (bfd_mach_o_get_reloc_upper_bound): New prototype.
+ (bfd_mach_o_canonicalize_reloc): Ditto.
+
+ * mach-o-target.c (bfd_mach_o_bfd_is_local_label_name): Remove
+ duplicated macro. Now defined to _bfd_generic_is_local_label.
+ (TARGET_NAME_BACKEND): New macro...
+ (TARGET_NAME_BACKEND): ... used to name a new variable.
+ (TARGET_NAME): Define relocs table using bfd_mach_o, reference
+ Mach-O backend data.
+
+ * mach-o-i386.c (i386_howto_table): New variable.
+ (bfd_mach_o_i386_swap_reloc_in): New function.
+ (bfd_mach_o_i386_swap_reloc_out): Ditto.
+ (bfd_mach_o_i386_bfd_reloc_type_lookup): Ditto.
+ (bfd_mach_o_i386_bfd_reloc_name_lookup): Ditto.
+ (bfd_mach_o_swap_reloc_in, bfd_mach_o_swap_reloc_out): New macros.
+ (bfd_mach_o_bfd_reloc_type_lookup)
+ (bfd_mach_o_bfd_reloc_name_lookup): Ditto.
+
+
+ * opncls.c (_maybe_make_executable): New function. Gives execute
+ permission to an executable bfd that was opened for writing
+ provided that it is a regular file. Replaces common code found in...
+ (bfd_close): here and ...
+ (bfd_close_all_done): here.
+
+
+ * reloc.c: Add BFD_RELOC_MOXIE_10_PCREL.
+ * bfd-in2.h: Rebuilt.
+ * libbfd.h: Rebuilt.
+ * elf32-moxie.c (moxie_elf_howto_table): Add R_MOXIE_PCREL10
+ relocation support.
+ (moxie_reloc_map): Ditto.
+ Clean up copyright notice.
+
+
+ * bfd-in2.h: bfd_mmap prototype.
+ * bfdio.c (bfd_mmap): New function.
+ * libbfd.h (bfd_iovec): Add bmmap.
+ * cache.c (cache_bmmap): New function.
+ (cache_iovec): Initialize bmmap member.
+ * opencls.c (opncls_bmmap): New function.
+ (opncls_iovec): Initialize bmmap member.
+
+
+ * mach-o.h (bfd_mach_o_symtab_command): Remove stabs_segment
+ and stabstr_segment fields.
+ (mach_o_be_vec, mach_o_le_vec): Removed
+ (bfd_mach_o_version): New prototype.
+
+ * mach-o.c (bfd_mach_o_version): Make this function public.
+ (mach_o_wide_p): New function.
+ (bfd_mach_o_wide_p): Ditto.
+ (bfd_mach_o_convert_section_name_to_bfd): Add prefix only for
+ weird names.
+ (bfd_mach_o_convert_section_name_to_mach_o): Fix typo in comment.
+ Search in the list only if the name starts with a dot.
+ (bfd_mach_o_write_header): Use mach_o_wide_p instead of hard-coded
+ test. Check bfd_seek status.
+ (bfd_mach_o_scan_write_thread): Check bfd_seek status.
+ (bfd_mach_o_scan_write_section_32): Ditto.
+ (bfd_mach_o_scan_write_section_64): Ditto.
+ (bfd_mach_o_scan_write_section): Removed.
+ (bfd_mach_o_scan_write_segment): Split into ...
+ (bfd_mach_o_scan_write_segment_32): ... this and ...
+ (bfd_mach_o_scan_write_segment_64): ... this. Check bfd_seek status.
+ (bfd_mach_o_scan_write_symtab_symbols): Moved into ...
+ (bfd_mach_o_scan_write_symtab): ... this. Write symtab from BFD
+ symbol table. Now returns a boolean.
+ (bfd_mach_o_write_contents): Set filetype. Check bfd_seek status.
+ Adjust for status type.
+ (bfd_mach_o_build_commands): Use mach_o_wide_p instead of hard-coded
+ test. Write symbol table. Numbers the sections.
+ (bfd_mach_o_read_header): Check bfd_seek status.
+ Use mach_o_wide_p instead of hard-coded test.
+ (bfd_mach_o_scan_read_section_32): Check bfd_seek status.
+ (bfd_mach_o_scan_read_section_64): Ditto.
+ (bfd_mach_o_scan_read_symtab_symbol): Ditto. Check bfd_seek status.
+ Use BFD_MACH_O_N_TYPE instead of hard-coded value. Correctly
+ handled common symbols.
+ (bfd_mach_o_scan_read_symtab_strtab): Check bfd_seek status.
+ (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
+ (bfd_mach_o_scan_read_dylinker): Ditto.
+ (bfd_mach_o_scan_read_dylib): Ditto.
+ (bfd_mach_o_scan_read_thread): Ditto.
+ (bfd_mach_o_scan_read_symtab): Ditto.
+ Do not create a section for the stabs.
+ (bfd_mach_o_scan_read_uuid): Check bfd_seek status.
+ (bfd_mach_o_scan_read_segment): Ditto.
+ (bfd_mach_o_scan_read_command): Ditto.
+ (bfd_mach_o_scan_start_address): Ditto.
+ (bfd_mach_o_scan): Use mach_o_wide_p instead of hard-coded test.
+ (bfd_mach_o_archive_p): Check bfd_seek status.
+ (bfd_mach_o_core_fetch_environment): Ditto.
+
+ * mach-o-i386.c (bfd_mach_o_i386_mkobject): Don't set filetype.
+
+
+ * elf32-i386.c (elf_i386_link_hash_table): Add irelifunc.
+ (elf_i386_link_hash_table_create): Initialize irelifunc.
+ (elf_i386_check_relocs): Updated. Set up irelifunc for
+ shared objects.
+ (elf_i386_allocate_dynrelocs): Use irelifunc for dynamic
+ relocation for non-GOT reference of STT_GNU_IFUNC symbol in
+ shared objects.
+ (elf_i386_relocate_section): Likewise.
+
+ * elf64-x86-64.c (elf64_x86_64_link_hash_table): Add irelifunc.
+ (elf64_x86_64_link_hash_table_create): Initialize irelifunc.
+ (elf64_x86_64_check_relocs): Updated. Set up irelifunc for
+ shared objects.
+ (elf64_x86_64_allocate_dynrelocs): Use irelifunc for dynamic
+ relocation for non-GOT reference of STT_GNU_IFUNC symbol in
+ shared objects.
+ (elf64_x86_64_relocate_section): Likewise.
+
+ * elf-bfd.h (_bfd_elf_create_static_ifunc_sections): Renamed to
+ ...
+ (_bfd_elf_create_ifunc_sections): This.
+
+ * elflink.c (_bfd_elf_create_static_ifunc_sections): Renamed to
+ ...
+ (_bfd_elf_create_ifunc_sections): This. Create .rel[a].ifunc
+ for shared objects.
+
+
+ * elf32-i386.c (elf_i386_check_relocs): Make room for dynamic
+ relocation for R_386_32 against STT_GNU_IFUNC symbol when
+ building shared object. Check info->executable instead of
+ !info->shared when setting non_got_ref.
+ (elf_i386_allocate_dynrelocs): Allocate dynamic relocation
+ for non-GOT reference of STT_GNU_IFUNC symbol in shared
+ object. Allocate GOT relocation agsinst STT_GNU_IFUNC
+ symbol if needed.
+ (elf_i386_relocate_section): Output dynamic relocation for
+ R_386_32 against STT_GNU_IFUNC symbol to get the real
+ function address when building shared object.
+ (elf_i386_finish_dynamic_symbol): Output R_386_GLOB_DAT
+ relocation for STT_GNU_IFUNC symbol in shared object.
+
+ * elf64-x86-64.c (elf64_x86_64_check_relocs): Make room for
+ dynamic relocation for R_X86_64_64 against STT_GNU_IFUNC
+ symbol when building shared object. Check info->executable
+ instead of !info->shared when setting non_got_ref.
+ (elf64_x86_64_allocate_dynrelocs): Allocate dynamic relocation
+ for non-GOT reference of STT_GNU_IFUNC symbol in shared
+ library. Allocate GOT relocation agsinst STT_GNU_IFUNC symbol
+ if needed.
+ (elf64_x86_64_relocate_section): Output dynamic relocation
+ for R_X86_64_64 against STT_GNU_IFUNC symbol to get the real
+ function address when building shared object.
+ (elf64_x86_64_finish_dynamic_symbol): Output R_X86_64_GLOB_DAT
+ relocation for STT_GNU_IFUNC symbol in shared object.
+
+
+ * Makefile.am: Run "make dep-am".
+ (BFD32_BACKENDS): Add mach-o-i386.lo.
+ (BFD32_BACKENDS_CFILES): Add mach-o-i386.c.
+ * Makefile.in: Regenerate.
+
+
+ * elf32-spu.c (spu_elf_relocate_section): Match overlay number
+ when looking for soft-icache stubs.
+
+
+ * mach-o.h: Update copyright year.
+ (bfd_mach_o_mach_header_magic): New enum.
+ (bfd_mach_o_cpu_subtype): Now an enum.
+ (BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros.
+ (BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto.
+ (BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto.
+ (bfd_mach_o_load_command): Field type_required is now a boolean.
+ Reindent prototypes.
+ (bfd_mach_o_object_p, bfd_mach_o_core_p): Remove.
+ (bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype.
+ (bfd_mach_o_bfd_copy_private_section_data): Ditto.
+ (bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
+ (bfd_mach_o_get_symtab_upper_bound): Ditto.
+ (bfd_mach_o_canonicalize_symtab): Ditto.
+ (bfd_mach_o_get_symbol_info): Ditto.
+ (bfd_mach_o_print_symbol): Ditto.
+ (bfd_mach_o_bfd_print_private_bfd_data): Ditto.
+ (bfd_mach_o_make_empty_symbol): Ditto.
+ (bfd_mach_o_write_contents): Ditto.
+
+ * mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p,
+ bfd_mach_o_mkobject): Defines.
+ (bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1.
+ Do not check with target vector but with flavour.
+ (struct mach_o_section_name_xlat): New declaration.
+ (dwarf_section_names_xlat): Ditto.
+ (text_section_names_xlat): Ditto.
+ (data_section_names_xlat): Ditto.
+ (struct mach_o_segment_name_xlat): Ditto.
+ (segsec_names_xlat): Ditto.
+ (bfd_mach_o_convert_section_name_to_bfd): New function.
+ (bfd_mach_o_convert_section_name_to_mach_o): Ditto.
+ (bfd_mach_o_bfd_copy_private_symbol_data): Make it public.
+ (bfd_mach_o_bfd_copy_private_section_data): Ditto.
+ (bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
+ Accept any input and output flavour. Do not share private data
+ anymore.
+ (bfd_mach_o_count_symbols): Add a comment.
+ (bfd_mach_o_get_symtab_upper_bound): Make it public.
+ (bfd_mach_o_canonicalize_symtab): Ditto.
+ (bfd_mach_o_get_symbol_info): Ditto.
+ (bfd_mach_o_print_symbol): Ditto.
+ (bfd_mach_o_write_header): Now returns a boolean instead of an int.
+ Use constants instead of hard-coded values.
+ (bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded
+ values.
+ (bfd_mach_o_scan_write_section_64): Ditto.
+ (bfd_mach_o_scan_write_segment): Ditto.
+ Do not copy sections anymore.
+ (bfd_mach_o_write_contents): Make it public.
+ Remove dead code. Rewrite typeflag assignment.
+ (bfd_mach_o_build_commands): New function.
+ (bfd_mach_o_set_section_contents): Ditto.
+ (bfd_mach_o_make_empty_symbol): Make it public.
+ (bfd_mach_o_read_header): Make it static.
+ Convert to bfd_boolean.
+ Use constants instead of hard-coded values.
+ (bfd_mach_o_make_bfd_section): Call
+ bfd_mach_o_convert_section_name_to_bfd to create name.
+ (bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded
+ values.
+ (bfd_mach_o_scan_read_section_64): Ditto.
+ (bfd_mach_o_scan_read_segment): Do not create a bfd section for
+ a segment anymore. Use constants instead of hard-coded values.
+ (bfd_mach_o_scan_read_command): Fix style.
+ (bfd_mach_o_scan): Use constants instead of hard-coded values.
+ Get rid of BFD_IO_FUNCS.
+ (bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject.
+ (bfd_mach_o_header_p): Created from bfd_mach_o_object_p.
+ (bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p.
+ (bfd_mach_o_object_p): Removed.
+ (bfd_mach_o_gen_core_p): New function, replaces ...
+ (bfd_mach_o_core_p): ... deleted.
+ (bfd_mach_o_bfd_print_private_bfd_data): Make it public.
+
+ * mach-o-i386.c: New file.
+ * config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin.
+ * configure.in (TDEFINES): Add mach_o_i386_vec.
+ * configure: Regenerated.
+ * targets.c: Add mach_o_i386_vec.
+
+ * mach-o.c: Update copyright years.
+ (BFD_IO_FUNCS): Remove (was not used).
+ (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap
+ bfd_mach_o_slurp_extended_name_table,
+ bfd_mach_o_construct_extended_name_table,
+ bfd_mach_o_truncate_arname, bfd_mach_o_write_armap,
+ bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt,
+ bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup,
+ bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook,
+ bfd_mach_o_get_section_contents_in_window,
+ bfd_mach_o_bfd_is_local_label_name,
+ bfd_mach_o_bfd_is_target_special_symbol,
+ bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno,
+ bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info,
+ bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols,
+ bfd_mach_o_minisymbol_to_symbol,
+ bfd_mach_o_bfd_get_relocated_section_contents,
+ bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create,
+ bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols,
+ bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link,
+ bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach,
+ bfd_mach_o_bfd_merge_private_bfd_data,
+ bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents,
+ bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections,
+ bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group,
+ bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol,
+ bfd_mach_o_bfd_copy_private_header_data,
+ bfd_mach_o_core_file_matches_executable_p): Move these defines ...
+ * mach-o-target.c: ... here.
+ Update copyright years.
+
+
+ * dep-in.sed: Don't use \n in replacement part of s command.
+ * Makefile.am (DEP1): LC_ALL for uniq.
+ Run "make dep-am".
+ * Makefile.in: Regenerate.
+
+
+ * elf32-i386.c (elf_i386_allocate_dynrelocs): Remove check of
+ h->plt.refcount > 0 on STT_GNU_IFUNC symbol.
+ * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
+
+
+ * elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate
+ GOT entry for STT_GNU_IFUNC symbol with pointer equality.
+ (elf_i386_relocate_section): Adjust R_386_GOT32 relocation
+ against STT_GNU_IFUNC symbols for static executables.
+ (elf_i386_finish_dynamic_symbol): Load GOT entry with
+ PLT entry for STT_GNU_IFUNC symbol with pointer equality.
+
+ * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Allocate
+ GOT entry for STT_GNU_IFUNC symbol with pointer equality.
+ (elf64_x86_64_finish_dynamic_symbol): Load GOT entry with
+ PLT entry for STT_GNU_IFUNC symbol with pointer equality.
+
+
+ * coff-rs6000.c (xcoff_ppc_relocate_section): Allow undefined
+ symbols to be left unimported when linking statically.
+ * xcofflink.c (xcoff_link_add_symbols): Ignore global linkage
+ code when linking statically.
+
+
+ * elf32-i386.c (elf_i386_check_relocs): Increment
+ got.refcount for R_386_GOT32/R_386_GOTOFF relocations
+ against STT_GNU_IFUNC symbol.
+ (elf_i386_allocate_dynrelocs): Set got.refcount to 0 if
+ local STT_GNU_IFUNC definition is used.
+ (elf_i386_relocate_section): Handle got.offset != -1 for
+ R_386_GOT32/R_386_GOTOFF relocations against STT_GNU_IFUNC
+ symbol.
+
+ * elf64-x86-64.c (elf64_x86_64_check_relocs): Increment
+ got.refcount for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64
+ relocations against STT_GNU_IFUNC symbol.
+ (elf64_x86_64_allocate_dynrelocs): Set got.refcount to 0 if
+ local STT_GNU_IFUNC definition is used.
+ (elf64_x86_64_relocate_section): Handle got.offset != -1
+ for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 relocations against
+ STT_GNU_IFUNC symbol.
+
+
+ PR ld/10205
+ * elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE.
+ (elf_i386_reloc_type_lookup): Likewise.
+ (R_386_tls): Removed.
+ (R_386_irelative): New.
+ (R_386_vt_offset): Updated.
+ (elf_i386_rtype_to_howto): Likewise.
+ (elf_i386_link_hash_table): Add igotplt, iplt and irelplt.
+ (elf_i386_link_hash_table_create): Initialize igotplt,
+ iplt and irelplt.
+ (elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first.
+ (elf_i386_adjust_dynamic_symbol): Likewise.
+ (elf_i386_allocate_dynrelocs): Likewise.
+ (elf_i386_relocate_section): Likewise.
+ (elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt
+ sections.
+ (elf_i386_finish_dynamic_symbol): When building a static
+ executable, use .iplt, .igot.plt and .rel.iplt sections for
+ STT_GNU_IFUNC symbols. Generate R_386_IRELATIVE relocation for
+ locally defined STT_GNU_IFUNC symbol.
+
+ * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE.
+ (x86_64_reloc_map): Likewise.
+ (R_X86_64_standard): Updated.
+ (elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt.
+ (elf64_x86_64_link_hash_table_create): Initialize igotplt,
+ iplt and irelplt.
+ (elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first.
+ (elf64_x86_64_adjust_dynamic_symbol): Likewise.
+ (elf64_x86_64_allocate_dynrelocs): Likewise.
+ (elf64_x86_64_relocate_section): Likewise.
+ (elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt
+ sections.
+ (elf64_x86_64_finish_dynamic_symbol): When building a static
+ executable, use .iplt, .igot.plt and .rela.iplt sections for
+ STT_GNU_IFUNC symbols. Generate R_X86_64_IRELATIVE relocation
+ for locally defined STT_GNU_IFUNC symbol.
+
+ * reloc.c (BFD_RELOC_386_IRELATIVE): New.
+ (BFD_RELOC_X86_64_IRELATIVE): Likewise.
+
+ * bfd-in2.h: Regenerated.
+ * libbfd.h: Likewise.
+
+
+ * elf-bfd.h (struct bfd_elf_section_data): Remove indirect_relocs.
+ (_bfd_elf_make_ifunc_reloc_section): Removed.
+ (_bfd_elf_is_ifunc_symbol): Likewise.
+ (_bfd_elf_create_static_ifunc_sections): New.
+
+ * elflink.c (_bfd_elf_adjust_dynamic_symbol): Move STT_GNU_IFUNC
+ symbol check to ...
+ (elf_link_add_object_symbols): Here.
+ (_bfd_elf_link_hash_hide_symbol): Don't clean plt on
+ STT_GNU_IFUNC symbol.
+ (elf_link_output_extsym): Call elf_backend_finish_dynamic_symbol
+ if a STT_GNU_IFUNC symbol is referenced in a non-shared object.
+ (IFUNC_INFIX): Removed.
+ (get_ifunc_reloc_section_name): Likewise.
+ (_bfd_elf_make_ifunc_reloc_section): Likewise.
+ (_bfd_elf_is_ifunc_symbol): Likewise.
+ (_bfd_elf_create_static_ifunc_sections): New.
+
+
+ * elf32-i386.c (link_hash_newfunc): Add elf_i386_ prefix.
+ (create_got_section): Likewise.
+ (allocate_dynrelocs): Likewise.
+ (readonly_dynrelocs): Likewise.
+ (set_tls_module_base): Likewise.
+ (dtpoff_base): Likewise.
+ (tpoff): Likewise.
+ (elf_i386_link_hash_table_create): Updated.
+ (elf_i386_create_dynamic_sections): Likewise.
+ (elf_i386_check_relocs): Likewise.
+ (elf_i386_size_dynamic_sections): Likewise.
+ (elf_i386_relocate_section): Likewise.
+
+ * elf64-x86-64.c (link_hash_newfunc): Add elf64_x86_64_ prefix.
+ (create_got_section): Likewise.
+ (allocate_dynrelocs): Likewise.
+ (readonly_dynrelocs): Likewise.
+ (set_tls_module_base): Likewise.
+ (dtpoff_base): Likewise.
+ (tpoff): Likewise.
+ (elf64_x86_64_link_hash_table_create): Updated.
+ (elf64_x86_64_create_dynamic_sections): Likewise.
+ (elf64_x86_64_check_relocs): Likewise.
+ (elf64_x86_64_size_dynamic_sections): Likewise.
+ (elf64_x86_64_relocate_section): Likewise.
+
+
+ * targets.c (_bfd_target_vector): Only include plugin target in
+ all-targets build if BFD_SUPPORTS_PLUGINS is non-zero.
+
+
+ * elf32-spu.c (struct call_info): New member broken_cycle.
+ (remove_cycle): Instead of physically removing call_info structures
+ to break call graph cycles, mark them using the broken_cycle flag.
+ (mark_overlay_section): Respect broken_cycle flag.
+ (unmark_overlay_section): Likewise.
+ (collect_lib_sections): Likewise.
+ (collect_overlays): Likewise.
+ (sum_stack): Likewise.
+
+
+ * elf32-spu.c (insert_callee): Accumulate incoming callee->count.
+ (mark_functions_via_relocs): Initialize callee->count to 1.
+ (pasted_function): Likewise.
+ (spu_elf_auto_overlay): Honor call counts when determining number
+ of stubs required in software i-cache mode.
+
+
+ * plugin.c (program_name): Remove.
+ (plugin_program_name): New.
+ (bfd_plugin_set_program_name): New.
+ (try_load_plugin): Use plugin_program_name.
+ * plugin.h (bfd_plugin_set_program_name): New.
+
+
+ * aclocal.m4: Include ../config/plugins.m4.
+ * configure.in: Use AC_PLUGINS.
+ * configure: Regenerate.
+ * Makefile.in: Regenerate.
+ * doc/Makefile.in: Regenerate.
+
+
+ * elf32-ppc.c (ppc_elf_relax_section): Work with a partial
+ link.
+ * bout.c (b_out_bfd_relax_section): Reject relocatable links.
+ * elf32-m10300.c (mn10300_elf_relax_section): Likewise.
+ * elf32-avr.c (elf32_avr_relax_section): Likewise.
+ * elf32-frv.c (elf32_avr_relax_section): Likewise.
+ * elf32-xtensa.c (elf_xtensa_relax_section): Likewise.
+ * elf64-mmix.c (mmix_elf_relax_section): Likewise.
+ * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
+ * elfxx-sparc.c (_bfd_sparc_elf_relax_section): Likewise.
+ * reloc.c (bfd_generic_relax_section): Likewise.
+ * reloc16.c (bfd_coff_reloc16_relax_section): Likewise.
+ * vms.c (vms_bfd_relax_section): Likewise.
+
+
+ * elf-bfd.h (_bfd_elf_is_ifunc_symbol): New.
+
+ * elf32-i386.c (is_indirect_symbol): Renamed to ...
+ * elflink.c (_bfd_elf_is_ifunc_symbol): This.
+
+ * elf32-i386.c (allocate_dynrelocs): Updated.
+ (elf_i386_relocate_section): Likewise.
+ * elf64-x86-64.c (allocate_dynrelocs): Likewise.
+ (elf64_x86_64_relocate_section): Likewise.
+
+ * elf64-x86-64.c (is_indirect_symbol): Removed.
+
+
+ * po/id.po: Updated Indonesian translation.
+
+
+ * Makefile.am: Run "make dep-am".
+ (AM_CPPFLAGS): New.
+ (LIBDL): New.
+ (ALL_MACHINES): Add cpu-plugin.lo.
+ (ALL_MACHINES_CFILES): Add cpu-plugin.c.
+ (BFD32_BACKENDS): Add plugin.lo.
+ (BFD32_BACKENDS_CFILES): Add plugin.c.
+ (libbfd_la_LIBADD): Add LIBDL
+ * archures.c (bfd_architecture): Add bfd_arch_plugin.
+ (bfd_plugin_arch): Declare.
+ * bfd-in.h (BFD_SUPPORTS_PLUGINS): New.
+ * bfd.c (bfd): Add plugin_data.
+ * config.bfd: Handle the plugin target.
+ * configure.in: Check for --enable-plugins.
+ (LT_INIT): Use the dlopen option.
+ * cpu-plugin.c: New.
+ * plugin.c: New.
+ * plugin.h: New.
+ * targets.c (plugin_vec): Declare.
+ (_bfd_target_vector): Add plugin_vec.
+ * Makefile.in: Regenerate.
+ * bfd-in2.h: Regenerate.
+ * configure: Regenerate.
+
+
+ * dep-in.sed: Don't modify .o to .lo here. Output one filename
+ per line with all lines having continuation backslash. Prefix
+ first line with "A", following lines with "B".
+ * Makefile.am (DEP): Don't use dep.sed here.
+ (DEP1): Run $MKDEP on single files, modify .o to .lo here. Use
+ dep.sed here on dependencies, sort and uniq.
+ * Makefile.in: Regenerate.
+
+
+ * makefile.vms: Add verilog.obj to object list OBJS.
+
+
+ * bfdio.c (bfd_seek): Formatting. Ensure newly allocated memory
+ for BFD_IN_MEMORY is cleared.
+ (bfd_bwrite): Zero excess memory allocated.
+
+
+ * elf32-arm.c (THUMB16_BCOND_INSN, THUMB32_INSN, THUMB32_B_INSN): New
+ macros.
+ (elf32_arm_stub_a8_veneer_b_cond, elf32_arm_stub_a8_veneer_b)
+ (elf32_arm_stub_a8_veneer_blx): New stub sequences.
+ (elf32_arm_stub_type): Add arm_stub_a8_veneer_b_cond,
+ arm_stub_a8_veneer_b and arm_stub_a8_veneer_blx.
+ (elf32_arm_stub_hash_entry): Add target_addend, orig_insn fields.
+ (a8_erratum_fix, a8_erratum_reloc): New structs.
+ (elf32_arm_link_hash_table): Add a8_erratum_fixes,
+ num_a8_erratum_fixes, fix_cortex_a8 fields.
+ (elf32_arm_link_hash_table_create): Zero fix_cortex_a8.
+ (elf32_arm_add_stub): Split into two parts, creating...
+ (elf32_arm_create_or_find_stub_sec): New function.
+ (elf32_arm_final_link_relocate): Add forward declaration.
+ (arm_build_one_stub): Add support for THUMB32_TYPE, Thumb-2
+ relocations, multiple relocations per stub.
+ (find_stub_size_and_template): New (using parts of arm_size_one_stub).
+ (arm_size_one_stub): Use find_stub_size_and_template.
+ (a8_reloc_compare): New.
+ (find_thumb_glue): Add forward declaration.
+ (cortex_a8_erratum_scan): New.
+ (elf32_arm_size_stubs): Add Cortex-A8 erratum workaround support.
+ (bfd_elf32_arm_set_cortex_a8_fix): New.
+ (bfd_elf32_arm_set_target_relocs): Add fix_cortex_a8 argument.
+ (arm_map_one_stub): Add THUMB32_TYPE support.
+ (a8_branch_to_stub_data): New.
+ (make_branch_to_a8_stub): New.
+ (elf32_arm_write_section): Add Cortex-A8 erratum workaround support.
+ * bfd-in.h (bfd_elf32_arm_set_cortex_a8_fix): New.
+ (bfd_elf32_arm_set_target_relocs): Add argument for controlling
+ Cortex-A8 erratum workaround.
+ * bfd-in2.h: Regenerate.
+
+
+ * Makefile.am: Run "make dep-am".
+ * Makefile.in: Regenerate.
+ * po/SRC-POTFILES.in: Regenerate.
+
+
+ * elflink.c (elf_link_input_bfd): Correct *pindex change in last
+ commit.
+
+
+ * elf-bfd.h (struct elf_backend_data
+ <elf_backend_link_output_symbol_hook>): Return an int.
+ * elf64-ppc.c (ppc64_elf_output_symbol_hook): Return 2 to drop
+ symbols on deleted .opd entries.
+ * elflink.c (elf_link_output_sym): Return without outputting sym
+ if output_symbol_hook returns 2.
+ (elf_link_output_extsym): Don't assign h->indx when symbol discarded.
+ Abort if we must not discard sym.
+ (elf_link_input_bfd): Similarly, don't set finfo->indices for
+ local syms.
+ (bfd_elf_final_link): Adjust elf_link_output_sym calls.
+ * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Adjust for
+ elf_backend_link_output_symbol_hook return type change.
+ * elf32-arm.c (output_arch_syminfo): Likewise.
+ (elf32_arm_output_map_sym, elf32_arm_output_stub_sym): Likewise.
+ (elf32_arm_output_arch_local_syms): Likewise.
+ * elf32-cr16c.c (elf32_cr16c_link_output_symbol_hook): Likewise.
+ * elf32-score.c (s3_bfd_score_elf_link_output_symbol_hook): Likewise.
+ (bfd_score_elf_link_output_symbol_hook): Likewise.
+ * elf32-score.h (s7_bfd_score_elf_link_output_symbol_hook): Likewise.
+ * elf32-score7.c (s7_bfd_score_elf_link_output_symbol_hook): Likewise.
+ * elf32-sh64.c (sh64_elf_link_output_symbol_hook): Likewise.
+ * elf32-spu.c (spu_elf_output_symbol_hook): Likewise.
+ * elf32-v850.c (v850_elf_link_output_symbol_hook): Likewise.
+ * elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Likewise.
+ * elf64-mmix.c (mmix_elf_link_output_symbol_hook): Likewise.
+ * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Likewise.
+ * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
+ * elfxx-mips.c (_bfd_mips_elf_link_output_symbol_hook): Likewise.
+ * elfxx-mips.h (_bfd_mips_elf_link_output_symbol_hook): Likewise.
+
+
+ * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't segfault on
+ out of range .opd symbols.
+
+
+ * coffgen.c (coff_print_symbol): Use bfd_fprintf_vma, not
+ fprintf_vma directly.
+ * peXXigen.c (pe_print_edata): Likewise.
+ (pe_print_pdata): Likewise.
+ (_bfd_XX_print_ce_compressed_pdata): Likewise.
+ (_bfd_XX_print_private_bfd_data_common): Likewise.
+
+
+ * cofflink.c (process_embedded_commands): Ignore "-aligncomm".
+
+
+ * elf32-arm.c (elf32_arm_fix_exidx_coverage): Don't attempt to
+ fix discarded sections.
+
+
+ * elf32-spu.c (mark_overlay_section): Move .init and .fini
+ sections into the software icache.
+
+
+ * elf32-spu.c (build_stub): Always build "compact" sofware
+ i-cache stubs.
+
+
+ * elf32-spu.c (struct spu_link_hash_table): Add fromelem_size_log2.
+ (spu_elf_setup): Initialize it.
+ (spu_elf_size_stubs): Move .ovtab into .bss for software i-cache.
+ Update to new-sytle cache manager data structures.
+ (spu_elf_build_stubs): Generate new-style cache manager data
+ structures and symbols.
+ (spu_elf_auto_overlay): Update size computation.
+
+
+ * elf32-spu.c (spu_elf_modify_segment_map): Move all PF_OVERLAY
+ segments first amongst the program headers.
+
+
+ * elf32-spu.c (spu_elf_relocate_section): Only encode overlay index
+ into addresses for relocation types that look at high bits. Remove
+ special handling of relocation overflow warnings.
+
+
+ * elf32-spu.c (mark_functions_via_relocs): Handle cycles in the
+ control flow graph between fragments of a function.
+
+
+ * elf32-spu.c (spu_elf_size_stubs): Even in software i-cache mode,
+ generate only a 16-byte .toe section.
+ (spu_elf_build_stubs, spu_elf_auto_overlay): Likewise.
+
* elf32-spu.c (spu_elf_size_stubs): Split out section placement to..
* coff-ia64.c (COFF_PAGE_SIZE): Changed to 8K.
-
+
* coffcode.h (coff_compute_section_file_positions): Clear
D_PAGED if PE section alignment is smaller than COFF_PAGE_SIZE.
- * elf32-xtensa.c (relax_property_section): Always set r_offset
+ * elf32-xtensa.c (relax_property_section): Always set r_offset
to zero.
* elf32-vax.c (elf_vax_check_relocs): Do not put relocations against
hidden symbols into the GOT or PLT.GOT.
- (elf_vax_relocate_section): Do not emit a PCREL reloc
+ (elf_vax_relocate_section): Do not emit a PCREL reloc
into a shared object if it is against a hidden symbol.