Place .shstrtab section after .symtab and .strtab, thus restoring monotonically incre...
[deliverable/binutils-gdb.git] / ld / testsuite / ld-tic6x / tic6x.exp
index 5d7b10757a4525d6f8dbcf7500bae793a7b52dde..81cc025570147dc62bb41132f4af967e24bd70cb 100644 (file)
@@ -1,3 +1,24 @@
+# Expect script for ld-tic6x tests
+#
+#   Copyright (C) 2012-2016 Free Software Foundation, Inc.
+#
+# This file is part of the GNU Binutils.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+# MA 02110-1301, USA.
+
 if { ! [istarget tic6x-*-*] } {
     return
 }
@@ -10,21 +31,21 @@ foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.d]] {
 
 set shlibtests {
     {"C6X shared library without --dsbt-index"
-     "-shared  -Tdsbt.ld --dsbt-size=3"
+     "-shared  -Tdsbt.ld --dsbt-size=3" ""
      "-mdsbt -mpic -mpid=near" {shlib-1.s shlib-2.s}
      {{readelf -WSsrld shlib-noindex.rd}
       {objdump "-drj.plt -j.text" shlib-noindex.dd}
       {objdump -sj.got shlib-noindex.sd}}
       "libtestn.so"}
     {"C6X shared library, LE, RELA"
-     "-shared  -Tdsbt.ld --dsbt-index=2 --dsbt-size=3"
+     "-shared  -Tdsbt.ld --dsbt-index=2 --dsbt-size=3" ""
      "-mdsbt -mpic -mpid=near" {shlib-1.s shlib-2.s}
      {{readelf -WSsrld shlib-1.rd}
       {objdump "-drj.plt -j.text" shlib-1.dd}
       {objdump -sj.got shlib-1.sd}}
       "libtest.so"}
     {"C6X nonstatic app using shared library, LE, RELA"
-     "-Tdsbt.ld --dsbt-index 0 --dsbt-size=3 tmpdir/libtest.so"
+     "-Tdsbt.ld --dsbt-index 0 --dsbt-size=3 tmpdir/libtest.so" ""
      "-mdsbt -mpic -mpid=near" {shlib-app-1.s}
      {{readelf -WSsrld shlib-app-1.rd}
       {objdump "-drj.plt -j.text" shlib-app-1.dd}
@@ -32,14 +53,14 @@ set shlibtests {
       {objdump -R shlib-app-1.od}}
      "shlib-dynapp-1"}
     {"C6X shared library, LE, REL"
-     "-shared  -Tdsbt.ld --dsbt-index=2 --dsbt-size=3"
+     "-shared  -Tdsbt.ld --dsbt-index=2 --dsbt-size=3" ""
      "-mdsbt -mpic -mpid=near -mgenerate-rel" {shlib-1.s shlib-2.s}
      {{readelf -WSsrld shlib-1r.rd}
       {objdump "-drj.plt -j.text" shlib-1r.dd}
       {objdump -sj.got shlib-1r.sd}}
       "libtestr.so"}
     {"C6X nonstatic app using shared library, LE, REL"
-     "-Tdsbt.ld --dsbt-index 0 --dsbt-size=3 tmpdir/libtestr.so"
+     "-Tdsbt.ld --dsbt-index 0 --dsbt-size=3 tmpdir/libtestr.so" ""
      "-mdsbt -mpic -mpid=near -mgenerate-rel" {shlib-app-1r.s}
      {{readelf -WSsrld shlib-app-1r.rd}
       {objdump "-drj.plt -j.text" shlib-app-1r.dd}
@@ -47,14 +68,14 @@ set shlibtests {
       {objdump -R shlib-app-1r.od}}
      "shlib-dynapp-1r"}
     {"C6X shared library, BE, RELA"
-     "-shared  -Tdsbt-be.ld --dsbt-index=2 --dsbt-size=3"
+     "-shared  -Tdsbt-be.ld --dsbt-index=2 --dsbt-size=3" ""
      "-mdsbt -mpic -mpid=near -mbig-endian" {shlib-1.s shlib-2.s}
      {{readelf -WSsrld shlib-1b.rd}
       {objdump "-drj.plt -j.text" shlib-1b.dd}
       {objdump -sj.got shlib-1b.sd}}
       "libtestb.so"}
     {"C6X nonstatic app using shared library, BE, RELA"
-     "-Tdsbt-be.ld --dsbt-index 0 --dsbt-size=3 tmpdir/libtestb.so"
+     "-Tdsbt-be.ld --dsbt-index 0 --dsbt-size=3 tmpdir/libtestb.so" ""
      "-mdsbt -mpic -mpid=near -mbig-endian" {shlib-app-1.s}
      {{readelf -WSsrld shlib-app-1b.rd}
       {objdump "-drj.plt -j.text" shlib-app-1b.dd}
@@ -62,14 +83,14 @@ set shlibtests {
       {objdump -R shlib-app-1b.od}}
      "shlib-dynapp-1b"}
     {"C6X shared library, BE, REL"
-     "-shared  -Tdsbt-be.ld --dsbt-index=2 --dsbt-size=3"
+     "-shared  -Tdsbt-be.ld --dsbt-index=2 --dsbt-size=3" ""
      "-mdsbt -mpic -mpid=near -mgenerate-rel -mbig-endian" {shlib-1.s shlib-2.s}
      {{readelf -WSsrld shlib-1rb.rd}
       {objdump "-drj.plt -j.text" shlib-1rb.dd}
       {objdump -sj.got shlib-1rb.sd}}
       "libtestrb.so"}
     {"C6X nonstatic app using shared library, BE, REL"
-     "-Tdsbt-be.ld --dsbt-index 0 --dsbt-size=3 tmpdir/libtestrb.so"
+     "-Tdsbt-be.ld --dsbt-index 0 --dsbt-size=3 tmpdir/libtestrb.so" ""
      "-mdsbt -mpic -mpid=near -mgenerate-rel -mbig-endian" {shlib-app-1r.s}
      {{readelf -WSsrld shlib-app-1rb.rd}
       {objdump "-drj.plt -j.text" shlib-app-1rb.dd}
@@ -78,7 +99,7 @@ set shlibtests {
      "shlib-dynapp-1rb"}
 
     {"C6X static app, LE, RELA"
-     "-Tdsbt.ld --dsbt-index 0 --dsbt-size=3"
+     "-Tdsbt.ld --dsbt-index 0 --dsbt-size=3" ""
      "-mdsbt -mpic -mpid=near" {shlib-1.s shlib-2.s shlib-app-1.s}
      {{readelf -WSsrld static-app-1.rd}
       {objdump "-drj.plt -j.text" static-app-1.dd}
@@ -86,7 +107,7 @@ set shlibtests {
       {objdump -R static-app-1.od}}
      "static-app-1"}
     {"C6X static app, LE, REL"
-     "-Tdsbt.ld --dsbt-index 0 --dsbt-size=3"
+     "-Tdsbt.ld --dsbt-index 0 --dsbt-size=3" ""
      "-mdsbt -mpic -mpid=near -mgenerate-rel" {shlib-1.s shlib-2.s shlib-app-1r.s}
      {{readelf -WSsrld static-app-1r.rd}
       {objdump "-drj.plt -j.text" static-app-1r.dd}
@@ -94,7 +115,7 @@ set shlibtests {
       {objdump -R static-app-1r.od}}
      "static-app-1r"}
     {"C6X static app, BE, RELA"
-     "-Tdsbt-be.ld --dsbt-index 0 --dsbt-size=3"
+     "-Tdsbt-be.ld --dsbt-index 0 --dsbt-size=3" ""
      "-mdsbt -mpic -mpid=near -mbig-endian" {shlib-1.s shlib-2.s shlib-app-1.s}
      {{readelf -WSsrld static-app-1b.rd}
       {objdump "-drj.plt -j.text" static-app-1b.dd}
@@ -102,7 +123,7 @@ set shlibtests {
       {objdump -R static-app-1b.od}}
      "static-app-1b"}
     {"C6X static app, BE, REL"
-     "-Tdsbt-be.ld --dsbt-index 0 --dsbt-size=3"
+     "-Tdsbt-be.ld --dsbt-index 0 --dsbt-size=3" ""
      "-mdsbt -mpic -mpid=near -mbig-endian -mgenerate-rel" {shlib-1.s shlib-2.s shlib-app-1r.s}
      {{readelf -WSsrld static-app-1rb.rd}
       {objdump "-drj.plt -j.text" static-app-1rb.dd}
@@ -174,7 +195,5 @@ check_osabi_tic6x "C6X shared library OSABI, BE" tmpdir/libtestb.so
 check_osabi_tic6x "C6X dynamic app OSABI, LE" tmpdir/dynapp-1
 check_osabi_tic6x "C6X dynamic app OSABI, BE" tmpdir/dynapp-1b
 
-set expected_osabi "UNIX - System V"
-
 check_osabi_tic6x "C6X relocatable link OSABI, LE" tmpdir/shlib.o
 check_osabi_tic6x "C6X relocatable link OSABI, BE" tmpdir/shlibb.o
This page took 0.026148 seconds and 4 git commands to generate.