]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sframe: Use UNRESOLVED instead of FAIL
authorClaudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com>
Thu, 15 Jan 2026 13:26:56 +0000 (15:26 +0200)
committerClaudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com>
Wed, 21 Jan 2026 09:25:59 +0000 (11:25 +0200)
commitc427f3614e293e46b3dfed287d02b6edaf9a17b5
treeab6f9008a77b416a3aea518f38f591e52b904c18
parent0805965b3636e5e77b2cca217adbe4b34490227c
sframe: Use UNRESOLVED instead of FAIL

Fix for PR ld/33784.

The SFrame test for PR ld/33401 is a two-step link test where the
second link depends on the output of the first. In the first step, the
linker process generates R_*_NONE relocs for .sframe section, while
the second link process should pass without any issue.

This patch reworks the PR ld/33401 test by removing the call to
run_cc_link_tests, and use individual command invocation for
compilation, assembling and linking. It introduces the UNRESOLVED
status if the first step contains a linking or assembling error. The
UNTESTED status is emitted if the first stage doesn't produce R_*_NONE
relocs in .sframe section to test the original issue.

ld/

PR ld/33784
* testsuite/ld-sframe/sframe.exp (check_pr33401): Rework the
procedure for UNRESOLVED and UNTESTED cases.
(check_dump): New procedure.
* testsuite/ld-sframe/pr33401.rd: Add extra line at the end of the
file.

Signed-off-by: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com>
ld/testsuite/ld-sframe/pr33401.rd
ld/testsuite/ld-sframe/sframe.exp