+
+ PR ld/10630
+ * elflink.c (elf_link_output_extsym): Turn off visibility on
+ local symbol.
+ (bfd_elf_final_link): Turn off visibility on dynamic local
+ symbol.
+
+
+ PR binutils/10654
+ * dwarf2.c (lookup_address_in_line_info_table): Remove workaround
+ for invalid location lists generated by gcc-2.95 and Intel 6.0 C++.
+ Remove "function" parm, adjust caller.
+
+
+ * bfd-in.h (bfd_elf_size_dynamic_sections): Add audit and depaudit
+ arguments.
+ * elflink.c (bfd_elf_size_dynamic_sections): Generate DT_AUDIT,
+ DT_DEPAUDIT from audit/depaudit arguments.
+ (elf_finalize_dynstr): Finalize DT_AUDIT and DT_DEPAUDIT strtab entries.
+ (elf_link_add_object_symbols): Set dt_audit target data when finding a
+ DT_AUDIT.
+ * bfd-in2.h: Regenerate.
+ * bfd-elf.h: Add dt_audit to elf_obj_tdata, and elf_dt_audit macro.
+
+
+ * elf32-bfin.c (_bfinfdpic_size_got_plt): Make sure empty
+ .rel.plt and .plt sections are removed.
+ (elf32_bfinfdpic_size_dynamic_sections): Remove empty .dynbss
+ section. Remove the duplicated removing of empty .rel.plt
+ section.
+
+
+ * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Extend previous
+ patch to handle the new personality relaxation.
+
+
+ * elf-eh-frame.c (make_pc_relative): New function.
+ (_bfd_elf_write_section_eh_frame): Use it.
+
+
+ * elf32-ppc.c (TLS_GET_ADDR_GLINK_SIZE): Define.
+ (ADD_3_12_2, BEQLR, CMPWI_11_0, LWZ_11_3, LWZ_12_3): Define.
+ (MR_0_3, MR_3_0): Define.
+ (struct ppc_elf_link_hash_table): Add no_tls_get_addr_opt.
+ (ppc_elf_select_plt_layout): Save emit_stub_syms param earlier.
+ (ppc_elf_tls_setup): Add no_tls_get_addr_opt param and save to hash
+ table. Check for presense of __tls_get_addr_opt
+ (allocate_dynrelocs): Increase glink entry size for __tls_get_addr.
+ (ppc_elf_size_dynamic_sections): Add DT_PPC_TLS_OPT tag.
+ (write_glink_stub): Add param p.
+ (ppc_elf_relocate_section): Adjust write_glink_stub call.
+ (ppc_elf_finish_dynamic_symbol): Emit special glink call stub for
+ __tls_get_addr.
+ * elf32-ppc.h (ppc_elf_tls_setup): Update prototype.
+ * elf64-ppc.c (struct ppc_link_hash_table): Add no_tls_get_addr_opt.
+ (ppc64_elf_tls_setup): Add no_tls_get_addr_opt param and save to hash
+ table. Check for presense of __tls_get_addr_opt.
+ (ppc64_elf_size_dynamic_sections): Add DT_PPC64_TLS_OPT tag.
+ (LD_R11_0R3, LD_R12_0R3, MR_R0_R3, CMPDI_R11_0, ADD_R3_R12_R13,
+ BEQLR, MR_R3_R0, MFLR_R11, STD_R11_0R1, BCTRL, LD_R11_0R1,
+ LD_R2_0R1, MTLR_R11): Define.
+ (build_tls_get_addr_stub): New function.
+ (ppc_build_one_stub): Call it.
+ (ppc_size_one_stub): Add extra size for __tls_get_addr stub.
+ (ppc64_elf_relocate_section): Don't change nop to ld 2,40(1) for
+ __tls_get_addr plt call.
+ * elf64-ppc.h (ppc64_elf_tls_setup): Update prototype.
+
+
+ * elf-bfd.h (eh_cie_fde): Add personality_offset and
+ make_per_encoding_relative to the CIE structure. Add a padding field.
+ * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Use 0x70
+ rather than 0xf0 when masking out the base address encoding
+ Record the offset of personality data from the start of the CIE.
+ Remove a repeated elf_backend_can_make_relative_eh_frame check.
+ (find_merged_cie): Take an info argument. If the personality
+ binds locally, try converting an absolute personality into
+ a local one.
+ (_bfd_elf_discard_section_eh_frame): Use 0x70 rather than 0xf0
+ when masking out the base address encoding. Update the call to
+ find_merged_cie.
+ (_bfd_elf_eh_frame_section_offset): Discard relocations against
+ the personality data if we are converting into PC-relative form.
+ (_bfd_elf_write_section_eh_frame): Use 0x70 rather than 0xf0
+ when masking out the base address encoding. Handle
+ make_per_encoding_relative.
+
+
+ PR ld/10406
+ * elf32-ppc.c (ppc_elf_howto_raw): Make R_PPC_EMB_SDAI16 and
+ R_PPC_EMB_SDA2I16 complain_overflow_signed.
+ (create_sdata_sym): Pass info rather than htab.
+ Update all callers. Ensure symbols are hidden.
+ (ppc_elf_check_relocs): Allow SDAREL16 when shared.
+ (ppc_elf_size_dynamic_sections): When shared, equate _SDA_BASE_ to
+ _GLOBAL_OFFSET_TABLE_.
+ (elf_finish_pointer_linker_section): Don't assume that sdata base
+ symbol is always at 0x8000 offset. Don't subtract the addend here.
+ (is_static_defined): New function.
+ (ppc_elf_relocate_section): Verify symbol base used in SDA relocs
+ is statically defined. Clear addend for EMB_SDAI16 and EMB_SDA2I16
+ relocs. Downgrade error on unexpected section for EMB_SDA2REL
+ reloc symbols to a warning.
+
+
+ * po/es.po: Updated Spanish translation.
+ * po/vi.po: Updated Vietnamese translation.
+
+
+ * elf64-ppc.c (follow_link, elf_follow_link, ppc_follow_link): New
+ functions. Use throughout.
+ (ppc64_elf_copy_indirect_symbol): Set direct symbol "oh" field
+ from indirect symbol.
+ (lookup_fdh): Rename from get_fdh. Follow indirect sym links.
+ (add_symbol_adjust): Simplify.
+ (defined_code_entry, defined_func_desc): New functions.
+ (ppc64_elf_gc_keep): Follow indirect sym links. Use defined_code_entry.
+ (ppc64_elf_gc_mark_dynamic_ref): Use defined_func_desc and
+ defined_code_entry to follow indirect sym links.
+ (ppc64_elf_gc_mark_hook, func_desc_adjust): Likewise.
+ (ppc_type_of_stub): Follow indirect sym links.
+ (toc_adjusting_stub_needed): Likewise.
+ (ppc_build_one_stub): Likewise. Make undefined dot-symbols weak
+ rather than defining them at stub.
+ (ppc64_elf_relocate_section): Rewrite call test to avoid multiple
+ assignments in test.
+
+
+ * mach-o.h (bfd_mach_o_filetype): Add new constants from darwin10.
+ Reindent.
+ * mach-o.c (bfd_mach_o_cpu_name): Reindent.
+ (bfd_mach_o_filetype_name): Complete with new constants. Reindent.
+ (bfd_mach_o_print_private_header): Use fputs instead of fprintf
+ when possible to avoid warnings.
+ (bfd_mach_o_print_section_map): Ditto.
+ (bfd_mach_o_section_get_entry_size): New function.
+ (bfd_mach_o_section_get_nbr_indirect): Simplify using the newly
+ added function.
+ (bfd_mach_o_print_dysymtab): Print address of indirect symbols.
+
+
+ * po/fi.po: Updated Finnish translation.
+
+
+ * po/bfd.pot: Updated by the Translation project.
+
+
+ * binary.c (binary_object_p): Remove bfd_external_binary_architecture
+ hack. objcopy `-B' (`--binary-architecture') option is now handled
+ in a generic way.
+
+
+ * rs6000-core.c (read_hdr): Fix typo in recent C++ compatibility
+ changes.
+
+
+ * elf32-bfin.c (bfinfdpic_relocs_info_find): Just return
+ NULL if `ht' is NULL.
+
+
+ Update soruces to compile cleanly with -Wc++-compat:
+ * aoutx.h: Add casts.
+ * archive.c: Add casts.
+ * archive64.c: Add casts.
+ * archures.c: Add casts.
+ * bfd-in2.h: Regenerated.
+ * bfd.c: Add casts. (enum bfd_direction): Move out to top level.
+ * bfdio.c: Add casts.
+ * binary.c: Add casts.
+ * cache.c (cache_bseek,cache_bread_1,cache_bwrite): Updated
+ parameter to use enum value instead of int.
+ * coffcode.h: Add casts.
+ * coffgen.c: Add casts.
+ * cofflink.c: Add casts.
+ * compress.c: Add casts.
+ * dwarf1.c: Add casts.
+ * dwarf2.c: Add casts. (struct dwarf2_debug): Rename member bfd to
+ bfd_ptr. Update code to use new name.
+ * elf-attrs.c: Add casts.
+ * elf-bfd.h (elf_link_virtual_table_entry): Gives name to
+ anonymous struct. (union gotplt_union, struct
+ elf_link_virtual_table_entry): Move to top level.
+ * elf-eh-frame.c: Add casts.
+ * elf-strtab.c: Add casts.
+ * elf.c: Add casts. (_bfd_elm_make_Section_from_phdr): Change
+ argument name from typename to type_name.
+ * elf32-i386.c: Add casts.
+ * elf64-x86-64.c: Add casts.
+ * elfcode.h: Add casts.
+ * elfcore.h: Add casts.
+ * elflink.c: Add casts.
+ * format.c: Add casts.
+ * hash.c: Add casts.
+ * ihex.c: Add casts.
+ * libaout.h (enum aout_subformat, enum aout_magic): Move to top
+ level.
+ * libbfd.c: Add casts.
+ * linker.c: Add casts.
+ * merge.c: Add casts.
+ * opncls.c: Add casts.
+ * peXXigen.c: Add casts.
+ * peicode.h: Add casts.
+ * reloc.c: Add casts.
+ * section.c: Add casts.
+ * simple.c: Add casts.
+ * srec.c: Add casts.
+ * stabs.c: Add casts.
+ * syms.c: Add casts.
+ * targets.c: Add casts.
+ * tekhex.c: Add casts.
+ * verilog.c: Add casts.
+
+
+ * configure: Regenerate.
+
+
+ * elf32-arm.c (elf32_arm_final_link_relocate): Set sym_flags
+ for the mode of target PLT entries.
+ (allocate_dynrelocs): Only adjust symbol type if setting its
+ value.
+
+
+ * configure: Regenerate.
+
+
+ PR 10478:
+ * elf.c (bfd_section_from_shdr): Do not reject sparc binaries with
+ section headers containing sh_link values of SHN_BEFORE or
+ SHN_AFTER.
+ * elfcode.h (elf_object_p): Likewise.
+
+
+ Handle DYLD_INFO introduced by Darwin10.
+ * mach-o.h (bfd_mach_o_load_command_type): Add
+ BFD_MACH_O_LC_DYLD_INFO.
+ (bfd_mach_o_dyld_info_command): New type.
+ (bfd_mach_o_load_command): Add dyld_info field.
+ * mach-o.c (bfd_mach_o_scan_read_str): Reduce size of buf.
+ (bfd_mach_o_scan_read_dyld_info): New function.
+ (bfd_mach_o_scan_read_command): Handle BFD_MACH_O_LC_DYLD_INFO.
+ (bfd_mach_o_bfd_print_private_bfd_data): Ditto.
+ (bfd_mach_o_load_command_name): AddB FD_MACH_O_LC_DYLD_INFO.
+ (bfd_mach_o_print_dyld_info): New function.
+
+
+ * elf32-cr16.c (elf32_cr16_relocate_section): Add code to discard the
+ linkonce or linker script discarded section.
+
+
+ * elf32-xtensa.c (elf_xtensa_relax_section): Delete -r check.
+
+
+ * elf32-m68k.c (rtype_to_howto): If the reloc index is out of
+ range call the bfd error hander and use R_68K_NONE instead.
+
+
+ * po/SRC-POTFILES.in: Regenerate.
+ * po/bfd.pot: Regenerate.
+
+ * bfd.m4 (BFD_HAVE_TIME_TYPE_MEMBER,
+ BFD_HAVE_SYS_STAT_TYPE_MEMBER): Moved to gas/acinclude.m4
+ * configure.in: Move tests for tm_gmtoff, st_mtim.tv_sec and
+ st_mtim.tv_nsec to gas/configure.in
+ (bfd_elf64_ia64_vms_vec): Remove vmsutil.lo
+ * configure: Regenerate.
+ * config.in: Regenerate.
+ * vmsutil.c: Moved to gas/config/te-vms.c
+ * vmsutil.h: Removed.
+ * Makefile.am (BFD32_BACKENDS_CFILES): Remove vmsutil.c
+ (BFD32_BACKENDS): Remove vmsutil.lo
+ * Makefile.in: Regenerate.
+
+
+ * coffcode.h: Include libiberty.h.
+
+
+ * coff-arm.c (coff_arm_relocate_section)
+ (record_thumb_to_arm_glue, bfd_arm_process_before_allocation):
+ Change member name class to symbol_class.
+ * coff-i960.c (coff_i960_relocate_section) Rename variable
+ class to class_val. Change member name class to symbol_class.
+ * coff-rs6000.c (_bfd_xcoff_swap_aux_in)
+ (_bfd_xcoff_swap_aux_out): Rename arguments class to in_class.
+ * coff-stgo32.c (adjust_aux_in_post)
+ (adjust_aux_out_pre, adjust_aux_out_post): Rename arguments class
+ to in_class.
+ * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in)
+ (_bfd_xcoff64_swap_aux_out): Rename arguments class to in_class.
+ * coffcode.h (coff_pointerize_aux_hook): Rename variable class
+ to n_sclass.
+ * coffgen.c (coff_write_symbol, coff_pointerize_aux): Rename
+ variables named class to n_sclass. (coff_write_symbols): Rename
+ variable class to sym_class. (bfd_coff_set_symbol_class): Rename
+ argument class to symbol_class.
+ * cofflink.c (_bfd_coff_link_hash_newfunc)
+ (coff_link_add_symbols, _bfd_coff_link_input_bfd)
+ (_bfd_coff_write_global_sym, _bfd_coff_generic_relocate_section):
+ Update code to use renamed members.
+ * coffswap.h (coff_swap_aux_in, coff_swap_aux_out): Rename
+ argument class to in_class.
+ * libcoff-in.h (struct coff_link_hash_entry, struct
+ coff_debug_merge_type) Renamed members class to symbol_class and
+ type_class.
+ * libcoff.h Regenerated.
+ * peXXigen.c: (_bfd_XXi_swap_aux_in, _bfd_XXi_swap_aux_out):
+ Rename argument class to in_class.
+ * pef.c (bfd_pef_parse_imported_symbol): Update code to use
+ renamed members.
+ * pef.h (struct bfd_pef_imported_symbol): Changed name of
+ member class to symbol_class.
+
+
+ * configure: Regenerated.
+
+
+ * configure.in: Bump version to 2.20.51
+
+
+ * elf32-spu.c (spu_elf_relocate_section): Correct 2009-07-24 logic.
+
+
+ * elf32-bfin.c (elf32_bfinfdpic_create_dynamic_sections): Always
+ create .rela.bss.
+ (elf32_bfinfdpic_size_dynamic_sections): Set SEC_EXCLUDE flag
+ for empty .rela.bss and .rel.plt sections.
+
+
+ * elfxx-mips.c (mips_elf_calculate_relocation): Don't relocate
+ R_MIPS_JALR unless symbol resolves locally.
+
+
+ * elfxx-mips.c (_bfd_mips_elf_check_relocs): Don't set
+ has_static_relocs for R_MIPS_JALR.
+
+
+ * elf64-mips.c (mips_elf64_howto_table_rela): Add support for
+ R_MIPS_TLS_DTPMOD64 and R_MIPS_TLS_TPREL64, replacing the
+ respective stubs.
+
+
+ * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Declare
+ plt earlier.
+
+
+ * makefile.vms: Ported to Itanium VMS. Remove useless variable and
+ dependencies. Reindent.
+ * configure.com: Ported to Itanium VMS. Now generates a build.com
+ to build without make. Add messages but make edit silent.
+ * hosts/alphavms.h: Add a prototype for stpcpy.
+ * vms.c: Add a missing include for Alpha VMS.
+ * elfxx-ia64.c (ELF_OSABI): Define for OpenVMS.
+
+
+ * elf-bfd.h (bfd_elf_get_default_section_type): Declare.
+ * elf.c (bfd_elf_get_default_section_type): New.
+ (elf_fake_sections): Use bfd_elf_get_default_section_type.
+
+
+ * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert the
+ accidental checkin.
+ * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likwise.
+
+
+ PR ld/10569
+ * bfd.c (bfd_emul_get_maxpagesize): Don't abort.
+ (bfd_emul_get_commonpagesize): Likewise.
+
+
+ * elf32-arm.c (struct stub_def): Rename member template to
+ template_sequence. (arm_build_one_stub,
+ find_stub_size_and_template, arm_size_one_stub, arm_map_one_stub):
+ Rename variable template to template_sequence.
+ * elfxx-ia64.c (elfNN_ia64_relax_br, elfNN_ia64_relax_brl):
+ Rename variable template to template_val.
+ * aoutx.h (NAME (aout, make_empty_symbol)): Rename variable
+ new to new_symbol.
+ * coffgen.c (coff_make_empty_symbol)
+ (coff_bfd_make_debug_symbol): Rename variable new to new_symbol.
+ * cpu-ia64-opc.c (ext_reg, ins_imms_scaled): Rename variable
+ new to new_insn.
+ * ecoff.c (_bfd_ecoff_make_empty_symbol): Rename variable new
+ to new_symbol.
+ * elf32-m68k.c (elf_m68k_get_got_entry_type): Rename argument
+ new to new_reloc.
+ * hash.c (bfd_hash_lookup): Rename variable new to new_string.
+ * ieee.c (ieee_make_empty_symbol): Rename variable new to
+ new_symbol.
+ * linker.c (bfd_new_link_order): Rename variable new to
+ new_lo.
+ * mach-o.c (bfd_mach_o_sizeof_headers): Rename variable new to
+ symbol.
+ * oasys.c (oasys_make_empty_symbol): Rename variable new to
+ new_symbol_type.
+ * pdp11.c (NAME (aout, make_empty_symbol)): Rename variable
+ new to new_symbol_type.
+ * plugin.c (bfd_plugin_make_empty_symbol): Rename variable new
+ to new_symbol.
+ * rs6000-core.c (CoreHdr, VmInfo): Rename union member new to
+ new_dump.
+ (read_hdr, rs6000coff_core_p)
+ (rs6000coff_core_file_matches_executable_p)
+ (rs6000coff_core_file_failing_command)
+ (rs6000coff_core_file_failing_signal): Updated function to use new
+ union member name.
+ * som.c (som_make_empty_symbol): Rename variable new to
+ new_symbol_type.
+ * syms.c (_bfd_generic_make_empty_symbol): Rename variable new
+ to new_symbol.
+ * tekhex.c (first_phase, tekhex_make_empty_symbol): Rename
+ variable new to new_symbol.
+
+
+ * acinclude.m4 (AM_INSTALL_LIBBFD): Call AM_SUBST_NOTMAKE for
+ bfdlibdir and bfdincludedir.
+ * Makefile.am (bfdlibdir, bfdincludedir): Move definition ...
+ [INSTALL_LIBBFD]: ... here, ...
+ [INSTALL_LIBBFD]: ... and empty overrides here.
+ [!INSTALL_LIBBFD]: (rpath_bfdlibdir): New variable.
+ [!INSTALL_LIBBFD] (libbfd_la_LDFLAGS): Use it.
+ * Makefile.in: Regenerate.
+ * configure: Regenerate.
+
+
+ * elf32-m68k.c: Rewrite initialization of GOT entries for TLS
+ relocations. Rewrite output of dynamic TLS relocations.
+ (DTP_OFFSET, TP_OFFSET): New constants.
+ (dtpoff_base): Update.
+ (tpoff): Rename to tpoff_base, update.
+ (elf_m68k_init_got_entry_static, elf_m68k_init_got_entry_local_shared):
+ New functions. Move code from elf_m68k_relocate_section here.
+ (elf_m68k_relocate_section): Update.
+ (elf_m68k_finish_dynamic_symbol): Fix handling of local TLS symbols.
+
+
+ * elf32-m68k.c (elf_m68k_copy_indirect_symbol): Propagate
+ non_got_ref value.
+ (elf_m68k_check_relocs): Handle dynamic TLS relocations.
+ Handle non_got_ref field.
+ (elf_m68k_adjust_dynamic_symbol): Handle non_got_ref field.
+
+
+ PR ld/10518
+ * linker.c (bfd_find_version_for_sym): Revert warning.
+
+
+ PR ld/10518
+ * linker.c (bfd_find_version_for_sym): Override a "*" match by any
+ other wildcard match. Warn on multiple wildcard matches.
+
+
+ * Makefile.am (libbfd_la_LDFLAGS): Initialize early, to allow
+ appending.
+ [INSTALL_LIBBFD] (bfdlib_LTLIBRARIES, bfdinclude_HEADERS): Set
+ only in this condition.
+ [!INSTALL_LIBBFD] (noinst_LTLIBRARIES, libbfd_la_LDFLAGS): New,
+ to build but not install libbfd.la in this condition.
+ (install-bfdlibLTLIBRARIES, uninstall-bfdlibLTLIBRARIES)
+ (install_libbfd, install_libbfd): Remove.
+ * Makefile.in: Regenerate.
+ * doc/Makefile.am (AM_CPPFLAGS): Renamed from ...
+ (INCLUDES): ... this.
+ ($(MKDOC)): Adjust.
+ * doc/Makefile.in: Regenerate.
+
+ * Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, instead use
+ no-dist and foreign.
+ (EXTRA_libbfd_la_SOURCES): New, list $(CFILES) to allow
+ dependency tracking to work for them.
+ (targets.lo, archures.lo, dwarf.lo): Rewrite to
+ use automake dependency tracking mechanism.
+ (MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
+ (mkdep section): Remove.
+ (BUILT_SOURCES): New, list $(BUILD_HFILES).
+ * Makefile.in: Regenerate.
+ * po/SRC-POTFILES.in, po/bfd.pot: Regenerate.
+
+ * Makefile.am (datarootdir, docdir, htmldor, pdfdir)
+ (install-pdf, install-pdf-recursive, install-html)
+ (install-html-recursive): Remove.
+ * Makefile.in: Regenerate.
+
+ * Makefile.in: Regenerate.
+ * aclocal.m4: Likewise.
+ * config.in: Likewise.
+ * configure: Likewise.
+
+
+ * elf32-arm.c (arch_has_thumb2_nop): New function.
+ (arch_has_arm_nop): New function.
+ (elf32_arm_final_link_relocate): NOP opcodes changed.
+
+
+ * opncls.c (bfd_close): Until BFD_IN_MEMORY has an iovec,
+ at least don't leak memory.
+
+
+ * elf32-m32c.c (m32c_elf_relax_delete_bytes): Adjust symbol sizes
+ if needed.
+
+
+ * po/fi.po: Updated Finnish translation.
+
+
+ Merge some FRV FDPIC changes into the Blackfin code.
+ * elf32-bfin.c (struct bfinfdpic_elf_link_hash_table): Add pointer to
+ summary reloc information.
+ (bfinfdpic_dynamic_got_plt_info): New.
+ (_bfin_create_got_section): Create the PLT section here.
+ (elf32_bfinfdpic_create_dynamic_sections): Not here.
+ (_bfinfdpic_count_nontls_entries): Move out of...
+ (_bfinfdpic_count_got_plt_entries): ... here.
+ (_bfinfdpic_count_relocs_fixups): Likewise.
+ (_bfinfdpic_reset_got_plt_entries): New.
+ (_bfinfdpic_size_got_plt): Move out of...
+ (elf32_bfinfdpic_size_dynamic_sections): ... here.
+ (bfinfdpic_relocate_section): Be careful not to call
+ _bfinfdpic_add_rofixup or _bfinfdpic_add_dyn_reloc for deleted relocs.
+ (bfinfdpic_check_discarded_relocs, bfinfdpic_elf_discard_info):
+ New functions.
+ (elf_backend_discard_info): Define for FD-PIC.
+
+
+ * elflink.c: Add FIXMEs for some places that require octets_per_byte
+ adjustments.
+ * elf-eh-frame.c: Likewise.
+ * merge.c: Likewise.
+
+
+ * configure.in: Remove elf-ifunc.lo from common ELF files. Add
+ to x86 and x86_64 configurations.
+ * configure: Regenerate.
+
+
+ Stop using bfd_usrdata in libbfd.
+ * coff-stgo32.c (bfd_coff_go32stub): Remove.
+ (stub_bytes, comment): Replace STUBSIZE by GO32_STUBSIZE.
+ (adjust_filehdr_in_post): Declare the abfd parameter as unused.
+ Replace STUBSIZE by GO32_STUBSIZE. Save now the stub in
+ filehdr_dst->u.go32.stub. New comment with the reason.
+ (adjust_filehdr_out_pre): Replace STUBSIZE by GO32_STUBSIZE.
+ Substitute the removed macro bfd_coff_go32stub.
+ (adjust_filehdr_out_post, adjust_scnhdr_in_post, adjust_scnhdr_out_pre)
+ (adjust_scnhdr_out_post, adjust_aux_in_post, adjust_aux_out_pre)
+ (adjust_aux_out_post): Replace STUBSIZE by GO32_STUBSIZE.
+ (create_go32_stub, go32_stubbed_coff_bfd_copy_private_bfd_data):
+ Replace STUBSIZE by GO32_STUBSIZE. Substitute the removed macro
+ bfd_coff_go32stub.
+ * coffcode.h (coff_mkobject_hook): Initialize coff->go32stub.
+ * libcoff-in.h (coff_data_type): New field go32stub.
+ * libcoff.h: Regenerated.
+
+
+ Fix go32 stub preservation by objcopy.
+ * coff-stgo32.c (adjust_filehdr_in_post): Use bfd_malloc.
+ (go32_stubbed_coff_bfd_copy_private_bfd_data): Optionally allocate OBFD
+ go32stub.
+
+
+ * elf32-arm.c (elf32_arm_size_stubs): Don't die on undefined local
+ symbols.
+ (elf32_arm_final_link_relocate): Treat local undefined symbols the
+ same as global undefined symbols.
+ (elf32_arm_relocate_section): Give an error for local undefined
+ non-weak symbols, unless the reloc will not use the symbol.
+
+
+ * elf32-ppc.c (shared_stub_entry, stub_entry): Use r12, not r11.
+ (ppc_elf_relax_section): Use symbol index to distinguish
+ relocatable stubs.
+
+
+ * elf32-ppc.c (ppc_elf_relax_section): Ignore non-code sections.
+
+
+ * elflink.c (_bfd_elf_adjust_dynamic_symbol): Don't clear plt
+ info for STT_GNU_IFUNC.
+ * elf32-ppc.c (ppc_elf_check_relocs): Count a needed plt entry
+ on got refs in case the symbol turns out to be ifunc.
+ (ppc_elf_gc_sweep_hook): Similarly.
+ (ppc_elf_adjust_dynamic_symbol): Adjust assertion.
+ (allocate_dynrelocs): Don't specially allocate got relocs for ifunc.
+ (ppc_elf_size_dynamic_sections): Likewise.
+ (ppc_elf_relocate_section): Likewise.
+
+
+ * elf32-bfin.c (bfin_howto_table, bfin_reloc_map, bfin_check_relocs,
+ bfin_final_link_relocate, bfin_relocate_section, bfin_gc_sweep_hook,
+ _bfinfdpic_emit_got_relocs_plt_entries, bfinfdpic_relocate_section,
+ bfinfdpic_gc_sweep_hook, bfinfdpic_check_relocs,
+ bfin_finish_dynamic_symbol, bfd_bfin_elf32_create_embedded_relocs):
+ Adjust to match the renamed reloc definitions.
+
+
+ PR 10494
+ * elf.c (_bfd_elf_make_section_from_shdr): When setting up section
+ LMAs, use ELF_IS_SECTION_IN_SEGMENT to match sections with headers.
+
+
+ * elf32-microblaze.c (microblaze_elf_check_relocs): Avoid strict
+ aliasing error.
+
+
+ * Makefile.am: Add cpu-microblaze.{lo,c}, elf32-microblaze.{lo,c}.
+ * Makefile.in: Regenerate.
+ * archures.c: Add bfd_arch_microblaze.
+ * bfd-in2.h: Regenerate.
+ * config.bfd: Add microblaze target.
+ * configure.in: Add bfd_elf32_microblaze_vec target.
+ * configure: Regenerate.
+ * cpu-microblaze.c: New.
+ * elf32-microblaze.c: New.
+ * libbfd-in.h: Add prototype _bfd_dwarf2_fixup_section_debug_loc().
+ * libbfd.h: Regenerate.
+ * reloc.c: Add MICROBLAZE relocations.
+ * section.c: Add struct relax_table and relax_count to section.
+ * targets.c: Add bfd_elf32_microblaze_vec.
+
+
+ PR binutils/10492
+ * elf.c (sym_is_global): Return true even for BSF_GNU_UNIQUE
+ symbols.
+ * elf32-mips.c (mips_elf_sym_is_global): Likewise.
+ * elfn32-mips.c (mips_elf_sym_is_global): Likewise.
+
+
+ * elf32-arm.c (elf32_arm_size_stubs): Call layout_sections_again
+ at least once when fixing cortex-a8.
+
+
+ * elf32-mips.c (mips_reloc_map): Add BFD_RELOC_MIPS_JALR.
+ * elfxx-mips.c (JAL_TO_BAL_P): New define to transform JAL to BAL
+ for CPUs. It is true for RM9000.
+ (JALR_TO_BAL_P): New define to transform JALR to BAL. It is true
+ for all CPUs.
+ (mips_elf_perform_relocation): Use JAL_TO_BAL_P and JALR_TO_BAL_P
+ to guard the transformation.
+
+
+ * elf32-spu.h (spu_elf_params): Add member emit_fixups.
+ (spu_elf_size_sections): Declare prototype.
+ * elf32-spu.c (spu_link_hash_table): Add member sfixup.
+ (FIXUP_RECORD_SIZE, FIXUP_GET, FIXUP_PUT): New macros.
+ (spu_elf_emit_fixup): New function.
+ (spu_elf_relocate_section): Emit fixup for each SPU_ADDR32.
+ (spu_elf_size_sections): New function.
+
+
+ * elf32-arm.c (elf32_arm_stub_type): Add arm_stub_a8_veneer_lwm.
+ (arm_build_one_stub): Build a8 veneers as a separate pass.
+ (cortex_a8_erratum_scan): Add prev_num_a8_fixes and stub_changed_p
+ parameters. Use them to check if we create a different a8 fixup
+ than the previous pass.
+ (elf32_arm_size_stubs): Move scope of stub_changed and
+ prev_num_a8_fixes into main loop.
+ (elf32_arm_build_stubs): Build a8 veneers in a second pass.
+
+
+ * elf32-ppc.c (ppc_elf_relax_section): Correct conditions under
+ which find_plt_ent is called. Delete redundant code.
+
+
+ PR binutils/10363
+ * elf.c (bfd_elf_string_from_elf_section): Return NULL on
+ invalid string offset.
+
+
+ PR ld/10433
+ * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Set got
+ to htab->init_got_offset and plt to htab->init_plt_offset
+ when discarding space for dynamic relocations.
+
+
+ * elf32-ppc.c (struct plt_entry): Revise comments.
+ (ppc_elf_check_relocs): Don't create needless plt_entry info
+ for non-pie executables. Don't test info->pie when info->shared
+ already covers that case.
+ (ppc_elf_gc_sweep_hook): Adjust for above change.
+ (add_stub_sym): Don't test info->pie when info->shared tested.
+ (allocate_dynrelocs, ppc_elf_size_dynamic_sections): Likewise.
+ (write_glink_stub, ppc_elf_finish_dynamic_symbol): Likewise.
+ (ppc_elf_relax_section): Adjust find_plt_ent arguments.
+ (ppc_elf_relocate_section): Likewise.
+
+
+ * elf32-ppc.c (ppc_elf_check_relocs): Always add a plt ref count
+ for local ifunc symbols in non-pie executables, regardless of
+ reloc type. Don't specially create ifunc dyn relocs. Tidy ifunc
+ code so that it's obvious that we only do anything special for
+ local ifunc syms.
+ (ppc_elf_gc_sweep_hook): Adjust to suit check_relocs changes.
+ (allocate_dynrelocs): Correct comment for syms defined in plt.
+ Don't specially allocate ifunc dyn relocs.
+ (ppc_elf_relax_section): Relax branches to ifunc plt entries too.
+ (ppc_elf_relocate_section): Set "relocation" value for ifunc
+ syms in non-pie executables. No specially allocated dyn relocs
+ for ifunc to write. Allow for local sym on R_PPC_RELAX32_PLT.
+ (ppc_elf_finish_dynamic_symbol): Set value of ifunc symbols in
+ a non-pie executable.
+
+
+ PR ld/6443
+ * elf32-i386.c (elf_i386_tls_transition): Check executable
+ instead of shared for TLS when building PIE.
+ (elf_i386_check_relocs): Likewise.
+ (elf_i386_allocate_dynrelocs): Likewise.
+ (elf_i386_relocate_section): Likewise.
+
+ * elf64-x86-64.c (elf64_x86_64_tls_transition): Check executable
+ instead of shared for TLS when building PIE.
+ (elf64_x86_64_check_relocs): Likewise.
+ (elf64_x86_64_allocate_dynrelocs): Likewise.
+ (elf64_x86_64_relocate_section): Likewise.
+
+
+ * config.bfd (targ_cpu): Add moxie-uclinux support.
+
+
+ * linker.c (fix_syms): Consider SEC_LOAD when choosing section.
+
+
+ * elf32-ppc.c (ppc_elf_check_relocs): Always set up sections
+ used by indirect function support. Count dynamic relocs for
+ ifunc syms.
+ (ppc_elf_adjust_dynamic_symbol): Tweak for ifunc.
+ (allocate_dynrelocs): Allocate all non-dynamic ifunc plt entries
+ in iplt and their relocs in reliplt. Don't make ifunc syms
+ dynamic. Allocate got entry relocs for non-dynamic ifunc in
+ reliplt. Handle other dynamic relocs for ifunc.
+ (ppc_elf_size_dynamic_sections): Alloc dyn relocs for static
+ ifunc in reliplt, likewise relocs for got against local ifunc.
+ Typo fix on reliplt size adjust.
+ (ppc_elf_relocate_section): Don't use plt scheme of allocating
+ relocs 1-1 with entries for iplt, instead just add using
+ reloc_count. Write got relocs and dyn relocs for ifunc to reliplt.
+ Error on invalid ifunc dyn relocs.
+ (ppc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc plt
+ in iplt/reliplt.
+ * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_JMP_IREL,
+ R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI, R_PPC64_REL16_HA.
+ (ppc64_elf_reloc_type_lookup): Handle new relocs.
+ (ppc64_elf_check_relocs): Likewise. Count dyn relocs for ifunc.
+ (allocate_dynrelocs): As for elf32-ppc.c above.
+ (ppc64_elf_size_dynamic_sections): Likewise.
+ (ppc_build_one_stub): Put non-dynamic ifunc plt call stubs in iplt,
+ and their relocs in reliplt. Use R_PPC64_JMP_IREL.
+ (ppc_size_one_stub): Similarly.
+ (ppc64_elf_relocate_section): As for elf32-ppc.c above. Handle new
+ relocs too.
+ (ppc64_elf_finish_dynamic_symbol): As for elf32-ppc.c above.
+
+
+ * elf64-mmix.c (mmix_elf_relax_section): Revert 2009-05-27
+ change. Add note to head comment.
+
+
+ * archive.c (get_extended_arelt_filename): Remove redundant
+ range check on index.
+
+
+ * elf32-arm.c (stub_hash_newfunc): Initialize field output_name.
+
* archures.c bfd_*_arch): Sorted.
- * elflink.c (elf_link_output_extsym): Revert the last change.
+ * elflink.c (elf_link_output_extsym): Revert the last change.
- PR ld/10433
- * elflink.c (elf_link_output_extsym): Special case ifunc syms
- when ref_regular, not def_regular.
+ PR ld/10433
+ * elflink.c (elf_link_output_extsym): Special case ifunc syms
+ when ref_regular, not def_regular.
- PR ld/10426
- * elflink.c (elf_link_add_object_symbols): Turn an IFUNC symbol
- from a DSO into a normal FUNC symbol.
- (elf_link_output_extsym): Turn an undefined IFUNC symbol into
- a normal FUNC symbol.
+ PR ld/10426
+ * elflink.c (elf_link_add_object_symbols): Turn an IFUNC symbol
+ from a DSO into a normal FUNC symbol.
+ (elf_link_output_extsym): Turn an undefined IFUNC symbol into
+ a normal FUNC symbol.
* coffcode.h (sec_to_styp_flags): Partially revert (functional
changes only) earlier patch:-
- * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
- give .debug and .reloc data characteristics.
- (DOT_RELOC): New define for .reloc section string.
- (coff_write_object_contents): Use DOT_RELOC instead of string.
+ * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
+ give .debug and .reloc data characteristics.
+ (DOT_RELOC): New define for .reloc section string.
+ (coff_write_object_contents): Use DOT_RELOC instead of string.
BFD_HAVE_SYS_STAT_TYPE_MEMBER): New config functions.
* configure.in: Use them.
* configure: Regenerate.
- * config.in: Regnerate.
+ * config.in: Regenerate.
* vmsutil.c: Include sysdep.h, remove ansidecl.h.
#define _BSD_SOURCE. Add comments.
(vms_file_stats_name): Calculate creation date based on available
(bfd_mach_o_print_thread): Define.
* mach-o.c (text_section_names_xlat): Add an entry for __const.
- (bfd_mach_o_canonicalize_one_reloc, bfd_mach_o_canonicalize_relocs):
+ (bfd_mach_o_canonicalize_one_reloc, bfd_mach_o_canonicalize_relocs):
New functions extracted from ...
(bfd_mach_o_canonicalize_reloc): ... This. Simplified.
(bfd_mach_o_get_dynamic_reloc_upper_bound): New function.
(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...
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.
-
+ (opncls_iovec): Initialize bmmap member.
+
* mach-o.h (bfd_mach_o_symtab_command): Remove stabs_segment
- * bfdio.c (bfd_seek): Formatting. Ensure newly allocated memory
- for BFD_IN_MEMORY is cleared.
- (bfd_bwrite): Zero excess memory allocated.
+ * bfdio.c (bfd_seek): Formatting. Ensure newly allocated memory
+ for BFD_IN_MEMORY is cleared.
+ (bfd_bwrite): Zero excess memory allocated.