# Expect script for binutils tests
-# Copyright 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+# Copyright 2006, 2007, 2008, 2009, 2010, 2012 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
# Make sure that binutils can correctly handle ld output in ELF.
if { ![istarget *-*-linux*]
+ && ![istarget *-*-nacl*]
&& ![istarget *-*-gnu*]} {
return
}
binutils_test strip "-z relro -shared" relro1
binutils_test objcopy "-z relro" relro1
binutils_test objcopy "-z relro -shared" relro1
-if { ([istarget "i?86-*-elf*"]
+if { ([istarget "i?86-*-elf*"]
|| (([istarget "i?86-*-linux*"]
|| [istarget "i?86-*-gnu*"])
&& ![istarget "*-*-*aout*"]
&& ![istarget "*-*-*oldld*"])
|| [istarget "x86_64-*-linux*"]
- || [istarget "amd64-*-linux*"]) } {
+ || [istarget "amd64-*-linux*"]
+ || [istarget "i?86-*nacl*"]
+ || [istarget "x86_64-*nacl*"]) } {
binutils_test strip "-z relro -shared" relro2
binutils_test objcopy "-z relro -shared" relro2
}