Silence nds32 pic warnings
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elf / sec64k.exp
index 7c9f2929cbe0895588a3adb58f629211756ba37d..b99473f1a64a7c08ff5d9960fb4e8bf3a392b746 100644 (file)
@@ -1,6 +1,5 @@
 # Expect script for tests for >64k sections
-#   Copyright 2002, 2003, 2005, 2006, 2007, 2008
-#   Free Software Foundation, Inc.
+#   Copyright (C) 2002-2018 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
@@ -28,16 +27,21 @@ if ![is_elf_format] {
     return
 }
 
-# Targets using the generic linker backend don't sort section symbols
+# Targets using _bfd_generic_final_link don't sort section symbols
 # before local symbols, so don't bother testing them.
-if { [istarget "arc-*-*"]
-     || [istarget "d30v-*-*"]
+if { [istarget "d30v-*-*"]
      || [istarget "dlx-*-*"]
      || [istarget "i960-*-*"]
-     || [istarget "msp430*-*-*"]
-     || [istarget "or32-*-*"]
-     || [istarget "pj*-*-*"]
-     || [istarget "m32r-*-*"] } {
+     || [istarget "pj*-*-*"] } {
+    return
+}
+
+# ft32, h8300, ip2k, m68hc11, m68hc12 and xgate run out of address space.
+if {[istarget "ft32-*-*"]
+    || [istarget "h8300-*-*"]
+    || [istarget "ip2k-*-*"]
+    || [istarget "m68hc1*-*"]
+    || [istarget "xgate-*"] } {
     return
 }
 
@@ -141,7 +145,7 @@ if { ![istarget "m32r-*-*"] } then {
     puts $ofd "#..."
     puts $ofd " 340..: 0+\[ \]+0\[ \]+SECTION\[ \]+LOCAL\[ \]+DEFAULT\[ \]+68... "
     puts $ofd "#..."
-    puts $ofd " 340..: 0+(2|4|8)\[ \]+0\[ \]+NOTYPE\[ \]+LOCAL\[ \]+DEFAULT\[ \]+\[2-5\] bar_1$"
+    puts $ofd " 340..: 0+(2|4|8)\[ \]+0\[ \]+NOTYPE\[ \]+LOCAL\[ \]+DEFAULT\[ \]+\[2-7\] bar_1$"
     puts $ofd "#..."
     puts $ofd ".* bar_34000$"
     puts $ofd "#..."
@@ -162,17 +166,16 @@ if [catch { set ofd [open "tmpdir/$test2.d" w] } x] {
     return
 }
 
-# too big for d10v and msp
+# too big for avr, d10v and msp
 # lack of fancy orphan section handling causes overlap on fr30 and iq2000
 if { ![istarget "d10v-*-*"]
+     && ![istarget "avr-*-*"]
      && ![istarget "msp*-*-*"]
      && ![istarget "fr30-*-*"] 
-     && ![istarget "iq2000-*-*"] } {
+     && ![istarget "iq2000-*-*"]
+     && ![istarget "pru-*-*"] } {
     foreach sfile $sfiles { puts $ofd "#source: $sfile" }
-    if { [istarget "avr-*-*"] } then {
-       puts $ofd "#as: -mmcu=avr6"
-       puts $ofd "#ld: -mavr6"
-    } elseif { [istarget spu*-*-*] } {
+    if { [istarget spu*-*-*] } {
        puts $ofd "#ld: --local-store 0:0"
     } else {
        puts $ofd "#ld:"
This page took 0.024398 seconds and 4 git commands to generate.