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

Remove $LDFLAGS from ld link tests

Avoids duplicating LDFLAGS when invoking linker tests.

The run_ld_link_tests script in the linker test suite no longer references the global $LDFLAGS variable. This corrects an issue where LDFLAGS could be incorrectly included twice, fixing regressions in linker invocations.

In Details

Removes the global $LDFLAGS variable from being used in run_ld_link_tests within ld/testsuite/lib/ld-lib.exp. This reverts part of commit 24602a75d128 and avoids double-inclusion of linker flags, addressing issues for specific targets like alpha-vms.

For Context
LDFLAGS
An environment variable that holds flags passed to the linker during the build process.
linker test suite
A collection of tests designed to verify the correct functionality of the GNU linker (ld).