# Test that the linker reports undefined symbol line number correctly.
#
-# Copyright (C) 2007-2014 Free Software Foundation, Inc.
+# Copyright (C) 2007-2021 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 "x86_64-*-elf*"]
- || [istarget "x86_64-*-nacl*"]
- || [istarget "x86_64-*-linux*"]) } {
+if { !([istarget "x86_64-*-elf*"] || [istarget "x86_64-*-linux*"]) } {
return
}
-if [istarget "*-*-nacl*"] {
- set emul "elf_x86_64_nacl"
-} else {
- set emul "elf_x86_64"
-}
-
+set emul "elf_x86_64"
set testline "undefined line"
if ![ld_assemble $as "--64 $srcdir/$subdir/undefined.s" tmpdir/undefined.o] {
verbose "Unable to assemble test file!" 1
- unresolved $testline
+ fail $testline
return
}