]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Re: ld: testsuite: Add sframe test for PR 33401
authorAlan Modra <amodra@gmail.com>
Fri, 12 Dec 2025 23:00:46 +0000 (09:30 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 13 Dec 2025 00:23:00 +0000 (10:53 +1030)
If user CXXFLAGS include -fno-inline the test fails with
FAIL: PR ld/33401 (Step 1: Create relocatable object and check R_*_NONE)
This should not be a FAIL.  If the compiler does not generate R_*_NONE
(a good thing!) then it should be UNTESTED, which means the readelf
check can't be done by run_cc_link_tests.  I haven't made that change
in this patch, just worked around a user -fno-inline.

ld/testsuite/ld-sframe/sframe.exp

index acd52a4ef1822a593eecd43eac404518e57f7506..5358cfd81842eb5a2a429a22b8ec79785aeaedab 100644 (file)
@@ -40,7 +40,7 @@ proc check_pr33401 { } {
     set test_list {
        { "PR ld/33401 (Step 1: Create relocatable object and check R_*_NONE)"
            "-r"
-           "-g -O2 -w -Wa,--gsframe"
+           "-g -O2 -finline -w -Wa,--gsframe"
            {StateClient.cpp StatePlaying.cpp}
            {{readelf "-r -W" pr33401.rd}}
            "pr33401.o"