+2020-08-25 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-libs/libs.exp: Don't run on sh-pe, tic30 or tic54x.
+ * testsuite/ld-scripts/data.d: xfail tic4x and tic54x.
+ * testsuite/ld-scripts/empty-address-2a.d: xfail tic54x.
+ * testsuite/ld-scripts/empty-address-2b.d: Likewise.
+ * testsuite/ld-scripts/include-1.d: xfail tic4x and tic54x.
+ * testsuite/ld-scripts/provide-1.d: xfail tic54x.
+ * testsuite/ld-scripts/provide-2.d: Likewise.
+ * testsuite/ld-scripts/provide-4.d: Likewise.
+
+2020-08-24 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-sparc/tlssunbin32.rd: Update for new readelf output.
+ * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
+
+2020-08-24 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-powerpc/tls32.d: Update for TPREL_HA/LO optimisation.
+ * testsuite/ld-powerpc/tlsexe32.d: Likewise.
+ * testsuite/ld-powerpc/tlsldopt32.d: Likewise.
+ * testsuite/ld-powerpc/tlsmark32.d: Likewise.
+ * testsuite/ld-powerpc/tlsopt4_32.d: Likewise.
+ * testsuite/ld-powerpc/tprel.s,
+ * testsuite/ld-powerpc/tprel.d,
+ * testsuite/ld-powerpc/tprel32.d: New tests.
+ * testsuite/ld-powerpc/tprelbad.s,
+ * testsuite/ld-powerpc/tprelbad.d: New test.
+ * testsuite/ld-powerpc/powerpc.exp: Run them.
+
+2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/26382
+ * testsuite/ld-elf/pr26302.nd: Updated.
+ * testsuite/ld-elf/pr26302.rd: New file.
+ * testsuite/ld-elf/shared.exp: Add a test for readelf -sW.
+
+2020-08-20 Nick Clifton <nickc@redhat.com>
+
+ PR 26428
+ * testsuite/ld-elf/zlibbegin.rS: Update expected output.
+ * testsuite/ld-elf/zlibnormal.rS: Likewise.
+
+2020-08-16 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-powerpc/inline.s,
+ * testsuite/ld-powerpc/inline-1.d,
+ * testsuite/ld-powerpc/inline-2.d,
+ * testsuite/ld-powerpc/inline-3.d,
+ * testsuite/ld-powerpc/inline-4.d,
+ * testsuite/ld-powerpc/inlinepcrel.s,
+ * testsuite/ld-powerpc/inlinepcrel-1.d,
+ * testsuite/ld-powerpc/inlinepcrel-2.d,
+ * testsuite/ld-powerpc/inlinepcrel-3.d: New tests.
+ * testsuite/ld-powerpc/powerpc.exp: Run them.
+
+2020-08-16 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/26389
+ * testsuite/ld-plugin/lto.exp: Run PR binutils/26389 test.
+ * testsuite/ld-plugin/pr26389.c: New file.
+ * testsuite/ld-plugin/pr26389.d: Likewise.
+
+2020-08-14 Tamar Christina <tamar.christina@arm.com>
+
+ * testsuite/ld-arm/thumb-plt-got.d: Relax regexpr.
+ * testsuite/ld-arm/thumb-plt.d: Likewise.
+
+2020-08-13 Alan Modra <amodra@gmail.com>
+
+ * emultempl/ppc64elf.em (params): Init new field.
+ (enum ppc64_opt): Add OPTION_NO_PCREL_OPT.
+ (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS),
+ (PARSE_AND_LIST_ARGS_CASES): Support --no-pcrel-optimize.
+
+2020-08-10 Nick Clifton <nickc@redhat.com>
+
+ PR ld/21351
+ * ld.texi: Clarify the behaviour of the --relax and --no-relax
+ options on systems that do not support them.
+
+2020-08-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/26302
+ * testsuite/ld-elf/pr26302.nd: New file.
+ * testsuite/ld-elf/pr26302.ver: Likewise.
+ * testsuite/ld-elf/pr26302a.c: Likewise.
+ * testsuite/ld-elf/pr26302b.c: Likewise.
+ * testsuite/ld-elf/shared.exp: Run binutils/26302 tests.
+
+2020-08-07 David Faust <david.faust@oracle.com>
+
+ * testsuite/ld-bpf/call-3.s: New file.
+ * testsuite/ld-bpf/call-3.d: Likewise.
+
+2020-08-05 David Faust <david.faust@oracle.com>
+
+ * testsuite/ld-bpf/call-2.s: New file.
+ * testsuite/ld-bpf/call-2.d: Likewise.
+ * testsuite/ld-bpf/reloc-data-be.d: Likewise.
+ * testsuite/ld-bpf/reloc-data-le.d: Likewise.
+ * testsuite/ld-bpf/reloc-data.s: Likewise.
+ * testsuite/ld-bpf/reloc-insn-external-be.d: Likewise.
+ * testsuite/ld-bpf/reloc-insn-external-le.d: Likewise.
+ * testsuite/ld-bpf/reloc-insn-external.s: Likewise.
+ * testsuite/ld-bpf/reloc-insn32-be.d: Likewise.
+ * testsuite/ld-bpf/reloc-insn32-le.d: Likewise.
+ * testsuite/ld-bpf/reloc-insn32.s: Likewise.
+ * testsuite/ld-bpf/reloc-insn64-be.d: Likewise.
+ * testsuite/ld-bpf/reloc-insn64-le.d: Likewise.
+ * testsuite/ld-bpf/reloc-insn64.s: Likewise.
+
+2020-08-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
+
+ * emultempl/msp430.em (change_output_section): Update the tail
+ of the output section statement list when moving the original
+ tail to a different output section.
+ (eval_upper_either_sections): Don't move sections from the upper
+ region to the lower region unless the upper region is
+ overflowing.
+
+2020-08-03 Alan Modra <amodra@gmail.com>
+
+ * ldlex.l (yy_create_string_buffer): Use xmalloc rather than malloc.
+ * lexsup.c (parse_args): Likewise.
+
+2020-08-03 Alan Modra <amodra@gmail.com>
+
+ PR 26328
+ * configure.ac: AC_CHECK_DECLS asprintf.
+ * configure: Regenerate.
+ * config.in: Regenerate.
+
+2020-08-03 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-elfvers/vers.exp (objdump_symstuff): Remove unused
+ variable. Init list_a and list_b to empty.
+ (objdump_dynsymstuff): Likewise, and remove undefined list_a
+ handling.
+ * testsuite/ld-elfweak/elfweak.exp (objdump_symstuff): Similarly.
+ (objdump_dynsymstuff): Similarly.
+
+2020-07-31 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-elf/indirect.exp: Append -fno-lto to CC.
+ * testsuite/ld-elfvers/vers.exp: Likewise.
+ * testsuite/ld-elfweak/elfweak.exp: Likewise.
+ * testsuite/ld-ifunc/ifunc.exp: Likewise.
+ * testsuite/ld-plugin/lto.exp (no_lto): New.
+ Add $no_lto to build pr15146c.so.
+ * testsuite/lib/ld-lib.exp (at_least_gcc_version): Filter out
+ -Wl,xxx options.
+ (check_gcc_plugin_enabled): Likewise.
+ (run_ld_link_exec_tests): Prepend -fno-lto to $cflags.
+ (run_cc_link_tests): Likewise.
+
+2020-07-31 Shahab Vahedi <shahab@synopsys.com>
+
+ * scripttempl/elfarc.sc (.init_array): Keep ".init_array.*".
+ (.fini_array): Keep ".fini_array.*".
+
+2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
+ * Makefile.in: Regenerate.
+ * configure: Regenerate.
+
+2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
+
+ * testsuite/ld-elf/sec64k.exp: Also accept a section symbol with
+ a name.
+ * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: New
+ test.
+ * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: New
+ test.
+ * testsuite/ld-mips-elf/global-local-symtab-sort-n32.d: New
+ test.
+ * testsuite/ld-mips-elf/global-local-symtab-sort-n32t.d: New
+ test.
+ * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: New
+ test.
+ * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: New
+ test.
+ * testsuite/ld-mips-elf/global-local-symtab-final-o32.d: New
+ test.
+ * testsuite/ld-mips-elf/global-local-symtab-final-n32.d: New
+ test.
+ * testsuite/ld-mips-elf/global-local-symtab-final-n64.d: New
+ test.
+ * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
+
+2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
+
+ * testsuite/ld-mips-elf/global-local-symtab-o32.d: New test.
+ * testsuite/ld-mips-elf/global-local-symtab-o32t.d: New test.
+ * testsuite/ld-mips-elf/global-local-symtab-n32.d: New test.
+ * testsuite/ld-mips-elf/global-local-symtab-n32t.d: New test.
+ * testsuite/ld-mips-elf/global-local-symtab-n64.d: New test.
+ * testsuite/ld-mips-elf/global-local-symtab.ld: New test linker
+ script.
+ * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
+
+2020-07-29 Alan Modra <amodra@gmail.com>
+
+ * ldelf.c (ldelf_before_place_orphans): Set SEC_EXCLUDE for
+ discarded sections.
+
+2020-07-28 Alan Modra <amodra@gmail.com>
+
+ * ldlang.c (lang_check): Don't complain about relocs or merge
+ attributes from --just-symbols input.
+ * testsuite/ld-misc/just-symbols.exp: Just dump .data section.
+ Don't run test on a number of targets.
+
+2020-07-28 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-misc/just-symbols-1.dd: Revert last change.
+
+2020-07-27 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-misc/just-symbols.exp: Run for x86_64 PE too.
+ Set LDFLAGS for PE and XCOFF.
+ * testsuite/ld-misc/just-symbols.ld: Accept XCOFF mapped .data.
+ * testsuite/ld-misc/just-symbols-1.dd: Don't check format or
+ "Contents of section" lines.
+
+2020-07-27 Alan Modra <amodra@gmail.com>
+
+ * testsuite/lib/ld-lib.exp (check_ctf_available): Check first that
+ target compiler is available.
+
+2020-07-23 Maciej W. Rozycki <macro@wdc.com>
+
+ PR ld/26288
+ * ldelf.c (ldelf_after_open): Do not reject ET_EXEC input
+ supplied with `--just-symbols'.
+ * testsuite/ld-misc/just-symbols.exp: New test script.
+ * testsuite/ld-misc/just-symbols-1.dd: New test dump.
+ * testsuite/ld-misc/just-symbols.ld: New test linker script.
+ * testsuite/ld-misc/just-symbols-0.s: New test source.
+ * testsuite/ld-misc/just-symbols-1.s: New test source.
+
+2020-07-23 Maciej W. Rozycki <macro@wdc.com>
+
+ PR ld/26288
+
+ Revert:
+ PR 26047
+ * ldelf.c (ldelf_after_open): Fail if attempting to link one
+ executable into another.
+
+2020-07-22 Nick Alcock <nick.alcock@oracle.com>
+
+ * testsuite/ld-ctf/ctf.exp: Skip on non-ELF for now.
+
+2020-07-22 Nick Alcock <nick.alcock@oracle.com>
+
+ * ldlang.c (ldlang_open_ctf): Set SEC_EXCLUDE on all but the
+ first input .ctf section.
+
+2020-07-22 Nick Alcock <nick.alcock@oracle.com>
+
+ * configure.ac (enable_libctf): Substitute it.
+ * Makefile.am (enablings.exp): New.
+ (EXTRA_DEJAGNU_SITE_CONFIG): Add it.
+ (DISTCLEANFILES): Likewise.
+ * Makefile.in: Regenerate.
+ * configure: Likewise.
+ * testsuite/lib/ld-lib.exp (compile_one_cc): New.
+ (check_ctf_available): Likewise.
+ (skip_ctf_tests): Likewise.
+ * testsuite/ld-ctf/ctf.exp: Call skip_ctf_tests.
+
+2020-07-22 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
+
+ * testsuite/ld-ctf/ctf.exp: New file.
+ * testsuite/ld-ctf/A-2.c: New file.
+ * testsuite/ld-ctf/A.c: New file.
+ * testsuite/ld-ctf/B-2.c: New file.
+ * testsuite/ld-ctf/B.c: New file.
+ * testsuite/ld-ctf/C-2.c: New file.
+ * testsuite/ld-ctf/C.c: New file.
+ * testsuite/ld-ctf/array-char.c: New file.
+ * testsuite/ld-ctf/array-int.c: New file.
+ * testsuite/ld-ctf/array.d: New file.
+ * testsuite/ld-ctf/child-float.c: New file.
+ * testsuite/ld-ctf/child-int.c: New file.
+ * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: New file.
+ * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: New file.
+ * testsuite/ld-ctf/conflicting-cycle-1.parent.d: New file.
+ * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: New file.
+ * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: New file.
+ * testsuite/ld-ctf/conflicting-cycle-2.parent.d: New file.
+ * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: New file.
+ * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: New file.
+ * testsuite/ld-ctf/conflicting-cycle-3.parent.d: New file.
+ * testsuite/ld-ctf/conflicting-enums.d: New file.
+ * testsuite/ld-ctf/conflicting-typedefs.d: New file.
+ * testsuite/ld-ctf/cross-tu-1.c: New file.
+ * testsuite/ld-ctf/cross-tu-2.c: New file.
+ * testsuite/ld-ctf/cross-tu-conflicting-2.c: New file.
+ * testsuite/ld-ctf/cross-tu-cyclic-1.c: New file.
+ * testsuite/ld-ctf/cross-tu-cyclic-2.c: New file.
+ * testsuite/ld-ctf/cross-tu-cyclic-3.c: New file.
+ * testsuite/ld-ctf/cross-tu-cyclic-4.c: New file.
+ * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: New file.
+ * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: New file.
+ * testsuite/ld-ctf/cross-tu-into-cycle.d: New file.
+ * testsuite/ld-ctf/cross-tu-noncyclic.d: New file.
+ * testsuite/ld-ctf/cycle-1.c: New file.
+ * testsuite/ld-ctf/cycle-1.d: New file.
+ * testsuite/ld-ctf/cycle-2.A.d: New file.
+ * testsuite/ld-ctf/cycle-2.B.d: New file.
+ * testsuite/ld-ctf/cycle-2.C.d: New file.
+ * testsuite/ld-ctf/diag-ctf-version-0.d: New file.
+ * testsuite/ld-ctf/diag-ctf-version-0.s: New file.
+ * testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.d: New file.
+ * testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.s: New file.
+ * testsuite/ld-ctf/diag-ctf-version-f.d: New file.
+ * testsuite/ld-ctf/diag-ctf-version-f.s: New file.
+ * testsuite/ld-ctf/diag-cttname-invalid.d: New file.
+ * testsuite/ld-ctf/diag-cttname-invalid.s: New file.
+ * testsuite/ld-ctf/diag-cttname-null.d: New file.
+ * testsuite/ld-ctf/diag-cttname-null.s: New file.
+ * testsuite/ld-ctf/diag-cuname.d: New file.
+ * testsuite/ld-ctf/diag-cuname.s: New file.
+ * testsuite/ld-ctf/diag-decompression-failure.d: New file.
+ * testsuite/ld-ctf/diag-decompression-failure.s: New file.
+ * testsuite/ld-ctf/diag-parlabel.d: New file.
+ * testsuite/ld-ctf/diag-parlabel.s: New file.
+ * testsuite/ld-ctf/diag-parname.d: New file.
+ * testsuite/ld-ctf/diag-parname.s: New file.
+ * testsuite/ld-ctf/diag-unsupported-flag.d: New file.
+ * testsuite/ld-ctf/diag-unsupported-flag.s: New file.
+ * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: New file.
+ * testsuite/ld-ctf/diag-wrong-magic-number.d: New file.
+ * testsuite/ld-ctf/diag-wrong-magic-number.s: New file.
+ * testsuite/ld-ctf/enum-2.c: New file.
+ * testsuite/ld-ctf/enum.c: New file.
+ * testsuite/ld-ctf/function.c: New file.
+ * testsuite/ld-ctf/function.d: New file.
+ * testsuite/ld-ctf/slice.c: New file.
+ * testsuite/ld-ctf/slice.d: New file.
+ * testsuite/ld-ctf/super-sub-cycles.c: New file.
+ * testsuite/ld-ctf/super-sub-cycles.d: New file.
+ * testsuite/ld-ctf/typedef-int.c: New file.
+ * testsuite/ld-ctf/typedef-long.c: New file.
+ * testsuite/ld-ctf/union-1.c: New file.
+
+2020-07-22 Nick Alcock <nick.alcock@oracle.com>
+
+ * ldlex.h (option_values) <OPTION_CTF_VARIABLES,
+ OPTION_NO_CTF_VARIABLES, OPTION_CTF_SHARE_TYPES>: New.
+ * ld.h (ld_config_type) <ctf_variables, ctf_share_duplicated>:
+ New fields.
+ * ldlang.c (lang_merge_ctf): Use them.
+ * lexsup.c (ld_options): Add ctf-variables, no-ctf-variables,
+ ctf-share-types.
+ (parse_args) <OPTION_CTF_VARIABLES, OPTION_NO_CTF_VARIABLES,
+ OPTION_CTF_SHARE_TYPES>: New cases.
+ * ld.texi: Document new options.
+ * NEWS: Likewise.
+
+2020-07-22 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
+
+ * ldlang.c (lang_merge_ctf): Turn errors into warnings.
+ Fix a comment typo.
+ (lang_write_ctf): Turn an error into a warning.
+ (ldlang_open_ctf): Reformat warnings. Fix printing file names.
+
+2020-07-22 Nick Alcock <nick.alcock@oracle.com>
+
+ * ldlang.c (lang_ctf_errs_warnings): New, print CTF errors
+ and warnings. Assert when libctf asserts.
+ (lang_merge_ctf): Call it.
+ (land_write_ctf): Likewise.
+
2020-07-22 H.J. Lu <hongjiu.lu@intel.com>
PR ld/26262