binutils Newspaper
NOVEMBER 30, 2026
binutils/ld — Ready to Land — Sentiment 8 / 10

Testsuite error: missing ld_relax_underflow_test command

A test in the `cris-axis-elf` toolchain failed due to a missing `ld_relax_underflow_test` command.

Hans-Peter Nilsson reported a test failure in the cris-axis-elf toolchain, specifically within the rl78-relax-underflow.exp test case. The error indicates that the command ld_relax_underflow_test is not defined, suggesting a missing patch or an incomplete commit. The reporter asks for the issue to be amended or reverted and suggests improving the test case’s error handling.

In the Thread 3 participants
  1. Hans-Peter Nilsson <hp@axis.com> other

    Reports a testsuite error caused by an undefined command.

    “I think this one is yours (testing cris-axis-elf): ERROR: ------------------------------------------- ERROR: in testcase /src/ld/testsuite/ld-rl78/rl78-relax-underflow.exp ERROR: invalid command name "ld_relax_underflow_test" ERROR: tcl error code TCL LOOKUP COMMAND ld_relax_underflow_test”
  2. Jan Beulich <jbeulich@suse.com> other

    Acknowledged a revert for the issue.

    “On 13.11.2026 16:21, Hans-Peter Nilsson wrote: > I think this one is yours (testing cris-axis-elf):”
  3. Harshit Kumar <harshit7kr@gmail.com> contributor

    Apologized for the error and confirmed that the revert will be in place, with future patches including early exits.

    “Thanks to Jan, for the quick revert. When the patches go back in, the new *-relax-underflow.exp files will return early on other targets. Sorry for the noise.”

Technical Tradeoffs

  • Reverted a change to resolve an immediate test failure, delaying the introduction of new relaxation tests.

In Details

This discussion concerns a test failure in the ld testsuite for the cris-axis-elf target. The error invalid command name "ld_relax_underflow_test" indicates that a test procedure, likely introduced in a recent patch series, is missing or was not properly installed. This specific error occurred during the execution of rl78-relax-underflow.exp.

For Context
ld
The GNU linker, responsible for combining object files and libraries into an executable or shared library.
testsuite
A collection of tests designed to verify the correctness of a software component or system.
cris-axis-elf
A specific toolchain target configuration, likely for embedded systems, using the ELF object file format and targeting a processor family from Axis Communications.
tcl
Tool Command Language, a scripting language often used for test harnesses and build systems.
relax-underflow
Relates to linker relaxation, a process where the linker adjusts addresses and offsets of instructions or data to optimize for code size or position independence. An 'underflow' might indicate an issue where the relaxation process cannot satisfy constraints.
exp
Likely refers to '.exp' files, which are Tcl scripts used by DejaGnu, a testing framework, to define and run tests.
Filed Under: binutilsldtestsuiteregression