unit at a time
[platform/upstream/binutils.git] / ld / testsuite / ld-selective / selective.exp
index f328441..274394e 100644 (file)
@@ -1,6 +1,5 @@
 # Expect script for LD selective linking tests
-#   Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009,
-#   2010, 2011 Free Software Foundation, Inc.
+#   Copyright (C) 1998-2014 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
@@ -47,8 +46,8 @@ set seltests {
     {A::foo() B::foo() dropme1() dropme2()} {*-*-*}}
 }
 
-set cflags "-w -O -ffunction-sections -fdata-sections"
-set cxxflags "-fno-exceptions -fno-rtti"
+set cflags "-w -O -ffunction-sections -fdata-sections -fno-unit-at-a-time"
+set cxxflags "-fno-exceptions -fno-rtti -fno-unit-at-a-time"
 set ldflags "--gc-sections -Bstatic"
 
 if [istarget mips*-*] {
@@ -141,7 +140,7 @@ foreach testitem $seltests {
     }
 
     # m6811/m6812 code has references to soft registers.
-    if {[istarget m6811-*-*] || [istarget m6812-*-*]} {
+    if {[istarget m6811-*-*] || [istarget m6812-*-*] || [istarget m68hc1*-*-*]} {
        set objfile "$objfile --defsym _.frame=0 --defsym _.d1=0"
        set objfile "$objfile --defsym _.d2=0"
     }