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.svens...@foss.st.com>
---
 gcc/testsuite/lib/gcc-defs.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/lib/gcc-defs.exp b/gcc/testsuite/lib/gcc-defs.exp
index 42ef1d85432..2102ed6f7a3 100644
--- a/gcc/testsuite/lib/gcc-defs.exp
+++ b/gcc/testsuite/lib/gcc-defs.exp
@@ -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] } {
-- 
2.25.1

Reply via email to