]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LD/testsuite: Fix archive verification for Alpha/VMS
authorMaciej W. Rozycki <macro@redhat.com>
Mon, 15 Dec 2025 19:04:30 +0000 (19:04 +0000)
committerMaciej W. Rozycki <macro@redhat.com>
Mon, 15 Dec 2025 19:04:30 +0000 (19:04 +0000)
commit7b12694de97f19d18de2d6019743f0ff3e64420f
treedfad080a5b4423382a69d794c1718fbb87309022
parent1d54e6ff1e85efcafb62b2809c04a2fa825a9923
LD/testsuite: Fix archive verification for Alpha/VMS

As from commit a2298f23f2e2 ("PR 33385 vms archives") the handling of
Alpha/VMS archives has been recently unbroken, after 7 years, revealing
issues with archive tests added with commit 435223a9ae70 ("LD/testsuite:
Add tests for archive handling"), the change of the failure mode of
which went unnoticed.

In particular there is no NM support for executables and archives always
have an index by the nature of the format; cf. `_bfd_vms_lib_archive_p':
"The map is always present."

Address these peculiarities by excluding NM tests for the executables
produced and by omitting mapless archive rejection tests just as with
XCOFF targets, removing all the test failures:

alpha-dec-vms  -FAIL: Regular archive link
alpha-dec-vms  -FAIL: Thin archive link
alpha-dec-vms  -FAIL: Regular archive plus regular link
alpha-dec-vms  -FAIL: Regular archive plus thin link
alpha-dec-vms  -FAIL: Thin archive plus regular link
alpha-dec-vms  -FAIL: Thin archive plus thin link
alpha-dec-vms  -FAIL: Regular archive w/o index link
alpha-dec-vms  -FAIL: Thin archive w/o index link

Factor out code to filter out unwanted tests to a procedure for a better
structure of the code.
ld/testsuite/ld-archive/archive.exp