x86_64 k1om tests
[deliverable/binutils-gdb.git] / ld / ChangeLog
index c8a6cbc7e5b0c9fbe94a67ee35ee3b37b1433ae0..0a07057e54baab05c03b7bc8e47b0b4f68b321db 100644 (file)
@@ -1,3 +1,352 @@
+2020-06-29  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-x86-64/abs-k1om.d: Run only on x86_64-*-linux*.
+       * testsuite/ld-x86-64/protected2-k1om.d: Likewise.
+       * testsuite/ld-x86-64/protected3-k1om.d: Likewise.
+
+2020-06-26  Nick Alcock  <nick.alcock@oracle.com>
+
+       * configure.ac [--enable-libctf]: New, default yes.
+       Set ENABLE_LIBCTF accordingly.
+       * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF.
+       * configure: Regenerate.
+       * config.in: Regenerate.
+       * Makefile.in: Regenerate.
+       * aclocal.m4: Regenerate.
+       * ldlang.c (ctf_output): Conditionalize on ENABLE_LIBCTF.
+       (ldlang_open_ctf): Likewise.
+       (lang_merge_ctf): Likewise.
+       (ldlang_ctf_apply_strsym): Likewise.
+       (lang_write_ctf): Likewise.
+       (ldlang_write_ctf_late): Likewise.
+       (ldlang_open_ctf) [!ENABLE_LIBCTF]: Warn about the presence of CTF
+       sections.
+       (lang_merge_ctf) [!ENABLE_LIBCTF]: New stub.
+       (ldlang_ctf_apply_strsym) [!ENABLE_LIBCTF]: Likewise.
+       (lang_write_ctf) [!ENABLE_LIBCTF]: Likewise.
+       (ldlang_write_ctf_late) [!ENABLE_LIBCTF]: Likewise.
+       * ldelfgen.c (ldelf_emit_ctf_early): Conditionalize on
+       ENABLE_LIBCTF.
+       (struct ctf_strsym_iter_cb_arg): Likewise.
+       (ldelf_ctf_strtab_iter_cb): Likewise.
+       (ldelf_ctf_symbols_iter_cb): Likewise.
+       (ldelf_examine_strtab_for_ctf): Likewise.
+       (ldelf_emit_ctf_early) [!ENABLE_LIBCTF]: New stub.
+       (ldelf_examine_strtab_for_ctf) [!ENABLE_LIBCTF]: New stub.
+
+2020-06-26  Jan Beulich  <jbeulich@suse.com>
+
+       * testsuite/ld-x86-64/x86-64.exp: Run K1OM tests.
+
+2020-06-26  Pat Bernardi  <bernardi@adacore.com>
+
+       * testsuite/ld-m68k/attr-gnu-4-0.s: New file.
+       * testsuite/ld-m68k/attr-gnu-4-1.s: Likewise.
+       * testsuite/ld-m68k/attr-gnu-4-2.s: Likewise.
+       * testsuite/ld-m68k/attr-gnu-4-00.d: Likewise.
+       * testsuite/ld-m68k/attr-gnu-4-01.d: Likewise.
+       * testsuite/ld-m68k/attr-gnu-4-02.d: Likewise.
+       * testsuite/ld-m68k/attr-gnu-4-10.d: Likewise.
+       * testsuite/ld-m68k/attr-gnu-4-11.d: Likewise.
+       * testsuite/ld-m68k/attr-gnu-4-12.d: Likewise.
+       * testsuite/ld-m68k/attr-gnu-4-20.d: Likewise.
+       * testsuite/ld-m68k/attr-gnu-4-21.d: Likewise.
+       * testsuite/ld-m68k/attr-gnu-4-22.d: Likewise.
+       * testsuite/ld-m68k/m68k.exp: Run the new tests.
+
+2020-06-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/26165
+       * lexsup.c (ld_options): Correct --dependency-file order.
+
+2020-06-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/26083
+       * testsuite/ld-csky/tls-ie-v1.d: Updated.
+       * testsuite/ld-csky/tls-ie.d: Likewise.
+
+2020-06-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/26083
+       * testsuite/ld-cris/libdso-15b.d: Updated.
+       * testsuite/ld-cris/libdso-1c.d: Likewise.
+       * testsuite/ld-cris/libdso-1d.d: Likewise.
+       * testsuite/ld-cris/libdso-15c.d: New file.
+
+2020-06-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/26163
+       * ldexp.c (exp_fold_tree_1): Set non_ir_ref_regular on the source
+       for assignment.
+       * testsuite/ld-plugin/lto.exp: Run ld/26163 test.
+       * testsuite/ld-plugin/pr26163a.c: New file.
+       * testsuite/ld-plugin/pr26163b.c: Likewise.
+
+2020-06-24  Alan Modra  <amodra@gmail.com>
+
+       * lexsup.c (elf_shlib_list_options): Properly format help message.
+       (elf_plt_unwind_list_options): Likewise.
+       * emultempl/cskyelf.em (PARSE_AND_LIST_OPTIONS): Likewise.
+
+2020-06-23  Roland McGrath  <mcgrathr@google.com>
+
+       PR 22843
+       * NEWS: Note --dependency-file.
+       * ld.texi (Options): Document --dependency-file.
+       * ldlex.h (enum option_values): Add OPTION_DEPENDENCY_FILE.
+       * ld.h (ld_config_type): New member dependency_file.
+       * lexsup.c (ld_options, parse_args): Parse --dependency-file.
+       * ldmain.c (struct dependency_file): New type.
+       (dependency_files, dependency_files_tail): New static variables.
+       (track_dependency_files): New function.
+       (write_dependency_file): New function.
+       (main): Call it when --dependency-file was passed.
+       * ldfile.c (ldfile_try_open_bfd): Call track_dependency_files.
+       (ldfile_open_command_file_1): Likewise.
+       * ldelf.c (ldelf_try_needed): Likewise.
+       * pe-dll.c (pe_implied_import_dll): Likewise.
+
+2020-06-23  Alan Modra  <amodra@gmail.com>
+
+       PR 26150
+       * ldlang.c (ldlang_add_file): Assert that we aren't adding the
+       current end of link.next list again too.
+       * ldmain.c (add_archive_element): Don't load archive elements
+       again that have already been loaded.
+
+2020-06-23  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-elf/shared.exp (pr14170): Clear xfail for
+       bfin-*-linux*.
+       (pr17068, symbolic-func.so, pr22374): Likewise.
+
+2020-06-22  Nelson Chu  <nelson.chu@sifive.com>
+
+       * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
+       * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Updated.
+       * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Updated.
+       * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Updated.
+       * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Updated.
+       * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Updated.
+
+2020-06-21  Alan Modra  <amodra@gmail.com>
+
+       * ldfile.c: Replace uses of ENABLE_PLUGINS with BFD_SUPPORTS_PLUGINS.
+       * ldlang.c: Likewise.
+       * ldlang.h: Likewise.
+       * ldlex.h: Likewise.
+       * ldmain.c: Likewise.
+       * lexsup.c: Likewise.
+       * plugin.c: Wrap body of file in #if BFD_SUPPORTS_PLUGINS.
+       * testplug.c: Likewise.
+       * testplug2.c: Likewise.
+       * testplug3.c: Likewise.
+       * testplug4.c: Likewise.
+       * configure.ac (ENABLE_PLUGINS): Don't define AM_CONTITIONAL.
+       * Makefile.am: Remove ENABLE_PLUGINS conditionals.
+       (PLUGIN_CFLAGS): Don't define.
+       (PLUGIN_C, PLUGIN_H, PLUGIN_OBJECT): Likewise.  Substitute all
+       uses with plugin file name.
+       * configure: Regenerate.
+       * Makefile.in: Regenerate.
+
+2020-06-20  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/lib/ld-lib.exp (default_ld_compile): Don't perror on
+       a compiler error.
+       (default_ld_assemble): Similarly for an assembler error.
+       (default_ld_nm): Similarly for an nm error.
+       (run_ld_link_tests): Report ld_assemble errors as a fail.
+       (check_as_cfi): Remove now unnecessary perror substitution.
+       * testsuite/ld-elf/exclude.exp: Report ld_nm error return as test
+       fails rather then unresolved.
+       * testsuite/ld-gc/gc.exp: Likewise.
+       * testsuite/ld-scripts/alignof.exp: Likewise.
+       * testsuite/ld-scripts/defined.exp: Likewise.
+       * testsuite/ld-scripts/script.exp: Likewise.
+       * testsuite/ld-scripts/sizeof.exp: Likewise.
+       * testsuite/ld-selective/selective.exp: Likewise.
+       * testsuite/ld-scripts/extern.exp: Likewise.  Return on ld_link
+       failure.
+       * testsuite/ld-elfweak/elfweak.exp: Report compiler errors as
+       test unresolved.
+       * testsuite/ld-fastcall/fastcall.exp: Report assember errors as
+       test fails.
+       * testsuite/ld-i386/i386.exp (iamcu_tests): Likewise.
+       * testsuite/ld-ia64/line.exp: Likewise.
+       * testsuite/ld-mep/mep.exp: Likewise.
+       * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
+       * testsuite/ld-nios2/nios2.exp: Likewise.
+       * testsuite/ld-scripts/alignof.exp: Likewise.
+       * testsuite/ld-x86-64/line.exp: Likewise.
+       * testsuite/ld-x86-64/x86-64.exp: Likewise.
+       * testsuite/ld-scripts/log2.exp: Formatting.
+       * testsuite/ld-tic6x/tic6x.exp: Report ld_link errors as a test fail.
+
+2020-06-20  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-alpha/alpha.exp: Exclude *ecoff targets.
+       * testsuite/ld-elf/binutils.exp: Likewise.
+       * testsuite/ld-elf/tls.exp: Likewise.
+       * testsuite/ld-elf/tls_common.exp: Likewise.
+       * testsuite/ld-scripts/phdrs2.exp: Likewise.
+
+2020-06-20  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-sh/sh.exp: Don't run relax tests for non-ELF.
+       Fail when ld_assemble fails.  Use elseif to reduce indentation.
+
+2020-06-19  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-elf/dynamic-1.rd: Accept st_other notations.
+       * testsuite/ld-elf/rdynamic-1.rd: Likewise.
+       * testsuite/ld-elf/pr9676.rd: Likewise.
+       * testsuite/ld-elf/pr9679.rd: Likewise.
+       * testsuite/ld-elfvers/vers30.dsym: Likewise.
+       * testsuite/ld-elfvers/vers31.dsym: Likewise.
+       * testsuite/ld-plugin/pr22983.1.d: Likewise.
+       * testsuite/ld-plugin/pr22983.2.d: Likewise.
+       * testsuite/ld-plugin/pr22983.3.d: Likewise.
+       * testsuite/ld-plugin/pr22983.4.d: Likewise.
+       * testsuite/ld-ifunc/ifunc.exp: Exclude alpha.
+
+2020-06-19  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Omit
+       -z relro and -z norelro when target support for GNU_RELRO is lacking.
+       (gld${EMULATION_NAME}_before_parse): Ignore RELRO default too.
+       * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse): Ignore
+       RELRO default when target support for GNU_RELRO is lacking.
+       * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
+       * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Likewise.
+       * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
+       * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
+       * testsuite/ld-elf/pr16322.d: xfail when no relro support.
+       * testsuite/ld-elf/pr22393-1a.d: Likewise.
+       * testsuite/ld-elf/pr22393-1b.d: Likewise.
+       * testsuite/ld-elf/shared.exp (pr20995-2.so, pr20995-2): Likewise.
+       * testsuite/lib/ld-lib.exp (run_ld_link_tests): Use check_relro_support
+       to decide whether to pass extra ld option "-z norelro".
+
+2020-06-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Append "-w"
+       to cflags.
+
+2020-06-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-elf/linux-x86.exp: Require GCC 5 for Build
+       pr25749-1b (-pie -fPIE).
+
+2020-06-16  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE.
+       * testsuite/ld-elf/indirect1b.c: Replace asm with __asm__.
+       * testsuite/ld-elf/indirect2.c: Likewise.
+       * testsuite/ld-elf/indirect3b.c: Likewise.
+       * testsuite/ld-elf/indirect4b.c: Likewise.
+       * testsuite/ld-elf/pr14323-2.c: Likewise.
+       * testsuite/ld-elf/pr18720b.c: Likewise.
+       * testsuite/ld-elf/pr19553c.c: Likewise.
+       * testsuite/ld-elf/pr23428.c: Likewise.
+       * testsuite/ld-elfvers/vers27b.c: Likewise.
+       * testsuite/ld-elfvsb/common.c: Likewise.
+       * testsuite/ld-elfvsb/main.c: Likewise.
+       * testsuite/ld-elfvsb/sh1.c: Likewise.
+       * testsuite/ld-elfvsb/test.c: Likewise.
+       * testsuite/ld-pe/aligncomm-1.c: Likewise.
+       * testsuite/ld-pe/aligncomm-2.c: Likewise.
+       * testsuite/ld-pe/aligncomm-3.c: Likewise.
+       * testsuite/ld-pe/aligncomm-4.c: Likewise.
+       * testsuite/ld-plugin/pr23958.c: Likewise.
+       * testsuite/ld-size/size-1b.c: Likewise.
+       * testsuite/ld-size/size-2b.c: Likewise.
+       * testsuite/ld-size/size-3a.c: Likewise.
+       * testsuite/ld-size/size-3b.c: Likewise.
+       * testsuite/ld-size/size-3c.c: Likewise.
+       * testsuite/ld-size/size-4b.c: Likewise.
+       * testsuite/ld-size/size-5b.c: Likewise.
+       * testsuite/ld-size/size-6a.c: Likewise.
+       * testsuite/ld-size/size-7a.c: Likewise.
+       * testsuite/ld-size/size-8a.c: Likewise.
+       * testsuite/ld-size/size-9b.c: Likewise.
+       * testsuite/ld-size/size-10b.c: Likewise.
+
+2020-06-16  Alan Modra  <amodra@gmail.com>
+
+       * emulparams/tic30aout.sh: Delete file.
+       * scripttempl/tic30aout.sc: Delete file.
+       * Makefile.am: Remove etic30aout.c from ALL_EMULATION_SOURCES and
+       delete dependency.
+       * configure.tgt: Delete tic30-*-*aout* entry.
+       * testsuite/ld-scripts/sane1.d: Delete tic30-*-aout mention.
+       * testsuite/ld-scripts/segment-start.d: Likewise.
+       * Makefile.in: Regenerate.
+       * po/BLD-POTFILES.in: Regenerate.
+
+2020-06-15  Max Filippov  <jcmvbkbc@gmail.com>
+
+       * emultempl/xtensaelf.em (XSHAL_ABI): Remove macro definition.
+       (XTHAL_ABI_UNDEFINED, XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
+       macros.
+       (elf32xtensa_abi): New declaration.
+       (xt_config_info_unpack_and_check): Set elf32xtensa_abi if it is
+       undefined.  Use xtensa_abi_choice instead of XSHAL_ABI to test
+       ABI tag consistency.
+       (xtensa_add_config_info): Use xtensa_abi_choice instead of
+       XSHAL_ABI to format ABI tag.
+       (PARSE_AND_LIST_PROLOGUE): Define OPTION_ABI_WINDOWED,
+       OPTION_ABI_CALL0 and declare elf32xtensa_abi.
+       (PARSE_AND_LIST_LONGOPTS): Add entries for --abi-windowed and
+       --abi-call0.
+       (PARSE_AND_LIST_OPTIONS): Add help text for --abi-windowed and
+       --abi-call0.
+       (PARSE_AND_LIST_ARGS_CASES): Add handlers for --abi-windowed and
+       --abi-call0.
+       * ld.texi: Add description for options --abi-windowed and
+       --abi-call0.
+
+2020-06-15  Roland McGrath  <mcgrathr@google.com>
+
+       * NEWS: Mention -z start-stop-visibility=... option for ELF.
+       * ld.texi (Options): Document -z start-stop-visibility=... option.
+       * ldmain.c (main): Initialize link_info.start_stop_visibility.
+       * emultempl/elf.em (gld${EMULATION_NAME}_handle_option):
+       Parse -z start-stop-visibility=... option.
+
+2020-06-15  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-scripts/include.exp: Don't load ld-lib.exp.
+       * testsuite/ld-scripts/phdrs3.exp: Likewise.
+       * testsuite/ld-scripts/rgn-at.exp: Likewise.
+       * testsuite/ld-scripts/rgn-over.exp: Likewise.
+       * testsuite/ld-scripts/sort.exp: Likewise.
+       * testsuite/ld-discard/discard.exp: Likewise.  Use is_elf_format.
+
+2020-06-15  Alan Modra  <amodra@gmail.com>
+
+       PR 26103
+       * testsuite/ld-linkonce/ref1.s,
+       * testsuite/ld-linkonce/ref2.s,
+       * testsuite/ld-linkonce/sym1.s,
+       * testsuite/ld-linkonce/sym2.s,
+       * testsuite/ld-linkonce/sym3.s: New test files.
+       * testsuite/ld-linkonce/linkonce.exp: Run tests for PE too.
+       Add pr26103 test.  Remove unnecessary load_lib.
+
+2020-06-15  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-linkonce/zeroeh_x.s: Rename from x.s.
+       * testsuite/ld-linkonce/zeroeh_y.s: Rename from y.s.
+       * testsuite/ld-linkonce/zeroehl32.d: Adjust for renaming.  Support
+       big-endian output.  Run for powerpc.
+
+2020-06-11  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-plugin/lto.exp (lto_link_tests): Move lto-6,
+       pr12760, pr23818 and pr23958 tests to..
+       (lto_link_elf_tests): ..here.
+
 2020-06-11  Nick Clifton  <nickc@redhat.com>
 
        * testsuite/ld-elf/pr26094-1b.c (main): Change return type to
This page took 0.032524 seconds and 4 git commands to generate.