]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Do not prefix linker script with "-Wl,"
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Mon, 19 Sep 2022 16:52:50 +0000 (18:52 +0200)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Fri, 30 Sep 2022 16:24:46 +0000 (18:24 +0200)
The linker script should not be prefixed with "-Wl," - it's not an
input file and does not interfere with the new dump output filename
strategy.

gcc/testsuite/ChangeLog:

* lib/gcc-defs.exp: Do not prefix linker script with "-Wl,".

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
gcc/testsuite/lib/gcc-defs.exp

index 42ef1d8543218368005389122be92d21ad58746f..2102ed6f7a3d09aba297119ad0d918459cdf6e31 100644 (file)
@@ -332,7 +332,7 @@ proc gcc_adjust_linker_flags_list { args } {
            continue
        } elseif { $skip != "" } then {
            set skip ""
-       } elseif { $opt == "-Xlinker" } then {
+       } elseif { $opt == "-Xlinker" || $opt == "-T" } then {
            set skip $opt
        } elseif { ![string match "-*" $opt] \
                       && [file isfile $opt] } {