x86: Merge X86_ISA_1_USED/X86_ISA_1_NEEDED properties
[deliverable/binutils-gdb.git] / ld / testsuite / ld-x86-64 / line.exp
index c68daaa6714899845674bfb237ed3cb77bcc338f..36a672d6cf6a690799535c335ca624f71c8a9c2b 100644 (file)
@@ -1,6 +1,6 @@
 # Test that the linker reports undefined symbol line number correctly.
 #
-#   Copyright 2007  Free Software Foundation, Inc.
+#   Copyright (C) 2007-2017 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
 # MA 02110-1301, USA.
 
 if { !([istarget "x86_64-*-elf*"]
+       || [istarget "x86_64-*-nacl*"]
        || [istarget "x86_64-*-linux*"]) } {
     return
 }
 
+if [istarget "*-*-nacl*"] {
+    set emul "elf_x86_64_nacl"
+} else {
+    set emul "elf_x86_64"
+}
+
 set testline "undefined line"
 
 if ![ld_assemble $as "--64 $srcdir/$subdir/undefined.s" tmpdir/undefined.o] {
@@ -36,8 +43,8 @@ remote_file host delete "tmpdir/undefined"
 
 # Using -e start prevents the SunOS linker from trying to build a
 # shared library.
-send_log "$ld -e start -melf_x86_64 -o tmpdir/undefined tmpdir/undefined.o\n"
-set exec_output [run_host_cmd "$ld" "-e start -melf_x86_64 -o tmpdir/undefined tmpdir/undefined.o"]
+send_log "$ld -e start -m$emul -o tmpdir/undefined tmpdir/undefined.o\n"
+set exec_output [run_host_cmd "$ld" "-e start -m$emul -o tmpdir/undefined tmpdir/undefined.o"]
 
 send_log "$exec_output\n"
 verbose "$exec_output"
This page took 0.024083 seconds and 4 git commands to generate.