+2020-10-05 T.K. Chia <u1049321969@caramail.com>
+
+ PR gas/26694
+ * testsuite/ld-i386/ljmp.s,
+ * testsuite/ld-i386/ljmp1.d,
+ * testsuite/ld-i386/ljmp1.s,
+ * testsuite/ld-i386/ljmp2.d,
+ * testsuite/ld-i386/ljmp2.s,
+ * testsuite/ld-x86-64/ljmp1.d,
+ * testsuite/ld-x86-64/ljmp2.d: New testcases.
+ * testsuite/ld-i386/i386.exp,
+ * testsuite/ld-x86-64/x86-64.exp: Run them.
+
+2020-10-05 Nick Clifton <nickc@redhat.com>
+
+ * lexsup.c (parse_args): Generate an error or warning message when
+ multiple short options are used together.
+
+2020-10-01 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR 26681
+ * testsuite/ld-elf/pr26681.s: New test.
+ * testsuite/ld-elf/pr26681.d: New test driver.
+ * testsuite/ld-elf/pr26681.l: New test output.
+
+2020-09-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/26675
+ * plugin.c (plugin_notice): Override the IR definition before
+ all LTO symbols have been read for non-ELF targets.
+
+2020-09-30 Jeremy Drake <sourceware-bugzilla@jdrake.com>
+
+ PR 26588
+ * emultempl/pe.em (_finish): Generate an import library for DLLs,
+ even if they have no exports.
+ * emultempl/pep.em (_finish): Likewise.
+
+2020-09-28 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-powerpc/tlsget.d,
+ * testsuite/ld-powerpc/tlsget.s,
+ * testsuite/ld-powerpc/tlsget.wf,
+ * testsuite/ld-powerpc/tlsget2.d.
+ * testsuite/ld-powerpc/tlsget2.wf: New testcases.
+ * testsuite/ld-powerpc/powerpc.exp: Run them.
+
+2020-09-26 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-powerpc/elfv2so.d,
+ * testsuite/ld-powerpc/notoc2.d,
+ * testsuite/ld-powerpc/tlsdesc.wf,
+ * testsuite/ld-powerpc/tlsdesc2.d,
+ * testsuite/ld-powerpc/tlsdesc2.wf,
+ * testsuite/ld-powerpc/tlsopt5.d,
+ * testsuite/ld-powerpc/tlsopt5.wf,
+ * testsuite/ld-powerpc/tlsopt6.d,
+ * testsuite/ld-powerpc/tlsopt6.wf: Update __glink_PLTresolve.
+
+2020-09-24 Alan Modra <amodra@gmail.com>
+
+ PR 26655
+ * emultempl/ppc64elf.em (params): Add ppc_edit.
+ (ppc_before_allocation): Split off some edit functions to..
+ (ppc_edit): ..this, new function.
+
+2020-09-22 Frediano Ziglio <fziglio@redhat.com>
+
+ * emultempl/pe.em (set_entry_point): Only use the DLL entry point
+ for DLLs.
+ * emultempl/pep.em (set_entry_point): Likewise.
+
+2020-09-16 Mikael Pettersson <mikpelinux@gmail.com>
+
+ * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIE on sparc.
+ * testsuite/ld-elf/tls.exp: Add -Av9 to AFLAGS_PIC on sparc.
+
+2020-09-16 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/26583
+ * testsuite/ld-x86-64/pe-x86-64-1.od: New file.
+ * testsuite/ld-x86-64/pe-x86-64-1a.obj.bz2: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-1b.obj.bz2: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-1c.obj.bz2: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-2a.obj.bz2: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-2b.obj.bz2: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-2c.obj.bz2: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-3a.obj.bz2: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-3b.obj.bz2: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-3c.obj.bz2: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-3d.obj.bz2: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-4a.obj.bz2: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-4b.obj.bz2: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-4c.obj.bz2: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64-4d.obj.bz2: Likewise.
+ * testsuite/ld-x86-64/pe-x86-64.exp: Likewise.
+ * testsuite/lib/ld-lib.exp (run_ld_link_tests): Handle bz2 binary
+ inputs.
+
+2020-09-16 Alan Modra <amodra@gmail.com>
+
+ * plugin.c (asymbol_from_plugin_symbol): Adjust elf_symbol_from
+ invocation.
+
+2020-09-15 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ldelf.c (ldelf_after_open): Check bfd_target_elf_flavour first.
+
+2020-09-15 Hans-Peter Nilsson <hp@axis.com>
+
+ PR ld/26589
+ * testsuite/ld-elf/pr26589.d, testsuite/ld-elf/locref3.s: New test.
+
+2020-09-13 Alan Modra <amodra@gmail.com>
+
+ PR 26391
+ * testsuite/ld-elf/pr26391.nd: Adjust to match powerpc64 function
+ descriptors.
+
+2020-09-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/26391
+ * NEWS: Mention "-z unique-symbol".
+ * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Handle
+ "-z unique-symbol" and "-z nounique-symbol".
+ * ld.texi: Document "-z unique-symbol" and "-z nounique-symbol".
+ * lexsup.c (elf_static_list_options): Add "-z unique-symbol" and
+ "-z nounique-symbol".
+ * testsuite/ld-elf/elf.exp: Add PR ld/26391 tests.
+ * testsuite/ld-elf/pr26391.nd: New file.
+ * testsuite/ld-elf/pr26391.out: Likewise.
+ * testsuite/ld-elf/pr26391a.c: Likewise.
+ * testsuite/ld-elf/pr26391b.c: Likewise.
+ * testsuite/ld-elf/pr26391c.c: Likewise.
+ * testsuite/ld-elf/pr26391d.c: Likewise.
+
+2020-09-11 Jeremy Drake <sourceware-bugzilla@jdrake.com>
+
+ PR 26588
+ * emultempl/pe.em (_finish): Only generate a import library if not
+ exporting relocs.
+ * emultempl/pep.em: Likewise.
+
+2020-09-10 Siddhesh Poyarekar <siddesh.poyarekar@arm.com>
+
+ * testsuite/ld-aarch64/emit-relocs-560.d: Expect error instead
+ of valid output.
+
+2020-09-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/26590
+ * testsuite/ld-elf/pr26590.err: New file.
+ * testsuite/ld-elf/pr26590a.c: Likewise.
+ * testsuite/ld-elf/pr26590b.c: Likewise.
+ * testsuite/ld-elf/pr26590c.c: Likewise.
+ * testsuite/ld-elf/pr26590d.c: Likewise.
+ * testsuite/ld-elf/shared.exp: Run ld/26590 tests.
+
+2020-09-10 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-elf/pr26580-2.sd: Accept undefined symbol.
+
+2020-09-10 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-plugin/lto-18b.c (select): Remove.
+ * testsuite/ld-plugin/lto-18c.c (select): Remove.
+ * testsuite/ld-plugin/lto.exp: Build archives for lto-18 too,
+ and run static versions of the test.
+
+2020-09-09 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-plugin/lto-18a.c,
+ * testsuite/ld-plugin/lto-18b.c,
+ * testsuite/ld-plugin/lto-18c.c,
+ * testsuite/ld-plugin/lto-18d.c,
+ * testsuite/ld-plugin/lto-18.out: New test.
+ * testsuite/ld-plugin/lto.exp: Run it.
+
+2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
+
+ * testsuite/ld-msp430-elf/msp430-elf.exp: Run new tests.
+ * testsuite/ld-msp430-elf/uleb128.s: New test.
+ * testsuite/ld-msp430-elf/uleb128_430.d: New test.
+ * testsuite/ld-msp430-elf/uleb128_430x.d: New test.
+
+2020-09-08 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-elf/pr26580-a.s,
+ * testsuite/ld-elf/pr26580-b.s,
+ * testsuite/ld-elf/pr26580-1.sd,
+ * testsuite/ld-elf/pr26580-2.sd: New tests
+ * testsuite/ld-elf/comm-data.exp: Run new tests.
+ * testsuite/ld-elf/pr26580-a.c,
+ * testsuite/ld-elf/pr26580-b.c,
+ * testsuite/ld-elf/pr26580-3.out,
+ * testsuite/ld-elf/pr26580-4.out: New tests.
+ * testsuite/ld-elf/shared.exp: Run new tests.
+
+2020-09-04 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-plugin/lto.exp: Don't run pr15146 tests.
+ * testsuite/ld-plugin/pr15146.d: Delete.
+ * testsuite/ld-plugin/pr15146a.c: Delete.
+ * testsuite/ld-plugin/pr15146b.c: Delete.
+ * testsuite/ld-plugin/pr15146c.c: Delete.
+ * testsuite/ld-plugin/pr15146d.c: Delete.
+
+2020-09-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/config/default.exp: Change NOSANTIZE_CFLAGS to
+ NOSANITIZE_CFLAGS.
+ * testsuite/ld-elf/dwarf.exp: Likewise.
+ * testsuite/ld-elf/indirect.exp: Likewise.
+ * testsuite/ld-elf/linux-x86.exp: Likewise.
+ * testsuite/ld-elf/shared.exp: Likewise.
+ * testsuite/ld-elf/tls.exp: Likewise.
+ * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
+ * testsuite/ld-elfvers/vers.exp: Likewise.
+ * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
+ * testsuite/ld-elfweak/elfweak.exp: Likewise.
+ * testsuite/ld-gc/gc.exp: Likewise.
+ * testsuite/ld-plugin/lto.exp: Likewise.
+ * testsuite/ld-plugin/plugin.exp: Likewise.
+ * testsuite/ld-scripts/crossref.exp: Likewise.
+ * testsuite/ld-selective/selective.exp: Likewise.
+ * testsuite/ld-shared/shared.exp: Likewise.
+ * testsuite/ld-size/size.exp: Likewise.
+ * testsuite/ld-srec/srec.exp: Likewise.
+ * testsuite/ld-x86-64/x86-64.exp: Likewise.
+
+2020-09-03 Nelson Chu <nelson.chu@sifive.com>
+
+ * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Remove
+ the useless `warnings` keywords.
+ * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
+
+2020-09-03 Nelson Chu <nelson.chu@sifive.com>
+
+ * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update the
+ message from error to warning.
+ * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: New testcases.
+ * testsuite/ld-riscv-elf/attr-merge-arch-failed-02a.s: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-arch-failed-02b.s: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-arch-failed-02c.s: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-arch-failed-02d.s: Likewise.
+ * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
+
+2020-09-03 Kito Cheng <kito.cheng@sifive.com>
+
+ * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Updated.
+ * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
+ * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
+
+2020-09-03 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-scripts/sysroot-prefix.exp (single_sysroot_prefix_test):
+ Log $scriptname.
+
+2020-08-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-elf/dwarf.exp: Append $NOSANTIZE_CFLAGS to CFLAGS.
+ * testsuite/ld-elf/shared.exp: Likewise.
+ * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
+ * testsuite/ld-shared/shared.exp: Likewise.
+ * testsuite/ld-size/size.exp: Likewise.
+
+2020-08-28 Jozef Lawrynowicz <jozef.l@mittosystems.com>
+
+ * emultempl/msp430.em (input_section_exists): New.
+ (check_array_section_alignment): New.
+ (gld${EMULATION_NAME}_finish): New.
+ * scripttempl/elf32msp430.sc: Add ALIGN directives before the
+ definition of __*_array_start symbols.
+ * testsuite/ld-msp430-elf/finiarray-warn.ld: New test.
+ * testsuite/ld-msp430-elf/finiarray-warn.r: New test.
+ * testsuite/ld-msp430-elf/initarray-nowarn.ld: New test.
+ * testsuite/ld-msp430-elf/initarray-warn.ld: New test.
+ * testsuite/ld-msp430-elf/initarray-warn.r: New test.
+ * testsuite/ld-msp430-elf/initarray.s: New test.
+ * testsuite/ld-msp430-elf/msp430-elf.exp: Run new tests.
+ * testsuite/ld-msp430-elf/preinitarray-warn.ld: New test.
+ * testsuite/ld-msp430-elf/preinitarray-warn.r: New test.
+
+2020-08-28 Jozef Lawrynowicz <jozef.l@mittosystems.com>
+
+ * ldmisc.c (vfinfo): Support new "%pU" format specifier.
+
+2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
+
+ * emulparams/cskyelf.sh: Support attribute section.
+ * testsuite/ld-csky/tls-le-v1.d: Match .csky.attributes section.
+ * ld/testsuite/ld-csky/tls-le.d: Likewise.
+ * testsuite/ld-elf/non-contiguous.ld: Ignore .csky.attributes
+ section.
+
+2020-08-28 Nick Clifton <nickc@redhat.com>
+
+ PR 19011
+ * testsuite/lib/ld-lib.exp (ld_link_defsyms): For PE based targets
+ define the __main and ___main symbols in terms of the main symbol.
+
+2020-08-28 Alan Modra <amodra@gmail.com>
+
+ PR 19011
+ * testsuite/ld-plugin/plugin.exp: Use modified CFLAGS throughout
+ file. Add --image-base for pecoff.
+
+2020-08-28 Nelson Chu <nelson.chu@sifive.com>
+
+ testsuite/ld-riscv-elf/lib-nopic-01a.s: Use R_RISCV_JAL rather
+ than R_RISCV_CALL.
+ testsuite/ld-riscv-elf/lib-nopic-01b.d: Likewise.
+ testsuite/ld-riscv-elf/lib-nopic-01b.s: Likewise.
+
+2020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
+
+ * emultempl/msp430.em: Remove unused variable "buf".
+
+2020-08-27 Nick Alcock <nick.alcock@oracle.com>
+
+ * ldlang.c (dump_ctf_errs): Unquote CTF error messages.
+ (ldlang_open_ctf): Likewise.
+ (lang_merge_ctf): Likewise.
+ (lang_write_ctf): Likewise.
+ * testsuite/ld-ctf/diag-ctf-version-f.d: Adjust.
+ * testsuite/ld-ctf/diag-cttname-invalid.d: Adjust.
+ * testsuite/ld-ctf/diag-decompression-failure.d: Adjust.
+ * testsuite/ld-ctf/diag-parname.d: Adjust.
+ * testsuite/ld-ctf/diag-unsupported-flag.d: Adjust.
+ * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Adjust.
+ * testsuite/ld-ctf/diag-wrong-magic-number.d: Adjust.
+
+2020-08-27 Nick Alcock <nick.alcock@oracle.com>
+
+ * ldlang.c (lang_ctf_errs_warnings): Support calls with NULL fp.
+ Adjust for new err parameter to ctf_errwarning_next. Only
+ check for assertion failures when fp is non-NULL.
+ (ldlang_open_ctf): Call it on open errors.
+ * testsuite/ld-ctf/ctf.exp: Always use the C locale to avoid
+ breaking the diags tests.
+
+2020-08-27 Jeremy Drake <sourceware-bugzilla@jdrake.com>
+
+ PR 19011
+ * emultempl/pe.em (DEFAULT_DLL_CHARACTERISTICS): Define.
+ (pe_dll_characteristics): Initialise to DEFAULT_DLL_CHARACTERISTICS.
+ (add_options): Add options to disable DLL characteristics.
+ (list_options): List the new options.
+ (handle_options): Handle the new options.
+ * emultempl/pep.em: Similar changes to above.
+ (NT_EXE_IMAGE_BASE): Default to an address above 4G.
+ (NT_DLL_IMAGE_BASE, NT_DLL_AUTO_IMAGE_BASE,
+ (NT_DLL_AUTO_IMAGE_MASK): Likewise.
+ * ld.texi: Document the new options.
+ * pe-dll.c (pe_dll_enable_reloc_section): Change to default to
+ true.
+ (generate_reloc): Do nothing if there is no reloc section.
+ (pe_exe_fill_sections): Only assign the reloc section contents if
+ the section exists.
+ * testsuite/ld-pe/pe.exp: Add the --disable-reloc-section flag to
+ the .secrel32 tests.
+ * testsuite/ld-scripts/provide-8.d: Expect for fail on PE targets.
+ * NEWS: Mention the change in DLL generation.
+
+2020-08-26 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-elf/indirect.exp: Append $NOSANTIZE_CFLAGS to CC.
+ * testsuite/ld-elf/shared.exp: Likewise.
+ * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
+ * testsuite/ld-elfvers/vers.exp: Likewise.
+ * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
+ * testsuite/ld-elfweak/elfweak.exp: Likewise.
+ * testsuite/ld-plugin/lto.exp: Likewise.
+ * testsuite/ld-plugin/plugin.exp: Likewise.
+ * testsuite/ld-scripts/crossref.exp: Likewise.
+
+2020-08-26 Alan Modra <amodra@gmail.com>
+
+ PR 26499
+ * emultempl/spuelf.em (spu_elf_relink): Check for NULL tmp_file_list.
+
+2020-08-26 Alan Modra <amodra@gmail.com>
+
+ PR 26431
+ * pe-dll.c (auto_export): Don't call bsearch with zero count.
+
+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
+ PR ld/26267
+ * ldlang.c (lang_process): Set lto_all_symbols_read after all
+ LTO IR symbols have been read.
+ * plugin.c (plugin_notice): Override the IR definition only if
+ all LTO IR symbols have been read or the new definition is
+ non-weak and the the IR definition is weak
+ * testsuite/ld-plugin/lto.exp: Run PR ld/26262 and ld/26267
+ tests.
+ * testsuite/ld-plugin/pr26262a.c: New file.
+ * testsuite/ld-plugin/pr26262b.c: Likewise.
+ * testsuite/ld-plugin/pr26262c.c: Likewise.
+ * testsuite/ld-plugin/pr26267.err: Likewise.
+ * testsuite/ld-plugin/pr26267a.c: Likewise.
+ * testsuite/ld-plugin/pr26267b.c: Likewise.
+ * testsuite/ld-plugin/pr26267c.c: Likewise.
+
2020-07-20 Nick Clifton <nickc@redhat.com>
* testsuite/ld-powerpc/powerpc.exp (ppcelftests): Use section name