]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ld: testsuite: Simplify emulation check in libgot tests
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 27 Jan 2026 17:26:59 +0000 (18:26 +0100)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 27 Jan 2026 17:26:59 +0000 (18:26 +0100)
commit45df08bfcdaaf54d905b62df78608f052da81f1b
tree0c4041277601568fa075052f1d24a87bed86ab2e
parent7e8aebc9d3fe5ea489f32bbc077310ca34515ace
ld: testsuite: Simplify emulation check in libgot tests

The x86 libgot-1 tests are the only ones in all testsuites that use a
new ld -V -m<emul under test> idiom to check whether to run the tests.

Rather than open-coding the check everywhere while relying on that
idiom, this patch introduces a new proc to directly check the ld -V
output for the emulation in question.

Tested on {x86_64,i686}-pc-linux-gnu and {amd64,i386}-pc-solaris2.11.

2026-01-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

ld:
* testsuite/lib/ld-lib.exp (ld_supports_emul): New proc.
* testsuite/ld-i386/binutils.exp: Use it.
* testsuite/ld-x86-64/binutils.exp: Likewise.
ld/testsuite/ld-i386/binutils.exp
ld/testsuite/ld-x86-64/binutils.exp
ld/testsuite/lib/ld-lib.exp