# Test Xtensa longcall optimization.
# By David Heine, Tensilica, Inc.
-# Copyright 2002, 2003, 2007
-# Free Software Foundation, Inc.
+# Copyright (C) 2002-2018 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
# MA 02110-1301, USA.
-if ![istarget "xtensa-*-*"] {
+if ![istarget "xtensa*-*-*"] {
return
}
set object "tmpdir/lcall"
set outputfile "$object.txt"
-if ![ld_simple_link $ld $object "-T $srcdir/$subdir/lcall.t tmpdir/lcall1.o tmpdir/lcall2.o"] {
+if ![ld_link $ld $object "-T $srcdir/$subdir/lcall.t tmpdir/lcall1.o tmpdir/lcall2.o"] {
verbose -log "failure in ld"
fail $testname
return