ld testsuite fails with default-PIE compiler
[deliverable/binutils-gdb.git] / ld / ChangeLog
index 023c934bad971585f644a9ab9a9783ca7c555607..363685d39c65bffdd932a160da2b5588d9025939 100644 (file)
@@ -1,3 +1,75 @@
+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
This page took 0.024768 seconds and 4 git commands to generate.