-2014-05-27 DJ Delorie <dj@redhat.com>
-
- * ld/ldemul.h (extra_map_file_text): New field.
- (ldemul_extra_map_file_text): Declare.
- * ld/ldemul.c (ldemul_extra_map_file_text): Define.
- * ld/ldlang.c (lang_map): Call it.
-
- * ld/emultempl/rxelf.em: Add extra_map_file_text hook.
- * ld/emultempl/aix.em: Add NULL extra_map_file_text hook.
- * ld/emultempl/armcoff.em: Likewise.
- * ld/emultempl/beos.em: Likewise.
- * ld/emultempl/elf32.em: Likewise.
- * ld/emultempl/generic.em: Likewise.
- * ld/emultempl/gld960.em: Likewise.
- * ld/emultempl/gld960c.em: Likewise.
- * ld/emultempl/linux.em: Likewise.
- * ld/emultempl/lnk960.em: Likewise.
- * ld/emultempl/m68kcoff.em: Likewise.
- * ld/emultempl/pe.em: Likewise.
- * ld/emultempl/pep.em: Likewise.
- * ld/emultempl/sunos.em: Likewise.
- * ld/emultempl/ticoff.em: Likewise.
- * ld/emultempl/vanilla.em: Likewise.
-
-2014-05-24 Alan Modra <amodra@gmail.com>
-
- * ldlang.c (base): Move variable to..
- * mri.c: ..here, and make static.
- * ldlang.h (base): Delete declaration.
-
-2014-05-20 Hans-Peter Nilsson <hp@axis.com>
-
- * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
- * Makefile.in: Regenerate.
-
-2014-05-20 Alan Modra <amodra@gmail.com>
-
- PR 16952
- * emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
- * emultempl/ppc32elf.em (ppc_before_allocation): Call
- ppc_elf_maybe_strip_sdata_syms.
- * ldlang.c (size_input_section): Correct output_offset value
- for excluded input sections.
-
-2014-05-16 John Marino <binutils@marino.st>
-
- * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
-
-2014-05-11 Chung-Lin Tang <cltang@codesourcery.com>
-
- * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
- and gp in PROVIDE_HIDDEN.
-
-2014-05-10 Hans-Peter Nilsson <hp@bitrange.com>
-
- * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
- (output_bfd_hash_table_free_fn): New variable.
- (open_output): Save the _bfd_link_hash_table_free function for the
- output_bfd into output_bfd_hash_table_free_fn.
- * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
- on link_info.hash.
- * ldlang.h (output_bfd_hash_table_free_fn): Declare.
-
-2014-05-02 Alan Modra <amodra@gmail.com>
-
- * emultempl/metagelf.em: Update bfd target vector naming.
- * emultempl/nios2elf.em: Likewise.
- * emultempl/spuelf.em: Likewise.
- * emultempl/tic6xdsbt.em: Likewise.
-
-2014-04-22 Christian Svensson <blue@cmd.nu>
-
- * Makefile.am: Remove openrisc and or32 support. Add support for or1k.
- * configure.tgt: Likewise.
- * emulparams/elf32or1k.sh: New file.
- * emulparams/elf32or1k_linux.sh: New file.
- * emulparams/elf32openrisc.sh: Delete.
- * emulparams/or32.sh: Delete.
- * emulparams/or32elf.sh: Delete.
- * scripttempl/or32.sc: Delete.
- * Makefile.in: Regenerate.
-
-2014-04-21 Richard Henderson <rth@redhat.com>
-
- * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
-
-2014-04-16 Steve Ellcey <sellcey@mips.com>
-
- * emultempl/elf32.em: Include safe-ctype.h.
-
-2014-04-16 Steve Ellcey <sellcey@mips.com>
-
- * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
-
-2014-04-09 Nick Clifton <nickc@redhat.com>
-
- * Makefile.am (default-manifest.o): Remove rule.
- (EMUL_EXTRA_BINARIES): Delete.
- (ALL_EMUL_EXTRA_BINARIES): Delete.
- (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
- (install-data-local): Remove EMUL_EXTRA_BINARIES.
- * Makefile.in: Regenerate.
- * configure.in (all_emul_extra_binaries): Delete.
- (EMUL_EXTRA_BINARIES): Remove.
- * configure: Regenerate.
- * configure.tgt (target_extra_binaries): Delete.
- * emultempl/default-manifest.rc: Delete.
- * ld.texinfo: Remove discussion of default manifest.
- * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
- * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
-
-2014-04-09 Alan Modra <amodra@gmail.com>
-
- * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
- * emultempl/nds32elf.em: Include bfd_stdint.h.
- * po/POTFILES.in: Regenerate.
-
-2014-04-09 Alan Modra <amodra@gmail.com>
-
- * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
- (LDEMUL_FINISH): Define.
-
-2014-04-08 Nick Clifton <nickc@redhat.com>
-
- * scripttempl/pe.sc (R_RSRC): Remove default manifest.
- * scripttempl/pep.sc (R_RSRC): Remove default manifest.
-
-2014-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
-
- * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
- Move code for parsing build-id option and calculating the build-id to...
- * ldbuildid.c: New file.
- * ldbuildid.h: New file.
- * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
- files.
- * Makefile.in: Regenerate.
- * ld.texinfo: Update --build-id description to mention COFF
- support.
- * NEWS: Mention support for COFF build ids.
- * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
- (pecoff_checksum_contents, write_build_id, setup_build_id)
- (gld_${EMULATION_NAME}_after_open): Handle and implement
- build-id option.
- * emultempl/pep.em: Likewise.
-
-2014-04-04 Cary Coutant <ccoutant@google.com>
-
- PR gold/16804
- * ld.texinfo: Document optional comma following output section
- command and overlay command.
-
-2014-04-04 Alan Modra <amodra@gmail.com>
-
- * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
- current "fill", not "output_section_statement->fill".
-
-2014-03-31 Nick Clifton <nickc@redhat.com>
-
- PR ld/16744
- * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
- section when performing a relocatable link with -z [no]execstack
- specified.
-
-2014-03-27 H.J. Lu <hongjiu.lu@intel.com>
-
- PR ld/16756
- * ldmain.c (symbol_warning): New function.
- (warning_callback): Use it. Scan all input files for a reference
- to SYMBOL.
-
-2014-03-21 Christopher Faylor <me.cygwin2013@cgf.cx>
-
- * ld.texinfo: Document change in handling of --enable-auto-image-base.
- * emultempl/pe.em (pe_auto_image_base): Set to default base.
- (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
- optional --enable-auto-image-base argument.
- (gld${EMULATION_NAME}_handle_option): Handle optional
- --enable-auto-image-base argument.
- (compute_dll_image_base): Eliminate constant. Use pe_auto_image_base.
-
-2014-03-19 Nick Clifton <nickc@redhat.com>
-
- * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
- * Makefile.in: Regenerate.
- * emultempl/default-manifest.rc: Fix typo.
- * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
- (.rsrc): Add SUBALIGN(4). Remove SORT.
- * scripttempl/pep.sc: Likewise.
-
-2014-03-17 Christopher Faylor <me.cygwin2014@cgf.cx>
-
- * Makefile.am: Use host version of windres.
- * Makefile.in: Regenerate.
-
-2014-03-14 Romain Geissler <romain.geissler@amadeus.com>
- Alan Modra <amodra@gmail.com>
-
- * ldlang.h (full_name_provided): New input flag.
- * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
- for -l:namespec. Instead use lang_input_file_is_l_enum with
- full_name_provided flag.
- * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
- full_name_provided flag is set.
- * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
- Handle full_name_provided libraries. Tidy EXTRA_SHLIB_EXTENSION
- support. Set DT_NEEDED for -l:namespec as namespec.
- * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
- * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
- Don't handle full_name_provided libraries.
- * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
- * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
- * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
-
-2014-03-12 Alan Modra <amodra@gmail.com>
-
- * Makefile.in: Regenerate.
-
-2014-03-05 Alan Modra <amodra@gmail.com>
-
- Update copyright years.
-
-2014-03-04 Nick Clifton <nickc@redhat.com>
-
- * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
- * Makefile.in: Regenerate.
-
-2014-02-27 Yuri Gribov <y.gribov@samsung.com>
-
- * emultempl/armelf.em (OPTION_LONG_PLT): Define.
- (PARSE_AND_LIST_LONGOPTS): Add long-plt.
- (PARSE_AND_LIST_OPTIONS): Likewise.
- (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
- * ld.texinfo: Document --long-plt.
-
-2014-02-27 Alan Modra <amodra@gmail.com>
-
- * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
- use ppc32elf.em.
- * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
- vxworks.
- (LDEMUL_AFTER_OPEN): Don't set for vxworks.
- (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
- -secure-plt, -bss-plt and -sdata-got when vxworks.
-
-2014-02-27 Nick Clifton <nickc@redhat.com>
-
- * configure.in (all_emul_extra_binaries): New variable. Populated
- by invoking configure.tgt.
- (EMUL_EXTRA_BINARIES): New substitution.
- * configure: Regenerate.
- * configure.tgt (target_extra_binaries): New variable. Set to
- default-manifest.o for Cygwin and MinGW targets.
- * Makefile.am (EMUL_EXTRA_BINARIES): New variable. Initialised
- by the configure script.
- (ALL_EMUL_EXTRA_BINARIES): New variable.
- (default-manifest.o): New rule to build the default manifest.
- (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
- (install-data-local): Add EMUL_EXTRA_BINARIES.
- * Makefile.in: Regenerate.
- * ld.texinfo: Document default manifest support.
- * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
- * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
- * emultempl/default-manifest.rc: New file.
- * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
- * scripttempl/pep.sc (R_RSRC): Likewise.
-
-2014-02-26 Dan Mick <dan.mick@inktank.com>
-
- PR ld/16569
- * ldcref.c (cref_sort_array): Compare unmangled names unless
- demanglng has been requiested.
- (output_one_cref): Output unmangled name unless demangling has
- been requested.
-
-2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
- H.J. Lu <hongjiu.lu@intel.com>
-
- * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
-
-2014-02-19 Alan Modra <amodra@gmail.com>
-
+2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * configure.ac: Add AC_FUNC_MMAP.
+ * config.in: Regenerated.
+ * configure: Likewise.
+ * plugin.c: Include <sys/mman.h>.
+ (MAP_FAILED): New. Defined if not defined.
+ (PROT_READ): Likewise.
+ (MAP_PRIVATE): Likewise.
+ (view_buffer_t): New.
+ (plugin_input_file_t): Add view_buffer.
+ (get_view): Try mmap and cache the view buffer.
+ (plugin_maybe_claim): Initialize view_buffer.
+
+2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
+
+ * plugin.c (release_input_file): Set fd to -1 after closing it.
+ (plugin_maybe_claim): Close fd only if fd != -1.
+
+2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/17878
+ * plugin.c: Include <errno.h>.
+ (errno): New. Declare if needed.
+ (plugin_input_file_t): New.
+ (get_input_file): Implemented.
+ (get_view): Likewise.
+ (release_input_file): Likewise.
+ (add_symbols): Updated.
+ (get_symbols): Likewise.
+ (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
+ only for a bfd_object input.
+
+2015-02-02 Alan Modra <amodra@gmail.com>
+
+ * emultempl/ppc64elf.em (toc_section_name): New var.
+ (ppc_after_open): Set it.
+ (ppc_before_allocation): Use it.
+ (gld${EMULATION_NAME}_after_allocation): Here too.
+
+2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
+ with link_info.lto_plugin_active.
+ * ldlang.c (lang_process): Likewise.
+ * ldmain.c (add_archive_element): Likewise.
+ * plugin.c (plugin_active_plugins_p): Removed.
+ * plugin.h (plugin_active_plugins_p): Likewise.
+
+2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
+ ...
+ * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
+
+2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/17878
+ * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
+ (get_view): New function.
+ (set_tv_header): Handle LDPT_GET_VIEW.
+ * testplug.c (tag_names): Add LDPT_GET_VIEW.
+ (tv_get_view): New.
+ (dump_tv_tag): Handle LDPT_GET_VIEW.
+ (parse_tv_tag): Likewise.
+
+2015-01-28 Alan Modra <amodra@gmail.com>
+
+ * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.