summaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/config/default.exp2
-rw-r--r--ld/testsuite/ld-aarch64/aarch64-elf.exp2
-rw-r--r--ld/testsuite/ld-alpha/alpha.exp2
-rw-r--r--ld/testsuite/ld-arc/arc.exp2
-rw-r--r--ld/testsuite/ld-arm/arm-elf.exp2
-rw-r--r--ld/testsuite/ld-arm/export-class.exp2
-rw-r--r--ld/testsuite/ld-auto-import/auto-import.exp2
-rw-r--r--ld/testsuite/ld-avr/avr.exp2
-rw-r--r--ld/testsuite/ld-bootstrap/bootstrap.exp2
-rw-r--r--ld/testsuite/ld-bpf/bpf.exp2
-rw-r--r--ld/testsuite/ld-cdtest/cdtest.exp2
-rw-r--r--ld/testsuite/ld-checks/checks.exp2
-rw-r--r--ld/testsuite/ld-cris/cris.exp2
-rw-r--r--ld/testsuite/ld-crx/crx.exp2
-rw-r--r--ld/testsuite/ld-ctf/ctf.exp2
-rw-r--r--ld/testsuite/ld-cygwin/exe-export.exp306
-rw-r--r--ld/testsuite/ld-d10v/d10v.exp2
-rw-r--r--ld/testsuite/ld-discard/discard.exp2
-rw-r--r--ld/testsuite/ld-dynamic/export-dynamic-symbol.exp2
-rw-r--r--ld/testsuite/ld-elf/audit.exp2
-rw-r--r--ld/testsuite/ld-elf/binutils.exp2
-rw-r--r--ld/testsuite/ld-elf/build-id.exp2
-rw-r--r--ld/testsuite/ld-elf/comm-data.exp2
-rw-r--r--ld/testsuite/ld-elf/compress.exp2
-rw-r--r--ld/testsuite/ld-elf/compress1.s2
-rw-r--r--ld/testsuite/ld-elf/dt-relr.exp2
-rw-r--r--ld/testsuite/ld-elf/dwarf.exp2
-rw-r--r--ld/testsuite/ld-elf/eh-group.exp2
-rw-r--r--ld/testsuite/ld-elf/elf.exp2
-rw-r--r--ld/testsuite/ld-elf/exclude.exp2
-rw-r--r--ld/testsuite/ld-elf/export-class.exp2
-rw-r--r--ld/testsuite/ld-elf/frame.exp2
-rw-r--r--ld/testsuite/ld-elf/indirect.exp2
-rw-r--r--ld/testsuite/ld-elf/linux-x86.exp2
-rw-r--r--ld/testsuite/ld-elf/notes.exp2
-rw-r--r--ld/testsuite/ld-elf/package-note.exp2
-rw-r--r--ld/testsuite/ld-elf/provide-hidden.exp2
-rw-r--r--ld/testsuite/ld-elf/readelf.exp2
-rw-r--r--ld/testsuite/ld-elf/sec-to-seg.exp2
-rw-r--r--ld/testsuite/ld-elf/sec64k.exp2
-rw-r--r--ld/testsuite/ld-elf/shared.exp2
-rw-r--r--ld/testsuite/ld-elf/tls.exp2
-rw-r--r--ld/testsuite/ld-elf/tls_common.exp2
-rw-r--r--ld/testsuite/ld-elf/wrap.exp2
-rw-r--r--ld/testsuite/ld-elfcomm/elfcomm.exp2
-rw-r--r--ld/testsuite/ld-elfvers/vers.exp2
-rw-r--r--ld/testsuite/ld-elfweak/elfweak.exp2
-rw-r--r--ld/testsuite/ld-fastcall/fastcall.exp2
-rw-r--r--ld/testsuite/ld-frv/fdpic.exp2
-rw-r--r--ld/testsuite/ld-frv/frv-elf.exp2
-rw-r--r--ld/testsuite/ld-frv/tls.exp2
-rw-r--r--ld/testsuite/ld-gc/gc.exp2
-rw-r--r--ld/testsuite/ld-h8300/h8300.exp2
-rw-r--r--ld/testsuite/ld-i386/export-class.exp2
-rw-r--r--ld/testsuite/ld-i386/i386.exp2
-rw-r--r--ld/testsuite/ld-i386/no-plt.exp2
-rw-r--r--ld/testsuite/ld-i386/tls.exp2
-rw-r--r--ld/testsuite/ld-ia64/ia64.exp2
-rw-r--r--ld/testsuite/ld-ia64/line.exp2
-rw-r--r--ld/testsuite/ld-ifunc/binutils.exp2
-rw-r--r--ld/testsuite/ld-ifunc/ifunc.exp2
-rw-r--r--ld/testsuite/ld-libs/libs.exp2
-rw-r--r--ld/testsuite/ld-linkonce/linkonce.exp2
-rw-r--r--ld/testsuite/ld-loongarch-elf/cmodel.exp2
-rw-r--r--ld/testsuite/ld-loongarch-elf/ifunc.exp2
-rw-r--r--ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp2
-rw-r--r--ld/testsuite/ld-loongarch-elf/pic.exp2
-rw-r--r--ld/testsuite/ld-m68hc11/m68hc11.exp2
-rw-r--r--ld/testsuite/ld-m68k/m68k-got.exp2
-rw-r--r--ld/testsuite/ld-m68k/m68k.exp2
-rw-r--r--ld/testsuite/ld-mep/mep.exp2
-rw-r--r--ld/testsuite/ld-metag/metag.exp2
-rw-r--r--ld/testsuite/ld-mips-elf/comm-data.exp2
-rw-r--r--ld/testsuite/ld-mips-elf/export-class.exp2
-rw-r--r--ld/testsuite/ld-mips-elf/mips-elf-flags.exp2
-rw-r--r--ld/testsuite/ld-mips-elf/mips-elf.exp2
-rw-r--r--ld/testsuite/ld-misc/defsym.exp2
-rw-r--r--ld/testsuite/ld-misc/just-symbols.exp2
-rw-r--r--ld/testsuite/ld-mmix/mmix.exp2
-rw-r--r--ld/testsuite/ld-mn10300/mn10300.exp2
-rw-r--r--ld/testsuite/ld-msp430-elf/msp430-elf.exp2
-rw-r--r--ld/testsuite/ld-nds32/nds32.exp2
-rw-r--r--ld/testsuite/ld-or1k/or1k.exp2
-rw-r--r--ld/testsuite/ld-pdp11/pdp11.exp2
-rw-r--r--ld/testsuite/ld-pe/pdb.exp2
-rw-r--r--ld/testsuite/ld-pe/pe-compile.exp2
-rw-r--r--ld/testsuite/ld-pe/pe-run.exp2
-rw-r--r--ld/testsuite/ld-pe/pe-run2-def.exp2
-rw-r--r--ld/testsuite/ld-pe/pe-run2.exp2
-rw-r--r--ld/testsuite/ld-pe/pe.exp2
-rw-r--r--ld/testsuite/ld-pie/pie.exp2
-rw-r--r--ld/testsuite/ld-plugin/lto.exp2
-rw-r--r--ld/testsuite/ld-plugin/plugin.exp2
-rw-r--r--ld/testsuite/ld-powerpc/aix52.exp2
-rw-r--r--ld/testsuite/ld-powerpc/export-class.exp2
-rw-r--r--ld/testsuite/ld-powerpc/powerpc.exp2
-rw-r--r--ld/testsuite/ld-riscv-elf/ld-riscv-elf.exp2
-rw-r--r--ld/testsuite/ld-s12z/s12z.exp2
-rw-r--r--ld/testsuite/ld-s390/s390.exp2
-rw-r--r--ld/testsuite/ld-scripts/align.exp2
-rw-r--r--ld/testsuite/ld-scripts/alignof.exp2
-rw-r--r--ld/testsuite/ld-scripts/assert.exp2
-rw-r--r--ld/testsuite/ld-scripts/crossref.exp2
-rw-r--r--ld/testsuite/ld-scripts/data.exp2
-rw-r--r--ld/testsuite/ld-scripts/default-script.exp2
-rw-r--r--ld/testsuite/ld-scripts/defined.exp2
-rw-r--r--ld/testsuite/ld-scripts/dynamic-sections.exp2
-rw-r--r--ld/testsuite/ld-scripts/empty-address.exp2
-rw-r--r--ld/testsuite/ld-scripts/empty-aligned.exp2
-rw-r--r--ld/testsuite/ld-scripts/empty-orphan.exp2
-rw-r--r--ld/testsuite/ld-scripts/exclude-file.exp2
-rw-r--r--ld/testsuite/ld-scripts/expr.exp2
-rw-r--r--ld/testsuite/ld-scripts/extern.exp2
-rw-r--r--ld/testsuite/ld-scripts/include.exp2
-rw-r--r--ld/testsuite/ld-scripts/log2.exp2
-rw-r--r--ld/testsuite/ld-scripts/map-address.exp2
-rw-r--r--ld/testsuite/ld-scripts/overlay-size.exp2
-rw-r--r--ld/testsuite/ld-scripts/phdrs.exp2
-rw-r--r--ld/testsuite/ld-scripts/phdrs2.exp2
-rw-r--r--ld/testsuite/ld-scripts/phdrs3.exp2
-rw-r--r--ld/testsuite/ld-scripts/print-memory-usage.exp2
-rw-r--r--ld/testsuite/ld-scripts/provide.exp2
-rw-r--r--ld/testsuite/ld-scripts/rgn-at.exp2
-rw-r--r--ld/testsuite/ld-scripts/rgn-over.exp2
-rw-r--r--ld/testsuite/ld-scripts/script.exp2
-rw-r--r--ld/testsuite/ld-scripts/section-flags.exp2
-rw-r--r--ld/testsuite/ld-scripts/section-match.exp2
-rw-r--r--ld/testsuite/ld-scripts/sizeof.exp2
-rw-r--r--ld/testsuite/ld-scripts/sort.exp2
-rw-r--r--ld/testsuite/ld-scripts/sysroot-prefix.exp2
-rw-r--r--ld/testsuite/ld-scripts/weak.exp2
-rw-r--r--ld/testsuite/ld-selective/sel-dump.exp2
-rw-r--r--ld/testsuite/ld-selective/selective.exp2
-rw-r--r--ld/testsuite/ld-sframe/sframe.exp2
-rw-r--r--ld/testsuite/ld-sh/arch/arch.exp2
-rw-r--r--ld/testsuite/ld-sh/rd-sh.exp2
-rw-r--r--ld/testsuite/ld-sh/sh-vxworks.exp2
-rw-r--r--ld/testsuite/ld-sh/sh.exp2
-rw-r--r--ld/testsuite/ld-shared/shared.exp2
-rw-r--r--ld/testsuite/ld-size/size.exp2
-rw-r--r--ld/testsuite/ld-sparc/sparc.exp2
-rw-r--r--ld/testsuite/ld-spu/spu.exp2
-rw-r--r--ld/testsuite/ld-srec/srec.exp2
-rw-r--r--ld/testsuite/ld-tic6x/tic6x.exp2
-rw-r--r--ld/testsuite/ld-tilegx/tilegx.exp2
-rw-r--r--ld/testsuite/ld-tilepro/tilepro.exp2
-rw-r--r--ld/testsuite/ld-undefined/entry.exp2
-rw-r--r--ld/testsuite/ld-undefined/require-defined.exp2
-rw-r--r--ld/testsuite/ld-undefined/undefined.exp2
-rw-r--r--ld/testsuite/ld-undefined/weak-undef.exp2
-rw-r--r--ld/testsuite/ld-unique/unique.exp2
-rw-r--r--ld/testsuite/ld-v850/v850.exp2
-rw-r--r--ld/testsuite/ld-vax-elf/export-class.exp2
-rw-r--r--ld/testsuite/ld-vax-elf/vax-elf.exp2
-rw-r--r--ld/testsuite/ld-visium/visium.exp2
-rw-r--r--ld/testsuite/ld-vsb/vsb.exp2
-rw-r--r--ld/testsuite/ld-vxworks/vxworks.exp2
-rw-r--r--ld/testsuite/ld-x86-64/dwarfreloc.exp2
-rw-r--r--ld/testsuite/ld-x86-64/export-class.exp2
-rw-r--r--ld/testsuite/ld-x86-64/line.exp2
-rw-r--r--ld/testsuite/ld-x86-64/no-plt.exp2
-rw-r--r--ld/testsuite/ld-x86-64/pe-x86-64.exp2
-rw-r--r--ld/testsuite/ld-x86-64/tls.exp2
-rw-r--r--ld/testsuite/ld-x86-64/x86-64.exp2
-rw-r--r--ld/testsuite/ld-xstormy16/xstormy16.exp2
-rw-r--r--ld/testsuite/ld-xtensa/xtensa-linux.exp2
-rw-r--r--ld/testsuite/ld-xtensa/xtensa.exp2
-rw-r--r--ld/testsuite/ld-z80/z80.exp2
-rw-r--r--ld/testsuite/ld-z8k/z8k.exp2
-rw-r--r--ld/testsuite/lib/ld-lib.exp2
170 files changed, 322 insertions, 322 deletions
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp
index c1175c42760..257fd4ba985 100644
--- a/ld/testsuite/config/default.exp
+++ b/ld/testsuite/config/default.exp
@@ -1,5 +1,5 @@
# Basic expect script for LD Regression Tests
-# Copyright (C) 1993-2022 Free Software Foundation, Inc.
+# Copyright (C) 1993-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-aarch64/aarch64-elf.exp b/ld/testsuite/ld-aarch64/aarch64-elf.exp
index 0a732b55860..a6c2862a159 100644
--- a/ld/testsuite/ld-aarch64/aarch64-elf.exp
+++ b/ld/testsuite/ld-aarch64/aarch64-elf.exp
@@ -1,5 +1,5 @@
# Expect script for various AARCH64 ELF tests.
-# Copyright (C) 2009-2022 Free Software Foundation, Inc.
+# Copyright (C) 2009-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-alpha/alpha.exp b/ld/testsuite/ld-alpha/alpha.exp
index d6306cce4b9..543044621c8 100644
--- a/ld/testsuite/ld-alpha/alpha.exp
+++ b/ld/testsuite/ld-alpha/alpha.exp
@@ -1,5 +1,5 @@
# Expect script for ld-alpha tests
-# Copyright (C) 2003-2022 Free Software Foundation, Inc.
+# Copyright (C) 2003-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-arc/arc.exp b/ld/testsuite/ld-arc/arc.exp
index 7d59f41a78c..4852d585a7f 100644
--- a/ld/testsuite/ld-arc/arc.exp
+++ b/ld/testsuite/ld-arc/arc.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2016-2022 Free Software Foundation, Inc.
+# Copyright (C) 2016-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-arm/arm-elf.exp b/ld/testsuite/ld-arm/arm-elf.exp
index ce3605d3709..747155fc816 100644
--- a/ld/testsuite/ld-arm/arm-elf.exp
+++ b/ld/testsuite/ld-arm/arm-elf.exp
@@ -1,5 +1,5 @@
# Expect script for various ARM ELF tests.
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-arm/export-class.exp b/ld/testsuite/ld-arm/export-class.exp
index 2753d1bbea2..7cee765a6cf 100644
--- a/ld/testsuite/ld-arm/export-class.exp
+++ b/ld/testsuite/ld-arm/export-class.exp
@@ -1,6 +1,6 @@
# Expect script for symbol export classes, ARM variation.
#
-# Copyright (C) 2012-2022 Free Software Foundation, Inc.
+# Copyright (C) 2012-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-auto-import/auto-import.exp b/ld/testsuite/ld-auto-import/auto-import.exp
index e2ca67e2121..f86f01e326d 100644
--- a/ld/testsuite/ld-auto-import/auto-import.exp
+++ b/ld/testsuite/ld-auto-import/auto-import.exp
@@ -1,5 +1,5 @@
# Expect script for ld-auto-import tests
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-avr/avr.exp b/ld/testsuite/ld-avr/avr.exp
index c1f33bcbc46..f69f3680257 100644
--- a/ld/testsuite/ld-avr/avr.exp
+++ b/ld/testsuite/ld-avr/avr.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2022 Free Software Foundation, Inc.
+# Copyright (C) 2014-2023 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/ld/testsuite/ld-bootstrap/bootstrap.exp b/ld/testsuite/ld-bootstrap/bootstrap.exp
index 57f1844d530..7e95ddd76e9 100644
--- a/ld/testsuite/ld-bootstrap/bootstrap.exp
+++ b/ld/testsuite/ld-bootstrap/bootstrap.exp
@@ -1,5 +1,5 @@
# Expect script for LD Bootstrap Tests
-# Copyright (C) 1993-2022 Free Software Foundation, Inc.
+# Copyright (C) 1993-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-bpf/bpf.exp b/ld/testsuite/ld-bpf/bpf.exp
index bd8240d71e0..07eab109bb5 100644
--- a/ld/testsuite/ld-bpf/bpf.exp
+++ b/ld/testsuite/ld-bpf/bpf.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2019-2022 Free Software Foundation, Inc.
+# Copyright (C) 2019-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-cdtest/cdtest.exp b/ld/testsuite/ld-cdtest/cdtest.exp
index a7f672ee24d..9e64259f3b2 100644
--- a/ld/testsuite/ld-cdtest/cdtest.exp
+++ b/ld/testsuite/ld-cdtest/cdtest.exp
@@ -1,5 +1,5 @@
# Expect script for LD cdtest Tests
-# Copyright (C) 1993-2022 Free Software Foundation, Inc.
+# Copyright (C) 1993-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-checks/checks.exp b/ld/testsuite/ld-checks/checks.exp
index a85c2ad64fa..a0b6ade00c3 100644
--- a/ld/testsuite/ld-checks/checks.exp
+++ b/ld/testsuite/ld-checks/checks.exp
@@ -1,5 +1,5 @@
# Expect script for LD section checks tests
-# Copyright (C) 1999-2022 Free Software Foundation, Inc.
+# Copyright (C) 1999-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-cris/cris.exp b/ld/testsuite/ld-cris/cris.exp
index db350c6fe6d..dcc68c978dc 100644
--- a/ld/testsuite/ld-cris/cris.exp
+++ b/ld/testsuite/ld-cris/cris.exp
@@ -1,5 +1,5 @@
# Expect script for ld-cris tests
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-crx/crx.exp b/ld/testsuite/ld-crx/crx.exp
index b776886410d..b4c0b724667 100644
--- a/ld/testsuite/ld-crx/crx.exp
+++ b/ld/testsuite/ld-crx/crx.exp
@@ -1,5 +1,5 @@
# Expect script for ld-crx tests
-# Copyright (C) 2004-2022 Free Software Foundation, Inc.
+# Copyright (C) 2004-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-ctf/ctf.exp b/ld/testsuite/ld-ctf/ctf.exp
index 63e32192d1f..3943a4927e7 100644
--- a/ld/testsuite/ld-ctf/ctf.exp
+++ b/ld/testsuite/ld-ctf/ctf.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2020-2022 Free Software Foundation, Inc.
+# Copyright (C) 2020-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-cygwin/exe-export.exp b/ld/testsuite/ld-cygwin/exe-export.exp
index 14d84cf22e8..b58fe5dd4c2 100644
--- a/ld/testsuite/ld-cygwin/exe-export.exp
+++ b/ld/testsuite/ld-cygwin/exe-export.exp
@@ -1,153 +1,153 @@
-# Expect script for export table in executables tests
-# Copyright (C) 2003-2022 Free Software Foundation, Inc.
-#
-# This file is part of the GNU Binutils.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
-# MA 02110-1301, USA.
-#
-# Written by Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
-# Based on auto-import.exp by Ralf.Habacker@freenet.de
-#
-
-# This test can only be run on a cygwin platforms.
-if {![istarget *-pc-cygwin]} {
- verbose "Not a cygwin target."
- return
-}
-
-# No compiler, no test.
-if { ![check_compiler_available] } {
- untested "Exe export test (no compiler available)"
- return
-}
-
-proc run_dlltool { lib_file def_file } {
- global dlltool
- global base_dir
- global as
-
- if ![info exists dlltool] then {
- set dlltool [findfile $base_dir/../binutils/dlltool]
- }
-
- if { [which $dlltool] == 0 } then {
- verbose "$dlltool does not exist"
- return 0
- }
-
- verbose "$dlltool --as $as -l $lib_file -d $def_file"
- catch "exec $dlltool --as $as -l $lib_file -d $def_file" dlltool_output
-
- #remove empty lines
- regsub -all "\n+" $dlltool_output "" dlltool_output
-
- if [string match "" $dlltool_output] then {
- return 1
- }
-
- verbose -log "$dlltool_output"
- return 0
-}
-
-# ld_special_link
-# A copy of ld_link (from ld-lib.exp) with extra
-# code to strip warnings about creating libraries.
-#
-proc ld_special_link { ld target objects } {
- global host_triplet
- global link_output
-
- if { [which $ld] == 0 } then {
- verbose "$ld does not exist"
- return 0
- }
-
- if [is_endian_output_format $objects] then {
- set flags [big_or_little_endian]
- } else {
- set flags ""
- }
-
- verbose -log "$ld $flags -o $target $objects"
- catch "exec $ld $flags -o $target $objects" link_output
-
- set exec_output [prune_warnings $link_output]
-
- # We don't care if we get a warning about a non-existent start
- # symbol, since the default linker script might use ENTRY.
- regsub -all "(^|\n)(\[^\n\]*: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
-
- # We don't care if we get a message about creating a library file.
- regsub -all "(^|\n)(Creating library file\[^\n\]*\n?)" $exec_output "\\1" exec_output
-
- if [string match "" $exec_output] then {
- return 1
- }
-
- verbose -log "$exec_output"
- return 0
-}
-
-set tmpdir tmpdir
-
-# Set some libs needed for cygwin.
-set MYLDFLAGS "-Wl,--out-implib,$tmpdir/testexe.lib -nostartfiles -nostdlib"
-
-# Build an export library for testdll
-if ![run_dlltool $tmpdir/testdll.lib $srcdir/$subdir/testdll.def] {
- fail "building an export library for the shared lib"
- return
-}
-
-# Compile the executable.
-if ![ld_compile $CC_FOR_TARGET $srcdir/$subdir/testexe.c $tmpdir/testexe.o] {
- fail "compiling executable"
- return
-}
-
-if ![ld_special_link "$CC_FOR_TARGET $LDFLAGS $MYLDFLAGS -e _testexe_main@16" $tmpdir/testexe.exe "$tmpdir/testexe.o $srcdir/$subdir/testexe.def $tmpdir/testdll.lib -lkernel32"] {
- fail "linking executable"
- return
-}
-
-# Compile the dll.
-if ![ld_compile $CC_FOR_TARGET $srcdir/$subdir/testdll.c $tmpdir/testdll.o] {
- fail "compiling shared lib"
- return
-}
-
-if ![ld_special_link "$CC_FOR_TARGET $LDFLAGS -nostartfiles -nostdlib -e _testdll_main@12" $tmpdir/testdll.dll "$tmpdir/testdll.o $srcdir/$subdir/testdll.def $tmpdir/testexe.lib"] {
- fail "linking shared lib"
- return
-}
-
-# This is as far as we can go with a cross-compiler
-if ![isnative] then {
- verbose "Not running natively, so cannot execute binary"
- pass "Compile and link and executable with an export table"
- return
-}
-
-verbose -log "executing $tmpdir/testexe.exe"
-catch "exec $tmpdir/testexe.exe" prog_output
-
-set expected ""
-if [string match $expected $prog_output] then {
- pass "export table in executable"
-} else {
- verbose $prog_output
- fail "Output does not match expected string $expected"
-}
+# Expect script for export table in executables tests
+# Copyright (C) 2003-2023 Free Software Foundation, Inc.
+#
+# This file is part of the GNU Binutils.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+# MA 02110-1301, USA.
+#
+# Written by Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
+# Based on auto-import.exp by Ralf.Habacker@freenet.de
+#
+
+# This test can only be run on a cygwin platforms.
+if {![istarget *-pc-cygwin]} {
+ verbose "Not a cygwin target."
+ return
+}
+
+# No compiler, no test.
+if { ![check_compiler_available] } {
+ untested "Exe export test (no compiler available)"
+ return
+}
+
+proc run_dlltool { lib_file def_file } {
+ global dlltool
+ global base_dir
+ global as
+
+ if ![info exists dlltool] then {
+ set dlltool [findfile $base_dir/../binutils/dlltool]
+ }
+
+ if { [which $dlltool] == 0 } then {
+ verbose "$dlltool does not exist"
+ return 0
+ }
+
+ verbose "$dlltool --as $as -l $lib_file -d $def_file"
+ catch "exec $dlltool --as $as -l $lib_file -d $def_file" dlltool_output
+
+ #remove empty lines
+ regsub -all "\n+" $dlltool_output "" dlltool_output
+
+ if [string match "" $dlltool_output] then {
+ return 1
+ }
+
+ verbose -log "$dlltool_output"
+ return 0
+}
+
+# ld_special_link
+# A copy of ld_link (from ld-lib.exp) with extra
+# code to strip warnings about creating libraries.
+#
+proc ld_special_link { ld target objects } {
+ global host_triplet
+ global link_output
+
+ if { [which $ld] == 0 } then {
+ verbose "$ld does not exist"
+ return 0
+ }
+
+ if [is_endian_output_format $objects] then {
+ set flags [big_or_little_endian]
+ } else {
+ set flags ""
+ }
+
+ verbose -log "$ld $flags -o $target $objects"
+ catch "exec $ld $flags -o $target $objects" link_output
+
+ set exec_output [prune_warnings $link_output]
+
+ # We don't care if we get a warning about a non-existent start
+ # symbol, since the default linker script might use ENTRY.
+ regsub -all "(^|\n)(\[^\n\]*: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
+
+ # We don't care if we get a message about creating a library file.
+ regsub -all "(^|\n)(Creating library file\[^\n\]*\n?)" $exec_output "\\1" exec_output
+
+ if [string match "" $exec_output] then {
+ return 1
+ }
+
+ verbose -log "$exec_output"
+ return 0
+}
+
+set tmpdir tmpdir
+
+# Set some libs needed for cygwin.
+set MYLDFLAGS "-Wl,--out-implib,$tmpdir/testexe.lib -nostartfiles -nostdlib"
+
+# Build an export library for testdll
+if ![run_dlltool $tmpdir/testdll.lib $srcdir/$subdir/testdll.def] {
+ fail "building an export library for the shared lib"
+ return
+}
+
+# Compile the executable.
+if ![ld_compile $CC_FOR_TARGET $srcdir/$subdir/testexe.c $tmpdir/testexe.o] {
+ fail "compiling executable"
+ return
+}
+
+if ![ld_special_link "$CC_FOR_TARGET $LDFLAGS $MYLDFLAGS -e _testexe_main@16" $tmpdir/testexe.exe "$tmpdir/testexe.o $srcdir/$subdir/testexe.def $tmpdir/testdll.lib -lkernel32"] {
+ fail "linking executable"
+ return
+}
+
+# Compile the dll.
+if ![ld_compile $CC_FOR_TARGET $srcdir/$subdir/testdll.c $tmpdir/testdll.o] {
+ fail "compiling shared lib"
+ return
+}
+
+if ![ld_special_link "$CC_FOR_TARGET $LDFLAGS -nostartfiles -nostdlib -e _testdll_main@12" $tmpdir/testdll.dll "$tmpdir/testdll.o $srcdir/$subdir/testdll.def $tmpdir/testexe.lib"] {
+ fail "linking shared lib"
+ return
+}
+
+# This is as far as we can go with a cross-compiler
+if ![isnative] then {
+ verbose "Not running natively, so cannot execute binary"
+ pass "Compile and link and executable with an export table"
+ return
+}
+
+verbose -log "executing $tmpdir/testexe.exe"
+catch "exec $tmpdir/testexe.exe" prog_output
+
+set expected ""
+if [string match $expected $prog_output] then {
+ pass "export table in executable"
+} else {
+ verbose $prog_output
+ fail "Output does not match expected string $expected"
+}
diff --git a/ld/testsuite/ld-d10v/d10v.exp b/ld/testsuite/ld-d10v/d10v.exp
index 5f94b572287..1d12be45053 100644
--- a/ld/testsuite/ld-d10v/d10v.exp
+++ b/ld/testsuite/ld-d10v/d10v.exp
@@ -1,5 +1,5 @@
# Expect script for ld-d10v tests
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-discard/discard.exp b/ld/testsuite/ld-discard/discard.exp
index 7b0e3c29f8d..43687d10e09 100644
--- a/ld/testsuite/ld-discard/discard.exp
+++ b/ld/testsuite/ld-discard/discard.exp
@@ -1,5 +1,5 @@
# Expect script for ld discard tests
-# Copyright (C) 2001-2022 Free Software Foundation, Inc.
+# Copyright (C) 2001-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-dynamic/export-dynamic-symbol.exp b/ld/testsuite/ld-dynamic/export-dynamic-symbol.exp
index 606910f45b3..6bda8621a17 100644
--- a/ld/testsuite/ld-dynamic/export-dynamic-symbol.exp
+++ b/ld/testsuite/ld-dynamic/export-dynamic-symbol.exp
@@ -1,5 +1,5 @@
# Expect script for ld --export-dynamic-symbol tests
-# Copyright (C) 2020-2022 Free Software Foundation, Inc.
+# Copyright (C) 2020-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/audit.exp b/ld/testsuite/ld-elf/audit.exp
index a4b428e1f2e..d3b598a9ca2 100644
--- a/ld/testsuite/ld-elf/audit.exp
+++ b/ld/testsuite/ld-elf/audit.exp
@@ -1,5 +1,5 @@
# Expect script for various ELF tests.
-# Copyright (C) 2009-2022 Free Software Foundation, Inc.
+# Copyright (C) 2009-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/binutils.exp b/ld/testsuite/ld-elf/binutils.exp
index ee90009bb9b..674e8e9a575 100644
--- a/ld/testsuite/ld-elf/binutils.exp
+++ b/ld/testsuite/ld-elf/binutils.exp
@@ -1,5 +1,5 @@
# Expect script for binutils tests
-# Copyright (C) 2006-2022 Free Software Foundation, Inc.
+# Copyright (C) 2006-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/build-id.exp b/ld/testsuite/ld-elf/build-id.exp
index 5473226a312..ad930ddc537 100644
--- a/ld/testsuite/ld-elf/build-id.exp
+++ b/ld/testsuite/ld-elf/build-id.exp
@@ -1,5 +1,5 @@
# Expect script for --build-id tests.
-# Copyright (C) 2021-2022 Free Software Foundation, Inc.
+# Copyright (C) 2021-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/comm-data.exp b/ld/testsuite/ld-elf/comm-data.exp
index f46d69350b6..21b7878a864 100644
--- a/ld/testsuite/ld-elf/comm-data.exp
+++ b/ld/testsuite/ld-elf/comm-data.exp
@@ -1,6 +1,6 @@
# Expect script for common symbol override.
#
-# Copyright (C) 2011-2022 Free Software Foundation, Inc.
+# Copyright (C) 2011-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/compress.exp b/ld/testsuite/ld-elf/compress.exp
index 28a848619bf..9e59059d70e 100644
--- a/ld/testsuite/ld-elf/compress.exp
+++ b/ld/testsuite/ld-elf/compress.exp
@@ -1,5 +1,5 @@
# Expect script for ELF compressed debug section tests.
-# Copyright (C) 2010-2022 Free Software Foundation, Inc.
+# Copyright (C) 2010-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/compress1.s b/ld/testsuite/ld-elf/compress1.s
index fb4125aebc1..832bc4b733b 100644
--- a/ld/testsuite/ld-elf/compress1.s
+++ b/ld/testsuite/ld-elf/compress1.s
@@ -1,6 +1,6 @@
/* This testcase is derived from a similar test in GDB.
- Copyright (C) 2008-2022 Free Software Foundation, Inc.
+ Copyright (C) 2008-2023 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/ld/testsuite/ld-elf/dt-relr.exp b/ld/testsuite/ld-elf/dt-relr.exp
index 42373605066..f7d9901c071 100644
--- a/ld/testsuite/ld-elf/dt-relr.exp
+++ b/ld/testsuite/ld-elf/dt-relr.exp
@@ -1,5 +1,5 @@
# Expect script for DT_RELR.
-# Copyright (C) 2022 Free Software Foundation, Inc.
+# Copyright (C) 2022-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/dwarf.exp b/ld/testsuite/ld-elf/dwarf.exp
index d7247f7debc..3d1b99acb44 100644
--- a/ld/testsuite/ld-elf/dwarf.exp
+++ b/ld/testsuite/ld-elf/dwarf.exp
@@ -1,5 +1,5 @@
# Expect script for various DWARF tests.
-# Copyright (C) 2006-2022 Free Software Foundation, Inc.
+# Copyright (C) 2006-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/eh-group.exp b/ld/testsuite/ld-elf/eh-group.exp
index 61f15464460..ee3af053b33 100644
--- a/ld/testsuite/ld-elf/eh-group.exp
+++ b/ld/testsuite/ld-elf/eh-group.exp
@@ -1,5 +1,5 @@
# Expect script for .eh_frame entries to a removed section.
-# Copyright (C) 2008-2022 Free Software Foundation, Inc.
+# Copyright (C) 2008-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp
index f9c74bf6bed..a3a8994749d 100644
--- a/ld/testsuite/ld-elf/elf.exp
+++ b/ld/testsuite/ld-elf/elf.exp
@@ -1,5 +1,5 @@
# Expect script for various ELF tests.
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/exclude.exp b/ld/testsuite/ld-elf/exclude.exp
index 60e41eda3a9..1869135c362 100644
--- a/ld/testsuite/ld-elf/exclude.exp
+++ b/ld/testsuite/ld-elf/exclude.exp
@@ -1,5 +1,5 @@
# Expect script for --exclude-libs tests
-# Copyright (C) 2004-2022 Free Software Foundation, Inc.
+# Copyright (C) 2004-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/export-class.exp b/ld/testsuite/ld-elf/export-class.exp
index 35d80c11f24..651d3c427d1 100644
--- a/ld/testsuite/ld-elf/export-class.exp
+++ b/ld/testsuite/ld-elf/export-class.exp
@@ -1,6 +1,6 @@
# Expect script for symbol export classes.
#
-# Copyright (C) 2012-2022 Free Software Foundation, Inc.
+# Copyright (C) 2012-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/frame.exp b/ld/testsuite/ld-elf/frame.exp
index b44362b8971..78b76d5dc6b 100644
--- a/ld/testsuite/ld-elf/frame.exp
+++ b/ld/testsuite/ld-elf/frame.exp
@@ -1,5 +1,5 @@
# Expect script for frame section tests
-# Copyright (C) 2004-2022 Free Software Foundation, Inc.
+# Copyright (C) 2004-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/indirect.exp b/ld/testsuite/ld-elf/indirect.exp
index d3fcb3de0e2..ce4771371dd 100644
--- a/ld/testsuite/ld-elf/indirect.exp
+++ b/ld/testsuite/ld-elf/indirect.exp
@@ -1,5 +1,5 @@
# Expect script for various indirect symbol tests.
-# Copyright (C) 2012-2022 Free Software Foundation, Inc.
+# Copyright (C) 2012-2023 Free Software Foundation, Inc.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/ld/testsuite/ld-elf/linux-x86.exp b/ld/testsuite/ld-elf/linux-x86.exp
index 7822bd227f0..e5237e53fa1 100644
--- a/ld/testsuite/ld-elf/linux-x86.exp
+++ b/ld/testsuite/ld-elf/linux-x86.exp
@@ -1,5 +1,5 @@
# Expect script for simple native Linux/x86 tests.
-# Copyright (C) 2018-2022 Free Software Foundation, Inc.
+# Copyright (C) 2018-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/notes.exp b/ld/testsuite/ld-elf/notes.exp
index 269a60b994b..3ec12b340af 100644
--- a/ld/testsuite/ld-elf/notes.exp
+++ b/ld/testsuite/ld-elf/notes.exp
@@ -1,5 +1,5 @@
# Expect script for various ELF based Note tests.
-# Copyright (C) 2018-2022 Free Software Foundation, Inc.
+# Copyright (C) 2018-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/package-note.exp b/ld/testsuite/ld-elf/package-note.exp
index c4239098691..3f81d85b752 100644
--- a/ld/testsuite/ld-elf/package-note.exp
+++ b/ld/testsuite/ld-elf/package-note.exp
@@ -1,5 +1,5 @@
# Expect script for --package-note tests.
-# Copyright (C) 2022 Free Software Foundation, Inc.
+# Copyright (C) 2022-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/provide-hidden.exp b/ld/testsuite/ld-elf/provide-hidden.exp
index 1708dad4c19..209f95dcbd8 100644
--- a/ld/testsuite/ld-elf/provide-hidden.exp
+++ b/ld/testsuite/ld-elf/provide-hidden.exp
@@ -1,6 +1,6 @@
# Expect script for the PROVIDE_HIDDEN linker script command.
#
-# Copyright (C) 2013-2022 Free Software Foundation, Inc.
+# Copyright (C) 2013-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/readelf.exp b/ld/testsuite/ld-elf/readelf.exp
index f6f2bf63c9d..4ff8e6d2f44 100644
--- a/ld/testsuite/ld-elf/readelf.exp
+++ b/ld/testsuite/ld-elf/readelf.exp
@@ -1,5 +1,5 @@
# Expect script for `readelf' tests that depend on LD.
-# Copyright (C) 2017-2022 Free Software Foundation, Inc.
+# Copyright (C) 2017-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/sec-to-seg.exp b/ld/testsuite/ld-elf/sec-to-seg.exp
index 540911ec1e3..baae14efe16 100644
--- a/ld/testsuite/ld-elf/sec-to-seg.exp
+++ b/ld/testsuite/ld-elf/sec-to-seg.exp
@@ -1,6 +1,6 @@
# Test the assigment of sections to segments.
#
-# Copyright (C) 2008-2022 Free Software Foundation, Inc.
+# Copyright (C) 2008-2023 Free Software Foundation, Inc.
# Contributed by Red Hat.
#
# This file is part of the GNU Binutils.
diff --git a/ld/testsuite/ld-elf/sec64k.exp b/ld/testsuite/ld-elf/sec64k.exp
index 0a87d464005..f04b0829b17 100644
--- a/ld/testsuite/ld-elf/sec64k.exp
+++ b/ld/testsuite/ld-elf/sec64k.exp
@@ -1,5 +1,5 @@
# Expect script for tests for >64k sections
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index 44924b097aa..6dd99bb5c9d 100644
--- a/ld/testsuite/ld-elf/shared.exp
+++ b/ld/testsuite/ld-elf/shared.exp
@@ -1,5 +1,5 @@
# Expect script for various ELF tests.
-# Copyright (C) 2006-2022 Free Software Foundation, Inc.
+# Copyright (C) 2006-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/tls.exp b/ld/testsuite/ld-elf/tls.exp
index af33c45d510..305eb5f68cd 100644
--- a/ld/testsuite/ld-elf/tls.exp
+++ b/ld/testsuite/ld-elf/tls.exp
@@ -1,5 +1,5 @@
# Expect script for TLS tests.
-# Copyright (C) 2017-2022 Free Software Foundation, Inc.
+# Copyright (C) 2017-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/tls_common.exp b/ld/testsuite/ld-elf/tls_common.exp
index daef8c6e61b..f2dd7ce67be 100644
--- a/ld/testsuite/ld-elf/tls_common.exp
+++ b/ld/testsuite/ld-elf/tls_common.exp
@@ -1,5 +1,5 @@
# Expect script for .tls_common tests
-# Copyright (C) 2006-2022 Free Software Foundation, Inc.
+# Copyright (C) 2006-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elf/wrap.exp b/ld/testsuite/ld-elf/wrap.exp
index 122b1bdc68e..4784bdb83ce 100644
--- a/ld/testsuite/ld-elf/wrap.exp
+++ b/ld/testsuite/ld-elf/wrap.exp
@@ -1,5 +1,5 @@
# Expect script for wrap ELF tests.
-# Copyright (C) 2006-2022 Free Software Foundation, Inc.
+# Copyright (C) 2006-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elfcomm/elfcomm.exp b/ld/testsuite/ld-elfcomm/elfcomm.exp
index 89110415e9e..4a9ffa9ce6d 100644
--- a/ld/testsuite/ld-elfcomm/elfcomm.exp
+++ b/ld/testsuite/ld-elfcomm/elfcomm.exp
@@ -1,5 +1,5 @@
# Expect script for common symbol tests
-# Copyright (C) 2003-2022 Free Software Foundation, Inc.
+# Copyright (C) 2003-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp
index 2e44d4a410f..7f0fd0874c5 100644
--- a/ld/testsuite/ld-elfvers/vers.exp
+++ b/ld/testsuite/ld-elfvers/vers.exp
@@ -1,5 +1,5 @@
# Expect script for ld-version tests
-# Copyright (C) 1997-2022 Free Software Foundation, Inc.
+# Copyright (C) 1997-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-elfweak/elfweak.exp b/ld/testsuite/ld-elfweak/elfweak.exp
index 69826803a17..63ec38c8a63 100644
--- a/ld/testsuite/ld-elfweak/elfweak.exp
+++ b/ld/testsuite/ld-elfweak/elfweak.exp
@@ -1,5 +1,5 @@
# Expect script for ld-weak tests
-# Copyright (C) 2001-2022 Free Software Foundation, Inc.
+# Copyright (C) 2001-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-fastcall/fastcall.exp b/ld/testsuite/ld-fastcall/fastcall.exp
index bf43dfa1328..280aef015f8 100644
--- a/ld/testsuite/ld-fastcall/fastcall.exp
+++ b/ld/testsuite/ld-fastcall/fastcall.exp
@@ -1,5 +1,5 @@
# Test that the linker can handle fastcall symbols correctly.
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-frv/fdpic.exp b/ld/testsuite/ld-frv/fdpic.exp
index 58ed6e43fad..5543f5bd7f0 100644
--- a/ld/testsuite/ld-frv/fdpic.exp
+++ b/ld/testsuite/ld-frv/fdpic.exp
@@ -1,5 +1,5 @@
# Expect script for FRV FDPIC linker tests
-# Copyright (C) 2003-2022 Free Software Foundation, Inc.
+# Copyright (C) 2003-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-frv/frv-elf.exp b/ld/testsuite/ld-frv/frv-elf.exp
index 00e8c838b2e..980fecc7f9b 100644
--- a/ld/testsuite/ld-frv/frv-elf.exp
+++ b/ld/testsuite/ld-frv/frv-elf.exp
@@ -1,5 +1,5 @@
# Expect script for FRV specific linker tests
-# Copyright (C) 2007-2022 Free Software Foundation, Inc.
+# Copyright (C) 2007-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-frv/tls.exp b/ld/testsuite/ld-frv/tls.exp
index 05f724f13f9..1b98aeb0e91 100644
--- a/ld/testsuite/ld-frv/tls.exp
+++ b/ld/testsuite/ld-frv/tls.exp
@@ -1,5 +1,5 @@
# Expect script for FRV FDPIC TLS linker tests
-# Copyright (C) 2003-2022 Free Software Foundation, Inc.
+# Copyright (C) 2003-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-gc/gc.exp b/ld/testsuite/ld-gc/gc.exp
index 38b506e5ccf..bca0397ee02 100644
--- a/ld/testsuite/ld-gc/gc.exp
+++ b/ld/testsuite/ld-gc/gc.exp
@@ -1,5 +1,5 @@
# Expect script for ld-gc tests
-# Copyright (C) 2008-2022 Free Software Foundation, Inc.
+# Copyright (C) 2008-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-h8300/h8300.exp b/ld/testsuite/ld-h8300/h8300.exp
index 7aa4d7cf555..fd2109f1063 100644
--- a/ld/testsuite/ld-h8300/h8300.exp
+++ b/ld/testsuite/ld-h8300/h8300.exp
@@ -1,5 +1,5 @@
# Expect script for ld-h8300 tests
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-i386/export-class.exp b/ld/testsuite/ld-i386/export-class.exp
index 04bc6a0d836..4c66bf1cf52 100644
--- a/ld/testsuite/ld-i386/export-class.exp
+++ b/ld/testsuite/ld-i386/export-class.exp
@@ -1,6 +1,6 @@
# Expect script for symbol export classes, i386 variation.
#
-# Copyright (C) 2012-2022 Free Software Foundation, Inc.
+# Copyright (C) 2012-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp
index 0ab9c001336..89e8aee237c 100644
--- a/ld/testsuite/ld-i386/i386.exp
+++ b/ld/testsuite/ld-i386/i386.exp
@@ -1,5 +1,5 @@
# Expect script for ld-i386 tests
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-i386/no-plt.exp b/ld/testsuite/ld-i386/no-plt.exp
index 08b1160f6c1..50be9b068fc 100644
--- a/ld/testsuite/ld-i386/no-plt.exp
+++ b/ld/testsuite/ld-i386/no-plt.exp
@@ -1,5 +1,5 @@
# Expect script for i386 no-PLT tests.
-# Copyright (C) 2016-2022 Free Software Foundation, Inc.
+# Copyright (C) 2016-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-i386/tls.exp b/ld/testsuite/ld-i386/tls.exp
index b8308a07265..c378a0fc9b3 100644
--- a/ld/testsuite/ld-i386/tls.exp
+++ b/ld/testsuite/ld-i386/tls.exp
@@ -1,5 +1,5 @@
# Expect script for i386 TLS tests.
-# Copyright (C) 2016-2022 Free Software Foundation, Inc.
+# Copyright (C) 2016-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-ia64/ia64.exp b/ld/testsuite/ld-ia64/ia64.exp
index 6c531b587a5..2de2fe3b9ca 100644
--- a/ld/testsuite/ld-ia64/ia64.exp
+++ b/ld/testsuite/ld-ia64/ia64.exp
@@ -1,5 +1,5 @@
# Expect script for ld-ia64 tests
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-ia64/line.exp b/ld/testsuite/ld-ia64/line.exp
index 78f999b0357..d39e3ac249d 100644
--- a/ld/testsuite/ld-ia64/line.exp
+++ b/ld/testsuite/ld-ia64/line.exp
@@ -1,6 +1,6 @@
# Test that the linker reports undefined symbol line number correctly.
#
-# Copyright (C) 2007-2022 Free Software Foundation, Inc.
+# Copyright (C) 2007-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-ifunc/binutils.exp b/ld/testsuite/ld-ifunc/binutils.exp
index 917409ade00..e2b9e5b2b62 100644
--- a/ld/testsuite/ld-ifunc/binutils.exp
+++ b/ld/testsuite/ld-ifunc/binutils.exp
@@ -1,5 +1,5 @@
# Expect script for binutils tests
-# Copyright (C) 2009-2022 Free Software Foundation, Inc.
+# Copyright (C) 2009-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-ifunc/ifunc.exp b/ld/testsuite/ld-ifunc/ifunc.exp
index fdb65d01f9f..15dcee0d967 100644
--- a/ld/testsuite/ld-ifunc/ifunc.exp
+++ b/ld/testsuite/ld-ifunc/ifunc.exp
@@ -1,6 +1,6 @@
# Expect script for linker support of IFUNC symbols and relocations.
#
-# Copyright (C) 2009-2022 Free Software Foundation, Inc.
+# Copyright (C) 2009-2023 Free Software Foundation, Inc.
# Contributed by Red Hat.
#
# This file is part of the GNU Binutils.
diff --git a/ld/testsuite/ld-libs/libs.exp b/ld/testsuite/ld-libs/libs.exp
index dabb7cde3f6..4586d88e87d 100644
--- a/ld/testsuite/ld-libs/libs.exp
+++ b/ld/testsuite/ld-libs/libs.exp
@@ -1,5 +1,5 @@
# Expect script for the linker's -l command line option
-# Copyright (C) 2007-2022 Free Software Foundation, Inc.
+# Copyright (C) 2007-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-linkonce/linkonce.exp b/ld/testsuite/ld-linkonce/linkonce.exp
index 07c1c34cb13..9ad7d220978 100644
--- a/ld/testsuite/ld-linkonce/linkonce.exp
+++ b/ld/testsuite/ld-linkonce/linkonce.exp
@@ -1,5 +1,5 @@
# Expect script for ld linkonce tests
-# Copyright (C) 2001-2022 Free Software Foundation, Inc.
+# Copyright (C) 2001-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-loongarch-elf/cmodel.exp b/ld/testsuite/ld-loongarch-elf/cmodel.exp
index bb28d336fd1..b428fd7444b 100644
--- a/ld/testsuite/ld-loongarch-elf/cmodel.exp
+++ b/ld/testsuite/ld-loongarch-elf/cmodel.exp
@@ -1,5 +1,5 @@
# Expect script for LoongArch ELF linker tests
-# Copyright (C) 2022 Free Software Foundation, Inc.
+# Copyright (C) 2022-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-loongarch-elf/ifunc.exp b/ld/testsuite/ld-loongarch-elf/ifunc.exp
index 2b55002f824..d038113a554 100644
--- a/ld/testsuite/ld-loongarch-elf/ifunc.exp
+++ b/ld/testsuite/ld-loongarch-elf/ifunc.exp
@@ -1,5 +1,5 @@
# Expect script for LoongArch assembler tests.
-# Copyright (C) 2021-2022 Free Software Foundation, Inc.
+# Copyright (C) 2021-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp b/ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp
index 726ee823701..50a12082b46 100644
--- a/ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp
+++ b/ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp
@@ -1,5 +1,5 @@
# Expect script for LoongArch ELF linker tests
-# Copyright (C) 2021-2022 Free Software Foundation, Inc.
+# Copyright (C) 2021-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-loongarch-elf/pic.exp b/ld/testsuite/ld-loongarch-elf/pic.exp
index 40a5138a39a..2ca5b3a0ba7 100644
--- a/ld/testsuite/ld-loongarch-elf/pic.exp
+++ b/ld/testsuite/ld-loongarch-elf/pic.exp
@@ -1,5 +1,5 @@
# Expect script for LoongArch ELF linker tests
-# Copyright (C) 2022 Free Software Foundation, Inc.
+# Copyright (C) 2022-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-m68hc11/m68hc11.exp b/ld/testsuite/ld-m68hc11/m68hc11.exp
index 2ed7cd93aa7..40b9a4311df 100644
--- a/ld/testsuite/ld-m68hc11/m68hc11.exp
+++ b/ld/testsuite/ld-m68hc11/m68hc11.exp
@@ -1,5 +1,5 @@
# Expect script for run_dump_test based ld-m68hc11 tests.
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-m68k/m68k-got.exp b/ld/testsuite/ld-m68k/m68k-got.exp
index 5bcc822ab96..7414a37d974 100644
--- a/ld/testsuite/ld-m68k/m68k-got.exp
+++ b/ld/testsuite/ld-m68k/m68k-got.exp
@@ -1,5 +1,5 @@
# Expect script for run_dump_test based ld-m68k GOT tests.
-# Copyright (C) 2008-2022 Free Software Foundation, Inc.
+# Copyright (C) 2008-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-m68k/m68k.exp b/ld/testsuite/ld-m68k/m68k.exp
index b6c203c2c24..2e2a5dcf324 100644
--- a/ld/testsuite/ld-m68k/m68k.exp
+++ b/ld/testsuite/ld-m68k/m68k.exp
@@ -1,5 +1,5 @@
# Expect script for run_dump_test based ld-m68k tests.
-# Copyright (C) 2006-2022 Free Software Foundation, Inc.
+# Copyright (C) 2006-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-mep/mep.exp b/ld/testsuite/ld-mep/mep.exp
index 14a14e72bc3..bfd92223c8d 100644
--- a/ld/testsuite/ld-mep/mep.exp
+++ b/ld/testsuite/ld-mep/mep.exp
@@ -1,5 +1,5 @@
# Expect script for ld-mep tests
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-metag/metag.exp b/ld/testsuite/ld-metag/metag.exp
index c526bca320c..dc723912e32 100644
--- a/ld/testsuite/ld-metag/metag.exp
+++ b/ld/testsuite/ld-metag/metag.exp
@@ -1,6 +1,6 @@
# Expect script for ld-metag tests
#
-# Copyright (C) 2013-2022 Free Software Foundation, Inc.
+# Copyright (C) 2013-2023 Free Software Foundation, Inc.
# Contributed by Imagination Technologies Ltd.
#
# This program is free software; you can redistribute it and/or modify
diff --git a/ld/testsuite/ld-mips-elf/comm-data.exp b/ld/testsuite/ld-mips-elf/comm-data.exp
index 29e7c0a1e92..12de49dcf3c 100644
--- a/ld/testsuite/ld-mips-elf/comm-data.exp
+++ b/ld/testsuite/ld-mips-elf/comm-data.exp
@@ -1,6 +1,6 @@
# Expect script for common symbol override, MIPS variation.
#
-# Copyright (C) 2011-2022 Free Software Foundation, Inc.
+# Copyright (C) 2011-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-mips-elf/export-class.exp b/ld/testsuite/ld-mips-elf/export-class.exp
index 07f48b51e65..c85699339fe 100644
--- a/ld/testsuite/ld-mips-elf/export-class.exp
+++ b/ld/testsuite/ld-mips-elf/export-class.exp
@@ -1,6 +1,6 @@
# Expect script for symbol export classes, MIPS variation.
#
-# Copyright (C) 2012-2022 Free Software Foundation, Inc.
+# Copyright (C) 2012-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-mips-elf/mips-elf-flags.exp b/ld/testsuite/ld-mips-elf/mips-elf-flags.exp
index 322172daa5b..1a7dac9bfa6 100644
--- a/ld/testsuite/ld-mips-elf/mips-elf-flags.exp
+++ b/ld/testsuite/ld-mips-elf/mips-elf-flags.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2003-2022 Free Software Foundation, Inc.
+# Copyright (C) 2003-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp
index 2c3c88a8850..920bb121a67 100644
--- a/ld/testsuite/ld-mips-elf/mips-elf.exp
+++ b/ld/testsuite/ld-mips-elf/mips-elf.exp
@@ -1,5 +1,5 @@
# Expect script for MIPS ELF linker tests
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-misc/defsym.exp b/ld/testsuite/ld-misc/defsym.exp
index ffa3a988c33..9629cbaf3cb 100644
--- a/ld/testsuite/ld-misc/defsym.exp
+++ b/ld/testsuite/ld-misc/defsym.exp
@@ -1,5 +1,5 @@
# Test handling of --defsym
-# Copyright (C) 2011-2022 Free Software Foundation, Inc.
+# Copyright (C) 2011-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-misc/just-symbols.exp b/ld/testsuite/ld-misc/just-symbols.exp
index b07d1e3fd1d..9d4438f5575 100644
--- a/ld/testsuite/ld-misc/just-symbols.exp
+++ b/ld/testsuite/ld-misc/just-symbols.exp
@@ -1,5 +1,5 @@
# Expect script for ld --just-symbols tests.
-# Copyright (C) 2020-2022 Free Software Foundation, Inc.
+# Copyright (C) 2020-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-mmix/mmix.exp b/ld/testsuite/ld-mmix/mmix.exp
index 5f5fa840263..f929579df6f 100644
--- a/ld/testsuite/ld-mmix/mmix.exp
+++ b/ld/testsuite/ld-mmix/mmix.exp
@@ -1,5 +1,5 @@
# Expect script for ld-mmix tests
-# Copyright (C) 2001-2022 Free Software Foundation, Inc.
+# Copyright (C) 2001-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-mn10300/mn10300.exp b/ld/testsuite/ld-mn10300/mn10300.exp
index 854e149a02f..97d56205b75 100644
--- a/ld/testsuite/ld-mn10300/mn10300.exp
+++ b/ld/testsuite/ld-mn10300/mn10300.exp
@@ -1,5 +1,5 @@
# Expect script for ld-mn10300 tests
-# Copyright (C) 2007-2022 Free Software Foundation, Inc.
+# Copyright (C) 2007-2023 Free Software Foundation, Inc.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/ld/testsuite/ld-msp430-elf/msp430-elf.exp b/ld/testsuite/ld-msp430-elf/msp430-elf.exp
index c6cb93e2faf..89c7f3951bc 100644
--- a/ld/testsuite/ld-msp430-elf/msp430-elf.exp
+++ b/ld/testsuite/ld-msp430-elf/msp430-elf.exp
@@ -1,5 +1,5 @@
# Expect script for various MSP430 ELF tests.
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-nds32/nds32.exp b/ld/testsuite/ld-nds32/nds32.exp
index 4d2acd86fc8..60233b1d3dd 100644
--- a/ld/testsuite/ld-nds32/nds32.exp
+++ b/ld/testsuite/ld-nds32/nds32.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2022 Free Software Foundation, Inc.
+# Copyright (C) 2012-2023 Free Software Foundation, Inc.
# Contributed by Andes Technology Corporation.
# This program is free software; you can redistribute it and/or modify
diff --git a/ld/testsuite/ld-or1k/or1k.exp b/ld/testsuite/ld-or1k/or1k.exp
index 309082305c7..74cc1cd985f 100644
--- a/ld/testsuite/ld-or1k/or1k.exp
+++ b/ld/testsuite/ld-or1k/or1k.exp
@@ -1,5 +1,5 @@
# Expect script for ld-or1k tests
-# Copyright (C) 2015-2022 Free Software Foundation, Inc.
+# Copyright (C) 2015-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-pdp11/pdp11.exp b/ld/testsuite/ld-pdp11/pdp11.exp
index b0ba3cf9b8d..bf97df1e6fc 100644
--- a/ld/testsuite/ld-pdp11/pdp11.exp
+++ b/ld/testsuite/ld-pdp11/pdp11.exp
@@ -1,5 +1,5 @@
# Expect script for ld-pdp11 tests
-# Copyright (C) 2016-2022 Free Software Foundation, Inc.
+# Copyright (C) 2016-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-pe/pdb.exp b/ld/testsuite/ld-pe/pdb.exp
index 60aa39ae130..07d2a6fff1f 100644
--- a/ld/testsuite/ld-pe/pdb.exp
+++ b/ld/testsuite/ld-pe/pdb.exp
@@ -1,5 +1,5 @@
# Expect script for creating PDB files when linking.
-# Copyright (C) 2022 Free Software Foundation, Inc.
+# Copyright (C) 2022-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-pe/pe-compile.exp b/ld/testsuite/ld-pe/pe-compile.exp
index d1ee3afb41c..020b544182a 100644
--- a/ld/testsuite/ld-pe/pe-compile.exp
+++ b/ld/testsuite/ld-pe/pe-compile.exp
@@ -1,6 +1,6 @@
# Expect script for complex PE tests that require a C compiler
# in addition to the just-built binutils.
-# Copyright (C) 2009-2022 Free Software Foundation, Inc.
+# Copyright (C) 2009-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-pe/pe-run.exp b/ld/testsuite/ld-pe/pe-run.exp
index 39a51e62ce6..8029d447000 100644
--- a/ld/testsuite/ld-pe/pe-run.exp
+++ b/ld/testsuite/ld-pe/pe-run.exp
@@ -1,6 +1,6 @@
# Expect script for complex PE tests that require a C compiler and the ability
# to run target executables natively, in addition to the just-built binutils.
-# Copyright (C) 2006-2022 Free Software Foundation, Inc.
+# Copyright (C) 2006-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-pe/pe-run2-def.exp b/ld/testsuite/ld-pe/pe-run2-def.exp
index 0f8296e2e41..45453cc02c0 100644
--- a/ld/testsuite/ld-pe/pe-run2-def.exp
+++ b/ld/testsuite/ld-pe/pe-run2-def.exp
@@ -1,6 +1,6 @@
# Expect script for complex PE tests that require a C compiler and the ability
# to run target executables natively, in addition to the just-built binutils.
-# Copyright (C) 2020-2022 Free Software Foundation, Inc.
+# Copyright (C) 2020-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-pe/pe-run2.exp b/ld/testsuite/ld-pe/pe-run2.exp
index dcf888be740..fa0686848c5 100644
--- a/ld/testsuite/ld-pe/pe-run2.exp
+++ b/ld/testsuite/ld-pe/pe-run2.exp
@@ -1,6 +1,6 @@
# Expect script for complex PE tests that require a C compiler and the ability
# to run target executables natively, in addition to the just-built binutils.
-# Copyright (C) 2006-2022 Free Software Foundation, Inc.
+# Copyright (C) 2006-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-pe/pe.exp b/ld/testsuite/ld-pe/pe.exp
index d8595ee61e8..613635fd609 100644
--- a/ld/testsuite/ld-pe/pe.exp
+++ b/ld/testsuite/ld-pe/pe.exp
@@ -1,5 +1,5 @@
# Expect script for simple PE tests that require the just-built binutils only.
-# Copyright (C) 2004-2022 Free Software Foundation, Inc.
+# Copyright (C) 2004-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-pie/pie.exp b/ld/testsuite/ld-pie/pie.exp
index 749409ed76d..34d6d30935c 100644
--- a/ld/testsuite/ld-pie/pie.exp
+++ b/ld/testsuite/ld-pie/pie.exp
@@ -1,5 +1,5 @@
# Expect script for various PIE tests.
-# Copyright (C) 2006-2022 Free Software Foundation, Inc.
+# Copyright (C) 2006-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp
index 4e8e2dc7748..6c1322e43e0 100644
--- a/ld/testsuite/ld-plugin/lto.exp
+++ b/ld/testsuite/ld-plugin/lto.exp
@@ -1,5 +1,5 @@
# Expect script for ld-plugin LTO tests
-# Copyright (C) 2011-2022 Free Software Foundation, Inc.
+# Copyright (C) 2011-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-plugin/plugin.exp b/ld/testsuite/ld-plugin/plugin.exp
index 1bc96455b27..bbb8cedbc2c 100644
--- a/ld/testsuite/ld-plugin/plugin.exp
+++ b/ld/testsuite/ld-plugin/plugin.exp
@@ -1,5 +1,5 @@
# Expect script for ld-plugin tests
-# Copyright (C) 2010-2022 Free Software Foundation, Inc.
+# Copyright (C) 2010-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-powerpc/aix52.exp b/ld/testsuite/ld-powerpc/aix52.exp
index b49f3f5e1cf..b4ef4541d08 100644
--- a/ld/testsuite/ld-powerpc/aix52.exp
+++ b/ld/testsuite/ld-powerpc/aix52.exp
@@ -1,5 +1,5 @@
# Expect script for AIX 5.2+ tests
-# Copyright (C) 2009-2022 Free Software Foundation, Inc.
+# Copyright (C) 2009-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-powerpc/export-class.exp b/ld/testsuite/ld-powerpc/export-class.exp
index 451059f655c..48fc27984aa 100644
--- a/ld/testsuite/ld-powerpc/export-class.exp
+++ b/ld/testsuite/ld-powerpc/export-class.exp
@@ -1,6 +1,6 @@
# Expect script for symbol export classes, PowerPC variation.
#
-# Copyright (C) 2012-2022 Free Software Foundation, Inc.
+# Copyright (C) 2012-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-powerpc/powerpc.exp b/ld/testsuite/ld-powerpc/powerpc.exp
index 1c7a378aebc..16e25b09a14 100644
--- a/ld/testsuite/ld-powerpc/powerpc.exp
+++ b/ld/testsuite/ld-powerpc/powerpc.exp
@@ -1,5 +1,5 @@
# Expect script for ld-powerpc tests
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-riscv-elf/ld-riscv-elf.exp b/ld/testsuite/ld-riscv-elf/ld-riscv-elf.exp
index df89e0ee68b..0f7ccd92ed5 100644
--- a/ld/testsuite/ld-riscv-elf/ld-riscv-elf.exp
+++ b/ld/testsuite/ld-riscv-elf/ld-riscv-elf.exp
@@ -1,5 +1,5 @@
# Expect script for RISC-V ELF linker tests
-# Copyright (C) 2017-2022 Free Software Foundation, Inc.
+# Copyright (C) 2017-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-s12z/s12z.exp b/ld/testsuite/ld-s12z/s12z.exp
index bb0a0e250c5..b1606654533 100644
--- a/ld/testsuite/ld-s12z/s12z.exp
+++ b/ld/testsuite/ld-s12z/s12z.exp
@@ -1,5 +1,5 @@
# Expect script for run_dump_test based ld-m68hc11 tests.
-# Copyright (C) 2018-2022 Free Software Foundation, Inc.
+# Copyright (C) 2018-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-s390/s390.exp b/ld/testsuite/ld-s390/s390.exp
index 829019e09a2..ceaffd44989 100644
--- a/ld/testsuite/ld-s390/s390.exp
+++ b/ld/testsuite/ld-s390/s390.exp
@@ -1,5 +1,5 @@
# Expect script for ld-s390 tests
-# Copyright (C) 2003-2022 Free Software Foundation, Inc.
+# Copyright (C) 2003-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/align.exp b/ld/testsuite/ld-scripts/align.exp
index 7f25969fb64..382a711b8cf 100644
--- a/ld/testsuite/ld-scripts/align.exp
+++ b/ld/testsuite/ld-scripts/align.exp
@@ -1,6 +1,6 @@
# Test ALIGN in a linker script.
# By Nathan Sidwell, CodeSourcery LLC
-# Copyright (C) 2004-2022 Free Software Foundation, Inc.
+# Copyright (C) 2004-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/alignof.exp b/ld/testsuite/ld-scripts/alignof.exp
index 9fcc9ee1ac6..044ce376583 100644
--- a/ld/testsuite/ld-scripts/alignof.exp
+++ b/ld/testsuite/ld-scripts/alignof.exp
@@ -1,5 +1,5 @@
# Test ALIGNOF in a linker script.
-# Copyright (C) 2007-2022 Free Software Foundation, Inc.
+# Copyright (C) 2007-2023 Free Software Foundation, Inc.
# Contributed by Nathan Sidwell <nathan@codesourcery.com>
#
# This file is part of the GNU Binutils.
diff --git a/ld/testsuite/ld-scripts/assert.exp b/ld/testsuite/ld-scripts/assert.exp
index 3fe4715fc50..d5cbd28bb2d 100644
--- a/ld/testsuite/ld-scripts/assert.exp
+++ b/ld/testsuite/ld-scripts/assert.exp
@@ -1,6 +1,6 @@
# Test ASSERT in a linker script.
# By Nathan Sidwell, CodeSourcery LLC
-# Copyright (C) 2004-2022 Free Software Foundation, Inc.
+# Copyright (C) 2004-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/crossref.exp b/ld/testsuite/ld-scripts/crossref.exp
index 083ae10149a..fdd5a3b0a59 100644
--- a/ld/testsuite/ld-scripts/crossref.exp
+++ b/ld/testsuite/ld-scripts/crossref.exp
@@ -1,6 +1,6 @@
# Test NOCROSSREFS in a linker script.
# By Ian Lance Taylor, Cygnus Support.
-# Copyright (C) 2000-2022 Free Software Foundation, Inc.
+# Copyright (C) 2000-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/data.exp b/ld/testsuite/ld-scripts/data.exp
index b716d4fd60d..3de32279b97 100644
--- a/ld/testsuite/ld-scripts/data.exp
+++ b/ld/testsuite/ld-scripts/data.exp
@@ -1,6 +1,6 @@
# Test DATA STATEMENT in a linker script.
# By Nathan Sidwell, CodeSourcery LLC
-# Copyright (C) 2004-2022 Free Software Foundation, Inc.
+# Copyright (C) 2004-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/default-script.exp b/ld/testsuite/ld-scripts/default-script.exp
index bd73ef5d81f..f0878999daf 100644
--- a/ld/testsuite/ld-scripts/default-script.exp
+++ b/ld/testsuite/ld-scripts/default-script.exp
@@ -1,5 +1,5 @@
# Test --default-script/-dT
-# Copyright (C) 2007-2022 Free Software Foundation, Inc.
+# Copyright (C) 2007-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/defined.exp b/ld/testsuite/ld-scripts/defined.exp
index 142caa24559..cd0eeaea391 100644
--- a/ld/testsuite/ld-scripts/defined.exp
+++ b/ld/testsuite/ld-scripts/defined.exp
@@ -1,6 +1,6 @@
# Test DEFINED in a linker script.
# By Ian Lance Taylor, Cygnus Support.
-# Copyright (C) 2001-2022 Free Software Foundation, Inc.
+# Copyright (C) 2001-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/dynamic-sections.exp b/ld/testsuite/ld-scripts/dynamic-sections.exp
index 8b56c941a64..b9940c1ae3a 100644
--- a/ld/testsuite/ld-scripts/dynamic-sections.exp
+++ b/ld/testsuite/ld-scripts/dynamic-sections.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2022 Free Software Foundation, Inc.
+# Copyright (C) 2007-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/empty-address.exp b/ld/testsuite/ld-scripts/empty-address.exp
index 763c53e0bcc..a7deb069c54 100644
--- a/ld/testsuite/ld-scripts/empty-address.exp
+++ b/ld/testsuite/ld-scripts/empty-address.exp
@@ -1,6 +1,6 @@
# Make sure that "dot" is updated for empty sections if their addresses
# are set.
-# Copyright (C) 2006-2022 Free Software Foundation, Inc.
+# Copyright (C) 2006-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/empty-aligned.exp b/ld/testsuite/ld-scripts/empty-aligned.exp
index 7e0f01d8d5d..e54f2a8f16a 100644
--- a/ld/testsuite/ld-scripts/empty-aligned.exp
+++ b/ld/testsuite/ld-scripts/empty-aligned.exp
@@ -1,5 +1,5 @@
# Make sure empty aligned sections do not change output layout.
-# Copyright (C) 2005-2022 Free Software Foundation, Inc.
+# Copyright (C) 2005-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/empty-orphan.exp b/ld/testsuite/ld-scripts/empty-orphan.exp
index 8062d142d11..bd15750f016 100644
--- a/ld/testsuite/ld-scripts/empty-orphan.exp
+++ b/ld/testsuite/ld-scripts/empty-orphan.exp
@@ -1,6 +1,6 @@
# Make sure orphan sections do not lead to huge output files.
# By David Heine, Tensilica, Inc.
-# Copyright (C) 2005-2022 Free Software Foundation, Inc.
+# Copyright (C) 2005-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/exclude-file.exp b/ld/testsuite/ld-scripts/exclude-file.exp
index 30d8050b5c0..8c03f4e7263 100644
--- a/ld/testsuite/ld-scripts/exclude-file.exp
+++ b/ld/testsuite/ld-scripts/exclude-file.exp
@@ -1,6 +1,6 @@
# Test EXCLUDE_FILE in a linker script.
# By Nathan Sidwell, CodeSourcery LLC
-# Copyright (C) 2004-2022 Free Software Foundation, Inc.
+# Copyright (C) 2004-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/expr.exp b/ld/testsuite/ld-scripts/expr.exp
index 424fee78289..5d05245fa34 100644
--- a/ld/testsuite/ld-scripts/expr.exp
+++ b/ld/testsuite/ld-scripts/expr.exp
@@ -1,6 +1,6 @@
# Test expressions in a linker script.
# By Nathan Sidwell, CodeSourcery LLC
-# Copyright (C) 2006-2022 Free Software Foundation, Inc.
+# Copyright (C) 2006-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/extern.exp b/ld/testsuite/ld-scripts/extern.exp
index 050524fa31d..68e3b40129a 100644
--- a/ld/testsuite/ld-scripts/extern.exp
+++ b/ld/testsuite/ld-scripts/extern.exp
@@ -1,6 +1,6 @@
# Test EXTERN in a linker script.
# By Nathan Sidwell, CodeSourcery LLC
-# Copyright (C) 2007-2022 Free Software Foundation, Inc.
+# Copyright (C) 2007-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/include.exp b/ld/testsuite/ld-scripts/include.exp
index d8497b9c37c..8fb496f1070 100644
--- a/ld/testsuite/ld-scripts/include.exp
+++ b/ld/testsuite/ld-scripts/include.exp
@@ -1,5 +1,5 @@
# Test for proper diagnosis of overflowed memory regions.
-# Copyright (C) 2008-2022 Free Software Foundation, Inc.
+# Copyright (C) 2008-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/log2.exp b/ld/testsuite/ld-scripts/log2.exp
index d54f566842c..bc39244415b 100644
--- a/ld/testsuite/ld-scripts/log2.exp
+++ b/ld/testsuite/ld-scripts/log2.exp
@@ -1,6 +1,6 @@
# Test LOG2() expression in linker script language.
# By Clemens Lang
-# Copyright (C) 2013-2022 Free Software Foundation, Inc.
+# Copyright (C) 2013-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/map-address.exp b/ld/testsuite/ld-scripts/map-address.exp
index 5715a321106..0eeca10fdd8 100644
--- a/ld/testsuite/ld-scripts/map-address.exp
+++ b/ld/testsuite/ld-scripts/map-address.exp
@@ -1,5 +1,5 @@
# Test address printed by --print-map
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/overlay-size.exp b/ld/testsuite/ld-scripts/overlay-size.exp
index 4fbc6ea6378..6ee7fd79a0c 100644
--- a/ld/testsuite/ld-scripts/overlay-size.exp
+++ b/ld/testsuite/ld-scripts/overlay-size.exp
@@ -1,5 +1,5 @@
# Test the OVERLAY statement.
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/phdrs.exp b/ld/testsuite/ld-scripts/phdrs.exp
index 5b5e4709b02..04dd3f60537 100644
--- a/ld/testsuite/ld-scripts/phdrs.exp
+++ b/ld/testsuite/ld-scripts/phdrs.exp
@@ -1,6 +1,6 @@
# Test PHDRS in a linker script.
# By Ian Lance Taylor, Cygnus Support.
-# Copyright (C) 1999-2022 Free Software Foundation, Inc.
+# Copyright (C) 1999-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/phdrs2.exp b/ld/testsuite/ld-scripts/phdrs2.exp
index 9747b3bd68b..ea93d474b3f 100644
--- a/ld/testsuite/ld-scripts/phdrs2.exp
+++ b/ld/testsuite/ld-scripts/phdrs2.exp
@@ -1,5 +1,5 @@
# Test PHDRS with empty sections in a linker script.
-# Copyright (C) 2005-2022 Free Software Foundation, Inc.
+# Copyright (C) 2005-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/phdrs3.exp b/ld/testsuite/ld-scripts/phdrs3.exp
index c29ffc0e87d..812da483dd0 100644
--- a/ld/testsuite/ld-scripts/phdrs3.exp
+++ b/ld/testsuite/ld-scripts/phdrs3.exp
@@ -1,6 +1,6 @@
# Test PHDRS in a linker script.
# By Nathan Sidwell <nathan@codesourcery.com>
-# Copyright (C) 2009-2022 Free Software Foundation, Inc.
+# Copyright (C) 2009-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/print-memory-usage.exp b/ld/testsuite/ld-scripts/print-memory-usage.exp
index fc7e7d9b462..39000406ae3 100644
--- a/ld/testsuite/ld-scripts/print-memory-usage.exp
+++ b/ld/testsuite/ld-scripts/print-memory-usage.exp
@@ -1,6 +1,6 @@
# Test --print-memory-usage linker functionality
# By Tristan Gingold, AdaCore
-# Copyright (C) 2015-2022 Free Software Foundation, Inc.
+# Copyright (C) 2015-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/provide.exp b/ld/testsuite/ld-scripts/provide.exp
index 04a55a2e5cd..9b672242a09 100644
--- a/ld/testsuite/ld-scripts/provide.exp
+++ b/ld/testsuite/ld-scripts/provide.exp
@@ -1,6 +1,6 @@
# Test PROVIDE in a linker script.
# By Nathan Sidwell, CodeSourcery LLC
-# Copyright (C) 2004-2022 Free Software Foundation, Inc.
+# Copyright (C) 2004-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/rgn-at.exp b/ld/testsuite/ld-scripts/rgn-at.exp
index 562a60240e1..927070b76d1 100644
--- a/ld/testsuite/ld-scripts/rgn-at.exp
+++ b/ld/testsuite/ld-scripts/rgn-at.exp
@@ -1,5 +1,5 @@
# Test for proper diagnosis of overflowed memory regions.
-# Copyright (C) 2009-2022 Free Software Foundation, Inc.
+# Copyright (C) 2009-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/rgn-over.exp b/ld/testsuite/ld-scripts/rgn-over.exp
index e75083c0d33..1bfdf190786 100644
--- a/ld/testsuite/ld-scripts/rgn-over.exp
+++ b/ld/testsuite/ld-scripts/rgn-over.exp
@@ -1,5 +1,5 @@
# Test for proper diagnosis of overflowed memory regions.
-# Copyright (C) 2007-2022 Free Software Foundation, Inc.
+# Copyright (C) 2007-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/script.exp b/ld/testsuite/ld-scripts/script.exp
index 8b4b56ab263..e0af28134a7 100644
--- a/ld/testsuite/ld-scripts/script.exp
+++ b/ld/testsuite/ld-scripts/script.exp
@@ -1,6 +1,6 @@
# Test basic linker script functionality
# By Ian Lance Taylor, Cygnus Support
-# Copyright (C) 1999-2022 Free Software Foundation, Inc.
+# Copyright (C) 1999-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/section-flags.exp b/ld/testsuite/ld-scripts/section-flags.exp
index fbecfbe7bed..065d9752f63 100644
--- a/ld/testsuite/ld-scripts/section-flags.exp
+++ b/ld/testsuite/ld-scripts/section-flags.exp
@@ -2,7 +2,7 @@
#
# This file is part of the GNU Binutils.
#
-# Copyright (C) 2012-2022 Free Software Foundation, Inc.
+# Copyright (C) 2012-2023 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/ld/testsuite/ld-scripts/section-match.exp b/ld/testsuite/ld-scripts/section-match.exp
index a975999bc30..dc56bb70439 100644
--- a/ld/testsuite/ld-scripts/section-match.exp
+++ b/ld/testsuite/ld-scripts/section-match.exp
@@ -1,5 +1,5 @@
# Expect script for section regular expressions tests
-# Copyright (C) 2010-2022 Free Software Foundation, Inc.
+# Copyright (C) 2010-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/sizeof.exp b/ld/testsuite/ld-scripts/sizeof.exp
index a91b2536aa0..389fde969d7 100644
--- a/ld/testsuite/ld-scripts/sizeof.exp
+++ b/ld/testsuite/ld-scripts/sizeof.exp
@@ -1,7 +1,7 @@
# Test SIZEOF in a linker script.
# By Ian Lance Taylor, Cygnus Support
# Based on a bug report from anders.blomdell@control.lth.se.
-# Copyright (C) 2001-2022 Free Software Foundation, Inc.
+# Copyright (C) 2001-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/sort.exp b/ld/testsuite/ld-scripts/sort.exp
index eb2fe0f5417..0d9669b667e 100644
--- a/ld/testsuite/ld-scripts/sort.exp
+++ b/ld/testsuite/ld-scripts/sort.exp
@@ -1,6 +1,6 @@
# Test SORT_BY_NAME/SORT_BY_ALIGNMENT/SORT in a linker script.
# By H.J. Lu <hongjiu.lu@intel.com>
-# Copyright (C) 2004-2022 Free Software Foundation, Inc.
+# Copyright (C) 2004-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/sysroot-prefix.exp b/ld/testsuite/ld-scripts/sysroot-prefix.exp
index 85524aed4c0..5c15b4b1305 100644
--- a/ld/testsuite/ld-scripts/sysroot-prefix.exp
+++ b/ld/testsuite/ld-scripts/sysroot-prefix.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2022 Free Software Foundation, Inc.
+# Copyright (C) 2014-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-scripts/weak.exp b/ld/testsuite/ld-scripts/weak.exp
index 68d70240f7b..78d0616a0e1 100644
--- a/ld/testsuite/ld-scripts/weak.exp
+++ b/ld/testsuite/ld-scripts/weak.exp
@@ -1,6 +1,6 @@
# Test weak symbols.
# By Ian Lance Taylor, Cygnus Solutions.
-# Copyright (C) 1999-2022 Free Software Foundation, Inc.
+# Copyright (C) 1999-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-selective/sel-dump.exp b/ld/testsuite/ld-selective/sel-dump.exp
index fbd103c5a4f..ad7e2492d05 100644
--- a/ld/testsuite/ld-selective/sel-dump.exp
+++ b/ld/testsuite/ld-selective/sel-dump.exp
@@ -1,5 +1,5 @@
# Expect script for ld selective linking tests running run_dump_test
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp
index a025a5c3cc2..813a52d54de 100644
--- a/ld/testsuite/ld-selective/selective.exp
+++ b/ld/testsuite/ld-selective/selective.exp
@@ -1,5 +1,5 @@
# Expect script for LD selective linking tests
-# Copyright (C) 1998-2022 Free Software Foundation, Inc.
+# Copyright (C) 1998-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-sframe/sframe.exp b/ld/testsuite/ld-sframe/sframe.exp
index 392dfbd44c4..77471de88db 100644
--- a/ld/testsuite/ld-sframe/sframe.exp
+++ b/ld/testsuite/ld-sframe/sframe.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2022 Free Software Foundation, Inc.
+# Copyright (C) 2022-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-sh/arch/arch.exp b/ld/testsuite/ld-sh/arch/arch.exp
index efe2d11ebbd..51b646f12e7 100644
--- a/ld/testsuite/ld-sh/arch/arch.exp
+++ b/ld/testsuite/ld-sh/arch/arch.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2004-2022 Free Software Foundation, Inc.
+# Copyright (C) 2004-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-sh/rd-sh.exp b/ld/testsuite/ld-sh/rd-sh.exp
index f3daa25632d..efd8d2b1873 100644
--- a/ld/testsuite/ld-sh/rd-sh.exp
+++ b/ld/testsuite/ld-sh/rd-sh.exp
@@ -1,5 +1,5 @@
# Expect script for run_dump_test based ld-sh tests.
-# Copyright (C) 2001-2022 Free Software Foundation, Inc.
+# Copyright (C) 2001-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-sh/sh-vxworks.exp b/ld/testsuite/ld-sh/sh-vxworks.exp
index cc1e43c201a..0da980b4c37 100644
--- a/ld/testsuite/ld-sh/sh-vxworks.exp
+++ b/ld/testsuite/ld-sh/sh-vxworks.exp
@@ -1,5 +1,5 @@
# Expect script for VxWorks targeted SH linker tests
-# Copyright (C) 2006-2022 Free Software Foundation, Inc.
+# Copyright (C) 2006-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-sh/sh.exp b/ld/testsuite/ld-sh/sh.exp
index 11226416ce7..de66cf3d5d9 100644
--- a/ld/testsuite/ld-sh/sh.exp
+++ b/ld/testsuite/ld-sh/sh.exp
@@ -1,5 +1,5 @@
# Expect script for ld-sh tests
-# Copyright (C) 1995-2022 Free Software Foundation, Inc.
+# Copyright (C) 1995-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-shared/shared.exp b/ld/testsuite/ld-shared/shared.exp
index 94e03fceff9..62ac1eec4bc 100644
--- a/ld/testsuite/ld-shared/shared.exp
+++ b/ld/testsuite/ld-shared/shared.exp
@@ -1,5 +1,5 @@
# Expect script for ld-shared tests
-# Copyright (C) 1994-2022 Free Software Foundation, Inc.
+# Copyright (C) 1994-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-size/size.exp b/ld/testsuite/ld-size/size.exp
index 64793c00948..7286e3c85c8 100644
--- a/ld/testsuite/ld-size/size.exp
+++ b/ld/testsuite/ld-size/size.exp
@@ -1,6 +1,6 @@
# Expect script for linker support of size relocations.
#
-# Copyright (C) 2013-2022 Free Software Foundation, Inc.
+# Copyright (C) 2013-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-sparc/sparc.exp b/ld/testsuite/ld-sparc/sparc.exp
index 97e9a0a06a3..1cf7c806612 100644
--- a/ld/testsuite/ld-sparc/sparc.exp
+++ b/ld/testsuite/ld-sparc/sparc.exp
@@ -1,5 +1,5 @@
# Expect script for ld-sparc tests
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-spu/spu.exp b/ld/testsuite/ld-spu/spu.exp
index 5d5475ec5cf..c4d34fa43b4 100644
--- a/ld/testsuite/ld-spu/spu.exp
+++ b/ld/testsuite/ld-spu/spu.exp
@@ -1,5 +1,5 @@
# Expect script for ld-spu tests
-# Copyright (C) 2006-2022 Free Software Foundation, Inc.
+# Copyright (C) 2006-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-srec/srec.exp b/ld/testsuite/ld-srec/srec.exp
index eac145949d3..466b57ea76d 100644
--- a/ld/testsuite/ld-srec/srec.exp
+++ b/ld/testsuite/ld-srec/srec.exp
@@ -1,6 +1,6 @@
# Test linking directly to S-records.
# By Ian Lance Taylor, Cygnus Support.
-# Copyright (C) 1999-2022 Free Software Foundation, Inc.
+# Copyright (C) 1999-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-tic6x/tic6x.exp b/ld/testsuite/ld-tic6x/tic6x.exp
index 11b6998fae2..e806bfe49c8 100644
--- a/ld/testsuite/ld-tic6x/tic6x.exp
+++ b/ld/testsuite/ld-tic6x/tic6x.exp
@@ -1,6 +1,6 @@
# Expect script for ld-tic6x tests
#
-# Copyright (C) 2012-2022 Free Software Foundation, Inc.
+# Copyright (C) 2012-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-tilegx/tilegx.exp b/ld/testsuite/ld-tilegx/tilegx.exp
index 21fa207b33a..b2b91263ac1 100644
--- a/ld/testsuite/ld-tilegx/tilegx.exp
+++ b/ld/testsuite/ld-tilegx/tilegx.exp
@@ -1,5 +1,5 @@
# Expect script for TILE-Gx linker tests.
-# Copyright (C) 2011-2022 Free Software Foundation, Inc.
+# Copyright (C) 2011-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-tilepro/tilepro.exp b/ld/testsuite/ld-tilepro/tilepro.exp
index 80ce57e60d0..3c3c3479821 100644
--- a/ld/testsuite/ld-tilepro/tilepro.exp
+++ b/ld/testsuite/ld-tilepro/tilepro.exp
@@ -1,5 +1,5 @@
# Expect script for TILEPro linker tests.
-# Copyright (C) 2011-2022 Free Software Foundation, Inc.
+# Copyright (C) 2011-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-undefined/entry.exp b/ld/testsuite/ld-undefined/entry.exp
index f7f74c9b827..73ca776faf4 100644
--- a/ld/testsuite/ld-undefined/entry.exp
+++ b/ld/testsuite/ld-undefined/entry.exp
@@ -1,5 +1,5 @@
# Expect script for ld --entry tests
-# Copyright (C) 2009-2022 Free Software Foundation, Inc.
+# Copyright (C) 2009-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-undefined/require-defined.exp b/ld/testsuite/ld-undefined/require-defined.exp
index 2e7d9a6bdd2..0d5eb9818ff 100644
--- a/ld/testsuite/ld-undefined/require-defined.exp
+++ b/ld/testsuite/ld-undefined/require-defined.exp
@@ -1,5 +1,5 @@
# Expect script for ld --undefined and --require-defined testing.
-# Copyright (C) 2015-2022 Free Software Foundation, Inc.
+# Copyright (C) 2015-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-undefined/undefined.exp b/ld/testsuite/ld-undefined/undefined.exp
index b5ac5112201..0d76c9e2593 100644
--- a/ld/testsuite/ld-undefined/undefined.exp
+++ b/ld/testsuite/ld-undefined/undefined.exp
@@ -1,7 +1,7 @@
# Test that the linker reports undefined symbol errors correctly.
# By Ian Lance Taylor, Cygnus Support
#
-# Copyright (C) 1995-2022 Free Software Foundation, Inc.
+# Copyright (C) 1995-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-undefined/weak-undef.exp b/ld/testsuite/ld-undefined/weak-undef.exp
index bf56e806ac0..f79c5fbd3b3 100644
--- a/ld/testsuite/ld-undefined/weak-undef.exp
+++ b/ld/testsuite/ld-undefined/weak-undef.exp
@@ -1,5 +1,5 @@
# Test handling of weak undefined symbols
-# Copyright (C) 2001-2022 Free Software Foundation, Inc.
+# Copyright (C) 2001-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-unique/unique.exp b/ld/testsuite/ld-unique/unique.exp
index ab24eef50c3..8f0dd139447 100644
--- a/ld/testsuite/ld-unique/unique.exp
+++ b/ld/testsuite/ld-unique/unique.exp
@@ -1,6 +1,6 @@
# Expect script for linker support of STB_GNU_UNIQUE symbols
#
-# Copyright (C) 2009-2022 Free Software Foundation, Inc.
+# Copyright (C) 2009-2023 Free Software Foundation, Inc.
# Contributed by Red Hat.
#
# This file is part of the GNU Binutils.
diff --git a/ld/testsuite/ld-v850/v850.exp b/ld/testsuite/ld-v850/v850.exp
index 9c7aa21407b..67ad80b6e0f 100644
--- a/ld/testsuite/ld-v850/v850.exp
+++ b/ld/testsuite/ld-v850/v850.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2022 Free Software Foundation, Inc.
+# Copyright (C) 2007-2023 Free Software Foundation, Inc.
# This file is part of the GNU Binutils.
#
# This program is free software; you can redistribute it and/or modify
diff --git a/ld/testsuite/ld-vax-elf/export-class.exp b/ld/testsuite/ld-vax-elf/export-class.exp
index 2602fb50cb1..9a8f7dddc7e 100644
--- a/ld/testsuite/ld-vax-elf/export-class.exp
+++ b/ld/testsuite/ld-vax-elf/export-class.exp
@@ -1,6 +1,6 @@
# Expect script for symbol export classes, VAX variation.
#
-# Copyright (C) 2013-2022 Free Software Foundation, Inc.
+# Copyright (C) 2013-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-vax-elf/vax-elf.exp b/ld/testsuite/ld-vax-elf/vax-elf.exp
index 14ed95c6aaa..376689e36b8 100644
--- a/ld/testsuite/ld-vax-elf/vax-elf.exp
+++ b/ld/testsuite/ld-vax-elf/vax-elf.exp
@@ -1,5 +1,5 @@
# Expect script for VAX ELF linker tests
-# Copyright (C) 2012-2022 Free Software Foundation, Inc.
+# Copyright (C) 2012-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-visium/visium.exp b/ld/testsuite/ld-visium/visium.exp
index 89c161a9c21..e16be9f38e3 100644
--- a/ld/testsuite/ld-visium/visium.exp
+++ b/ld/testsuite/ld-visium/visium.exp
@@ -1,5 +1,5 @@
# Expect script for Visium tests.
-# Copyright (C) 2014-2022 Free Software Foundation, Inc.
+# Copyright (C) 2014-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-vsb/vsb.exp b/ld/testsuite/ld-vsb/vsb.exp
index bc2a9b8a836..188d3311e34 100644
--- a/ld/testsuite/ld-vsb/vsb.exp
+++ b/ld/testsuite/ld-vsb/vsb.exp
@@ -1,5 +1,5 @@
# Expect script for ld-visibility tests
-# Copyright (C) 2000-2022 Free Software Foundation, Inc.
+# Copyright (C) 2000-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-vxworks/vxworks.exp b/ld/testsuite/ld-vxworks/vxworks.exp
index 9a26acc1728..358e281391c 100644
--- a/ld/testsuite/ld-vxworks/vxworks.exp
+++ b/ld/testsuite/ld-vxworks/vxworks.exp
@@ -1,5 +1,5 @@
# Expect script for VxWorks tests
-# Copyright (C) 2007-2022 Free Software Foundation, Inc.
+# Copyright (C) 2007-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-x86-64/dwarfreloc.exp b/ld/testsuite/ld-x86-64/dwarfreloc.exp
index 2457585310a..23441508fe2 100644
--- a/ld/testsuite/ld-x86-64/dwarfreloc.exp
+++ b/ld/testsuite/ld-x86-64/dwarfreloc.exp
@@ -1,5 +1,5 @@
# Expect script for DWARF relocation test.
-# Copyright (C) 2008-2022 Free Software Foundation, Inc.
+# Copyright (C) 2008-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-x86-64/export-class.exp b/ld/testsuite/ld-x86-64/export-class.exp
index 14c2d240fac..474d936ba36 100644
--- a/ld/testsuite/ld-x86-64/export-class.exp
+++ b/ld/testsuite/ld-x86-64/export-class.exp
@@ -1,6 +1,6 @@
# Expect script for symbol export classes, x86-64 variation.
#
-# Copyright (C) 2012-2022 Free Software Foundation, Inc.
+# Copyright (C) 2012-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-x86-64/line.exp b/ld/testsuite/ld-x86-64/line.exp
index ef1318f54bb..f5163998862 100644
--- a/ld/testsuite/ld-x86-64/line.exp
+++ b/ld/testsuite/ld-x86-64/line.exp
@@ -1,6 +1,6 @@
# Test that the linker reports undefined symbol line number correctly.
#
-# Copyright (C) 2007-2022 Free Software Foundation, Inc.
+# Copyright (C) 2007-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-x86-64/no-plt.exp b/ld/testsuite/ld-x86-64/no-plt.exp
index ed62320c74b..15f46d43df8 100644
--- a/ld/testsuite/ld-x86-64/no-plt.exp
+++ b/ld/testsuite/ld-x86-64/no-plt.exp
@@ -1,5 +1,5 @@
# Expect script for x86-64 no-PLT tests.
-# Copyright (C) 2016-2022 Free Software Foundation, Inc.
+# Copyright (C) 2016-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-x86-64/pe-x86-64.exp b/ld/testsuite/ld-x86-64/pe-x86-64.exp
index f8282f4938f..a30554cebb5 100644
--- a/ld/testsuite/ld-x86-64/pe-x86-64.exp
+++ b/ld/testsuite/ld-x86-64/pe-x86-64.exp
@@ -1,5 +1,5 @@
# Expect script for ELF tests with pe-x86-64 inputs.
-# Copyright (C) 2020-2022 Free Software Foundation, Inc.
+# Copyright (C) 2020-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-x86-64/tls.exp b/ld/testsuite/ld-x86-64/tls.exp
index cdfb4ecf2ea..8cc10119b5d 100644
--- a/ld/testsuite/ld-x86-64/tls.exp
+++ b/ld/testsuite/ld-x86-64/tls.exp
@@ -1,5 +1,5 @@
# Expect script for x86-64 TLS tests.
-# Copyright (C) 2016-2022 Free Software Foundation, Inc.
+# Copyright (C) 2016-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index 6bee767423b..1a10c395b5c 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -1,5 +1,5 @@
# Expect script for ld-x86_64 tests
-# Copyright (C) 2002-2022 Free Software Foundation, Inc.
+# Copyright (C) 2002-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-xstormy16/xstormy16.exp b/ld/testsuite/ld-xstormy16/xstormy16.exp
index e0b12427b28..8bd878ee2cd 100644
--- a/ld/testsuite/ld-xstormy16/xstormy16.exp
+++ b/ld/testsuite/ld-xstormy16/xstormy16.exp
@@ -1,5 +1,5 @@
# Expect script for ld-xstormy16 tests
-# Copyright (C) 2003-2022 Free Software Foundation, Inc.
+# Copyright (C) 2003-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-xtensa/xtensa-linux.exp b/ld/testsuite/ld-xtensa/xtensa-linux.exp
index 491a30f43e6..cd34d181511 100644
--- a/ld/testsuite/ld-xtensa/xtensa-linux.exp
+++ b/ld/testsuite/ld-xtensa/xtensa-linux.exp
@@ -1,5 +1,5 @@
# Expect script for ld-xtensa tests
-# Copyright (C) 2008-2022 Free Software Foundation, Inc.
+# Copyright (C) 2008-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-xtensa/xtensa.exp b/ld/testsuite/ld-xtensa/xtensa.exp
index 71d1597fc72..e671cabae4a 100644
--- a/ld/testsuite/ld-xtensa/xtensa.exp
+++ b/ld/testsuite/ld-xtensa/xtensa.exp
@@ -1,5 +1,5 @@
# Expect script for ld-xtensa tests
-# Copyright (C) 2008-2022 Free Software Foundation, Inc.
+# Copyright (C) 2008-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-z80/z80.exp b/ld/testsuite/ld-z80/z80.exp
index 330416e5b2e..1bdef144a34 100644
--- a/ld/testsuite/ld-z80/z80.exp
+++ b/ld/testsuite/ld-z80/z80.exp
@@ -1,5 +1,5 @@
# Expect script for ld-z80 tests
-# Copyright (C) 2016-2022 Free Software Foundation, Inc.
+# Copyright (C) 2016-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/ld-z8k/z8k.exp b/ld/testsuite/ld-z8k/z8k.exp
index 953f930148a..688cf9a150e 100644
--- a/ld/testsuite/ld-z8k/z8k.exp
+++ b/ld/testsuite/ld-z8k/z8k.exp
@@ -1,5 +1,5 @@
# Expect script for ld-z8k tests
-# Copyright (C) 2016-2022 Free Software Foundation, Inc.
+# Copyright (C) 2016-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 47d14941d2a..47e86a7b27c 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -1,5 +1,5 @@
# Support routines for LD testsuite.
-# Copyright (C) 1994-2022 Free Software Foundation, Inc.
+# Copyright (C) 1994-2023 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#