binutils Newspaper
JULY 29, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
ld/testsuite

Enable remote testing for ld-cdtest

The ld-cdtest test suite now supports remote execution.

The ld-cdtest test suite has been updated to support remote testing by converting its output comparison logic to use remote_load. This allows tests to be executed on both native and remote targets, improving flexibility and coverage. The diff format was also changed to regexp_diff for better compatibility.

In Details

The ld/testsuite/ld-cdtest/ suite's data files (cdtest.dat, cdtest-nrv.dat, cdtest.exp) are modified to enable remote execution. This involves replacing direct execution commands with calls to a remote_load function and changing the output comparison from a direct diff to regexp_diff, which is more robust against minor output variations common in remote environments.

For Context
ld-cdtest
A test suite for the GNU linker (ld), specifically focusing on C++ constructor/destructor behavior (cdtest).
remote testing
Executing test cases on a target system that is different from the host system where the tests are initiated.
regexp_diff
A comparison utility that uses regular expressions to find differences between two text inputs, providing more flexibility than a simple line-by-line diff.
linker
A program that combines various object files and libraries, resolving symbol references, to create an executable program or a shared library.
Filed Under: linkertestsuiteremote execution