+2020-06-04 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-plugin/lto.exp (pr12758.exe): Add NOPIE_LDFLAGS.
+ * testsuite/ld-unique/unique.exp: Add NOPIE_LDFLAGS to unique
+ executable and dynamic executable tests.
+
+2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/config/default.exp (NOSANTIZE_CFLAGS): New.
+ * testsuite/ld-elf/linux-x86.exp: Add $NOSANTIZE_CFLAGS to
+ tests with run_ld_link_exec_tests.
+ * testsuite/ld-elf/shared.exp: Add $NOSANTIZE_CFLAGS to tests
+ with run_ld_link_tests.
+ * testsuite/ld-elf/tls.exp: Likewise.
+ * testsuite/ld-elfweak/elfweak.exp: Add $NOSANTIZE_CFLAGS to
+ tests with ld_link.
+ * testsuite/ld-gc/gc.exp: Add $NOSANTIZE_CFLAGS to cflags.
+ * testsuite/ld-plugin/lto.exp: Add $NOSANTIZE_CFLAGS to tests
+ with run_ld_link_tests.a
+ * testsuite/ld-plugin/plugin.exp: Append $NOSANTIZE_CFLAGS to
+ CFLAGS.
+ * testsuite/ld-selective/selective.exp: Add $NOSANTIZE_CFLAGS
+ to cflags and cxxflags.
+ * testsuite/ld-srec/srec.exp: Append $NOSANTIZE_CFLAGS to CC
+ and CXX.
+ * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Updated for
+ -fsanitize=undefined.
+ * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
+ * testsuite/ld-x86-64/x86-64.exp: Add $NOSANTIZE_CFLAGS to
+ tests with run_cc_link_tests and run_ld_link_tests.
+
+2020-06-03 Fangrui Song <maskray@google.com>
+ H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/25910
+ * NEWS: Mention --export-dynamic-symbol[-list].
+ * ld.texi: Document --export-dynamic-symbol[-list].
+ * ldgram.y: Pass current_dynamic_list_p to
+ lang_append_dynamic_list.
+ * ldlang.c (current_dynamic_list_p): New.
+ (ang_append_dynamic_list): Updated to take a pointer to
+ struct bfd_elf_dynamic_list * argument instead of using
+ link_info.dynamic_list.
+ (lang_append_dynamic_list_cpp_typeinfo): Pass
+ &link_info.dynamic_list to ang_append_dynamic_list.
+ (lang_append_dynamic_list_cpp_new): Likewise.
+ * ldlang.h (current_dynamic_list_p): New.
+ (lang_append_dynamic_list): Add a pointer to
+ struct bfd_elf_dynamic_list * argument.
+ * ldlex.h (option_values): Add OPTION_EXPORT_DYNAMIC_SYMBOL and
+ OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
+ * lexsup.c (ld_options): Add entries for
+ OPTION_EXPORT_DYNAMIC_SYMBOL and
+ OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
+ (parse_args): Handle --export-dynamic-symbol and
+ --export-dynamic-symbol-list.
+ * testsuite/ld-dynamic/export-dynamic-symbol-1.d: New.
+ * testsuite/ld-dynamic/export-dynamic-symbol-2.d: New.
+ * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: New.
+ * testsuite/ld-dynamic/export-dynamic-symbol-list-1.d: New.
+ * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: New.
+ * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: New.
+ * testsuite/ld-dynamic/export-dynamic-symbol.exp: New.
+ * testsuite/ld-dynamic/export-dynamic-symbol.s: New.
+ * testsuite/ld-dynamic/foo-bar.list: New.
+ * testsuite/ld-dynamic/foo.list: New.
+ * testsuite/ld-dynamic/foo.s: New.
+ * testsuite/ld-dynamic/fstar.list: New.
+ * testsuite/ld-elf/dlempty.list: New.
+ * testsuite/ld-elf/shared.exp: Add tests for
+ --export-dynamic-symbol and --export-dynamic-symbol-list.
+
+2020-06-03 Jan Beulich <jbeulich@suse.com>
+
+ * testsuite/ld-elf/linux-x86.exp: Make copied source files
+ writeable.
+
+2020-05-28 Nick Clifton <nickc@redhat.com>
+
+ PR 26047
+ * ldelf.c (ldelf_after_open): Fail if attempting to link one
+ executable into another. Ensure that the test is made for all
+ forms of linking.
+
+2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ * NEWS: Mention --enable-textrel-check=yes is default for
+ Linux/x86 targets.
+ * configure.tgt (ac_default_ld_textrel_check): Set to yes if
+ unset for Linux/x86 targets.
+
+2020-05-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/20824
+ * NEWS: Mention --enable-textrel-check=[no|yes|warning|error].
+ * configure.ac: Add --enable-textrel-check=[no|yes|warning|error].
+ (DEFAULT_LD_TEXTREL_CHECK): New AC_DEFINE_UNQUOTED.
+ (DEFAULT_LD_TEXTREL_CHECK_WARNING): Likewise.
+ * ldmain.c (main): Initialize link_info.textrel_check to
+ DEFAULT_LD_TEXTREL_CHECK.
+ * lexsup.c (ld_options): Check DEFAULT_LD_TEXTREL_CHECK_WARNING.
+ * config.in: Regenerated.
+ * configure: Likewise.
+
+2020-05-28 Nick Clifton <nickc@redhat.com>
+
+ * lexsup.c (parse_args): Generate an error if a name is not
+ provided to the -Map option.
+ (ld_options): Mention that the -Map option supports a directory
+ name as an argument.
+ * NEWS: Remove mention of support for an empty string as an
+ argument to -Map.
+ * ld.texi: Likewise.
+
+2020-05-27 Hans-Peter Nilsson <hp@axis.com>
+
+ PR ld/22909
+ * testsuite/ld-elf/pr19539.d: Don't xfail for cris*-*-*.
+
+2020-05-27 Rasmus Villemoes <rv@rasmusvillemoes.dk>
+ Nick Clifton <nickc@redhat.com>
+
+ * lexsup.c (parse_args): If the map filename is defined but empty
+ create a name based upon the output file name. If the name is
+ defined but refers to a directory create a file inside the
+ directory based on the output file name.
+ * ld.texi: Document the new feature.
+ * testsuite/ld-script/map-address.exp: Add test of new feature.
+ * NEWS: Mention the new feature.
+
+2020-05-27 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/22909
+ * NEWS: Mention --warn-textrel.
+ * ld.texi: Update -z text/notext/textoff. Add --warn-textrel.
+ Remove --warn-shared-textrel.
+ * ldlex.h (option_values): Rename OPTION_WARN_SHARED_TEXTREL to
+ OPTION_WARN_TEXTREL.
+ * lexsup.c (ld_options): Add --warn-textrel. Obsolete
+ --warn-shared-textrel.
+ (parse_args): Updated.
+ (elf_shlib_list_options): Check link_info.textrel_check.
+ * emultempl/elf.em: Updated.
+ * testsuite/ld-elf/pr19539.d: Replace -z notext with
+ --warn-textrel. Expect a warning.
+ * testsuite/ld-i386/warn1.d: Update expected warning.
+
+2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-ifunc/ifunc-23a-x86.d: Skip *-*-lynxos *-*-nto*.
+ * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
+ * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
+
+2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.
+
+2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-elf/eh6.d: Pass -z notext to linker.
+ * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
+ * testsuite/ld-elf/pr19539.d: Likewise.
+ * testsuite/ld-elfvers/vers.exp: Likewise.
+ * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
+ * testsuite/ld-i386/i386.exp: Likewise.
+ * testsuite/ld-i386/nogot1.d: Likewise.
+ * testsuite/ld-i386/pr19539.d: Likewise.
+ * testsuite/ld-i386/pr19636-2a.d: Likewise.
+ * testsuite/ld-i386/pr19636-2b.d: Likewise.
+ * testsuite/ld-i386/pr19636-2c.d: Likewise.
+ * testsuite/ld-i386/pr19636-2d.d: Likewise.
+ * testsuite/ld-i386/pr19636-2e.d: Likewise.
+ * testsuite/ld-i386/pr19636-3d.d: Likewise.
+ * testsuite/ld-i386/pr19636-3e.d: Likewise.
+ * testsuite/ld-i386/pr19939b.d: Likewise.
+ * testsuite/ld-i386/undefweaka.d: Likewise.
+ * testsuite/ld-i386/undefweakb.d: Likewise.
+ * testsuite/ld-shared/shared.exp: Likewise.
+ * testsuite/ld-size/size.exp: Likewise.
+ * testsuite/ld-unique/unique.exp: Likewise.
+ * testsuite/ld-x86-64/pie1.d: Likewise.
+ * testsuite/ld-x86-64/pr19539a.d: Likewise.
+ * testsuite/ld-x86-64/pr19539b.d: Likewise.
+ * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
+ * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
+ * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
+ * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
+ * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
+ * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
+ * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
+ * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
+ * testsuite/ld-x86-64/pr19939b.d: Likewise.
+ * testsuite/ld-x86-64/x86-64.exp: Likewise.
+
+2020-05-24 Fangrui Song <maskray@google.com>
+
+ PR ld/26018
+ * lexsup.c (parse_args): Simplify.
+ * testsuite/ld-elf/dl4e.out: New.
+ * testsuite/ld-elf/shared.exp: Updated for PR ld/26018 tests.
+
+2020-05-23 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/26018
+ * testsuite/ld-i386/i386.exp: Add a -Bsymbolic-functions test.
+ * testsuite/ld-x86-64/x86-64.exp: Likewise.
+ * testsuite/ld-i386/pr26018.d: New file.
+ * testsuite/ld-x86-64/pr26018.d: Likewise.
+ * testsuite/ld-x86-64/pr26018.s: Likewise.
+
+2020-05-21 Alan Modra <amodra@gmail.com>
+
+ * deffilep.y: Replace "if (x) free (x)" with "free (x)" thoughout.
+ * emultempl/elf.em: Likewise.
+ * emultempl/msp430.em: Likewise.
+ * emultempl/pe.em: Likewise.
+ * emultempl/pep.em: Likewise.
+ * emultempl/ppc64elf.em: Likewise.
+ * emultempl/xtensaelf.em: Likewise.
+ * ldelf.c: Likewise.
+ * ldfile.c: Likewise.
+ * ldmain.c: Likewise.
+ * ldmisc.c: Likewise.
+ * lexsup.c: Likewise.
+ * pe-dll.c: Likewise.
+
+2020-05-20 Nelson Chu <nelson.chu@sifive.com>
+
+ * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Updated
+ priv attributes according to the -mpriv-spec option.
+ * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
+
+2020-05-20 Alan Modra <amodra@gmail.com>
+
+ PR 25993
+ * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't copy
+ other_bfd_filename for bfd_set_filename, and test result of
+ bfd_set_filename call. Don't create a new is->filename, simply
+ copy from bfd filename. Free new_name after bfd_set_filename.
+ * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
+
+2020-05-19 Siddhesh Poyarekar <siddesh.poyarekar@arm.com>
+
+ * testsuite/ld-aarch64/aarch64-elf.exp: New test
+ emit-relocs-560.
+ * testsuite/ld-aarch64/emit-relocs-560.d: New file.
+ * testsuite/ld-aarch64/emit-relocs-560.s: New file.
+
+2020-05-19 Alan Modra <amodra@gmail.com>
+
+ * emultempl/beos.em (sort_by_file_name): Use bfd_get_filename
+ rather than accessing bfd->filename directly.
+ * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
+ * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
+ * emultempl/spuelf.em (embedded_spu_file): Likewise.
+ * ldlang.c (input_statement_is_archive_path, wild_sort),
+ (check_excluded_libs): Likewise.
+ * ldmain.c (add_archive_element): Likewise.
+ * ldmisc.c (vfinfo): Likewise.
+ * pe-dll.c (auto_export, generate_edata, pe_create_import_fixup),
+ (pe_dll_generate_implib, pe_process_import_defs): Likewise.
+ * plugin.c (plugin_object_p): Likewise.
+
+2020-05-18 Douglas B Rupp <rupp@adacore.com>
+
+ * ldemul.h (ldemul_print_symbol): New.
+ (ld_emulation_xfer_type) <print_symbol): Likewise.
+ * ldemul.c (ldemul_print_symbol): New.
+ * ldlang.c (SECTION_NAME_MAP_LANGTH): Move to ...
+ (print_one_symbol): Make global and move declaration to ...
+ (print_all_symbols): Rename print_one_symbol to ldemul_print_symbol
+ (print_input_section): Likewise
+ * ldlang.h: ... here.
+ * emultempl/aix.em (gld${EMULATION_NAME}_print_symbol): New.
+ (ld_emulation_xfer_struct): Use it.
+ * emultempl/armcoff.em (ld_emulation_xfer_struct): Add print_symbol
+ and default to NULL.
+ * emultempl/beos.em (ld_emulation_xfer_struct): Likewise
+ * emultempl/elf.em (ld_emulation_xfer_struct): Likewise
+ * emultempl/generic.em (ld_emulation_xfer_struct): Likewise
+ * emultempl/linux.em (ld_emulation_xfer_struct): Likewise
+ * emultempl/msp430.em (ld_emulation_xfer_struct): Likewise
+ * emultempl/pe.em (ld_emulation_xfer_struct): Likewise
+ * emultempl/pep.em (ld_emulation_xfer_struct): Likewise
+ * emultempl/ticoff.em (ld_emulation_xfer_struct): Likewise
+ * emultempl/vanilla.em (ld_emulation_xfer_struct): Likewise
+
+2020-05-18 Sergei Trofimovich <siarheit@google.com>
+
+ * ldmain.c (add_archive_element): Fix s/claimi/claim/ typo
+ in info message.
+
+2020-05-18 Nick Clifton <nickc@redhat.com>
+
+ * po/sv.po: Update Swedish translation.
+
+2020-05-18 Nick Clifton <nickc@redhat.com>
+
+ PR 25993
+ * emultempl/pe.em (_after_open): Check for duplicate filename
+ pointers before renaming the dll.
+ * emultempl/pep.em (_after_open): Likewise.
+
+2020-05-13 Nick Clifton <nickc@redhat.com>
+
+ PR 25979
+ * lexsup.c (elf_shlib_list_options): Include the default value for
+ the hash style in the output text.
+
+2020-05-11 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-powerpc/pcrelopt.s: Add lxvp and stxvp.
+ * testsuite/ld-powerpc/pcrelopt.d: Update.
+
+2020-05-11 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in
+ place of -mfuture/-Mfuture.
+ * testsuite/ld-powerpc/notoc2.d: Likewise.
+ * testsuite/ld-powerpc/powerpc.exp: Likewise.
+ * testsuite/ld-powerpc/tlsgd.d: Likewise.
+ * testsuite/ld-powerpc/tlsie.d: Likewise.
+ * testsuite/ld-powerpc/tlsld.d: Likewise.
+
+2020-05-11 Nick Clifton <nickc@redhat.com>
+
+ * po/es.po: Updated Spanish translation.
+
+2020-05-01 Wilco Dijkstra <wdijkstr@arm.com>
+
+ PR ld/25665
+ * testsuite/ld-aarch64/farcall-group.s: New large group test.
+ * testsuite/ld-aarch64/farcall-group.d: New test driver.
+ * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
+
+2020-05-01 Alan Modra <amodra@gmail.com>
+
+ PR 25882
+ * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for
+ shared libraries.
+
+2020-05-01 Alan Modra <amodra@gmail.com>
+
+ * po/BLD-POTFILES.in: Regenerate.
+
+2020-04-30 Alex Coplan <alex.coplan@arm.com>
+
+ * testsuite/ld-aarch64/erratum843419_tls_ie.d: Use udf in disassembly.
+ * testsuite/ld-aarch64/farcall-b-section.d: Likewise.
+ * testsuite/ld-aarch64/farcall-back.d: Likewise.
+ * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
+
2020-04-30 Nick Clifton <nickc@redhat.com>
* testsuite/ld-elf/compress1c.d: XFAIL if thet target linker does