[PATCH 36/57][Arm][GAS] Add support for MVE instructions: wlstp, dlstp, letp and...
[deliverable/binutils-gdb.git] / ld / testsuite / ld-selective / selective.exp
index 79f6aa264dbbf5eb22e25d2a139328bd17872c87..645f4302a7e52d1b7b955c0f7fe3da78e62d4215 100644 (file)
@@ -1,5 +1,5 @@
 # Expect script for LD selective linking tests
-#   Copyright (C) 1998-2015 Free Software Foundation, Inc.
+#   Copyright (C) 1998-2019 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
@@ -57,11 +57,10 @@ if [istarget mips*-*] {
     set ldflags "-e _start $ldflags"
 }
 
-if [istarget sh64*-*-elf] {
-    # This is what gcc passes to ld by default, plus switch to the
-    # "usual" ELF _start (shelf32 normally uses just `start' for COFF
-    # compatibility)
-    set ldflags "-e _start -mshelf32 $ldflags"
+if [istarget avr-*-*] {
+    # Make .text start at a non-zero address, as some tests expect
+    # valid symbols to have non-zero values.
+    set ldflags "--section-start=.text=0x2 $ldflags"
 }
 
 # If we don't have g++ for the target, mark all tests as untested.
@@ -96,7 +95,8 @@ foreach testitem $seltests {
        # the functionality we try to test for cannot be expected to work.
        set version [remote_exec host "$CXX -dumpversion"]
        set version [lindex $version 1]
-       if [regexp "^(\[1-9\]\[0-9\]+|\[4-9\]|3.(\[1-9\]\[0-9\]+|\[4-9\]))\\." $version] {
+       if { [regexp "^(\[1-9\]\[0-9\]+|\[4-9\]|3.(\[1-9\]\[0-9\]+))\\." $version] \
+            || [regexp "^(\[1-9\]\[0-9\]+|\[4-9\])" $version] } {
            set testflags "$cflags $cxxflags"
            setup_xfail {*-*-*}
        } else {
@@ -145,7 +145,7 @@ foreach testitem $seltests {
        set objfile "$objfile --defsym _.d2=0"
     }
 
-    if ![ld_simple_link $ld $ldfile "$ldflags [join $ldargs] $objfile"] {
+    if ![ld_link $ld $ldfile "$ldflags [join $ldargs] $objfile"] {
        fail $testname
        continue
     }
This page took 0.024277 seconds and 4 git commands to generate.