This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix tic6x linker testcases


Hi Guys,

  A couple of recent changes have introduced some new failures in the
  tic6x section of the linker testsuite.  The patch below updates the
  files to match the new behaviour.

Cheers
  Nick

ld/testsuite/ChangeLog
2014-01-28  Nick Clifton  <nickc@redhat.com>

	PR binutils/16317
	* ld-tic6x/shlib-1.rd: Expect I attribute with RELA sections.
	* ld-tic6x/shlib-1b.rd: Likewise.
	* ld-tic6x/shlib-1r.rd: Likewise.
	* ld-tic6x/shlib-1rb.rd: Likewise.
	* ld-tic6x/shlib-app-1rd: Likewise.
	* ld-tic6x/shlib-app-1b.rd: Likewise.
	* ld-tic6x/shlib-app-1r.rd: Likewise.
	* ld-tic6x/shlib-app-1rb.rd: Likewise.
	* ld-tic6x/shlib-noindex.rd: Likewise.
	* ld-tic6x/static-app-1.rd: Likewise.
	* ld-tic6x/static-app-1b.rd: Likewise.
	* ld-tic6x/static-app-1r.rd: Likewise.
	* ld-tic6x/static-app-1rb.rd: Likewise.
	PR binutils/16318
	* ld-tic6x/tic6x.exp: Expect C6000 osabi value in relocatable
	objects.

diff --git a/ld/testsuite/ld-tic6x/shlib-1.rd b/ld/testsuite/ld-tic6x/shlib-1.rd
index 029bda1..1fe043b 100644
--- a/ld/testsuite/ld-tic6x/shlib-1.rd
+++ b/ld/testsuite/ld-tic6x/shlib-1.rd
@@ -6,10 +6,10 @@ Section Headers:
   \[ 1\] \.hash             HASH            00008000 001000 000048 04   A  2   0  4
   \[ 2\] \.dynsym           DYNSYM          00008048 001048 0000d0 10   A  3   6  4
   \[ 3\] \.dynstr           STRTAB          00008118 001118 000025 00   A  0   0  1
-  \[ 4\] \.rela\.got         RELA            00008140 001140 000024 0c   A  2  10  4
-  \[ 5\] \.rela\.neardata    RELA            00008164 001164 000018 0c   A  2  11  4
+  \[ 4\] \.rela\.got         RELA            00008140 001140 000024 0c  AI  2  10  4
+  \[ 5\] \.rela\.neardata    RELA            00008164 001164 000018 0c  AI  2  11  4
   \[ 6\] \.dynamic          DYNAMIC         0000817c 00117c 0000a8 08  WA  3   0  4
-  \[ 7\] \.rela\.plt         RELA            10000000 002000 000018 0c   A  2   8  4
+  \[ 7\] \.rela\.plt         RELA            10000000 002000 000018 0c  AI  2   8  4
   \[ 8\] \.plt              PROGBITS        10000020 002020 000060 18  AX  0   0 32
   \[ 9\] \.text             PROGBITS        10000080 002080 000080 00  AX  0   0 32
   \[10\] \.got              PROGBITS        10000100 002100 000028 00  WA  0   0  4
diff --git a/ld/testsuite/ld-tic6x/shlib-1b.rd b/ld/testsuite/ld-tic6x/shlib-1b.rd
index 029bda1..1fe043b 100644
--- a/ld/testsuite/ld-tic6x/shlib-1b.rd
+++ b/ld/testsuite/ld-tic6x/shlib-1b.rd
@@ -6,10 +6,10 @@ Section Headers:
   \[ 1\] \.hash             HASH            00008000 001000 000048 04   A  2   0  4
   \[ 2\] \.dynsym           DYNSYM          00008048 001048 0000d0 10   A  3   6  4
   \[ 3\] \.dynstr           STRTAB          00008118 001118 000025 00   A  0   0  1
-  \[ 4\] \.rela\.got         RELA            00008140 001140 000024 0c   A  2  10  4
-  \[ 5\] \.rela\.neardata    RELA            00008164 001164 000018 0c   A  2  11  4
+  \[ 4\] \.rela\.got         RELA            00008140 001140 000024 0c  AI  2  10  4
+  \[ 5\] \.rela\.neardata    RELA            00008164 001164 000018 0c  AI  2  11  4
   \[ 6\] \.dynamic          DYNAMIC         0000817c 00117c 0000a8 08  WA  3   0  4
-  \[ 7\] \.rela\.plt         RELA            10000000 002000 000018 0c   A  2   8  4
+  \[ 7\] \.rela\.plt         RELA            10000000 002000 000018 0c  AI  2   8  4
   \[ 8\] \.plt              PROGBITS        10000020 002020 000060 18  AX  0   0 32
   \[ 9\] \.text             PROGBITS        10000080 002080 000080 00  AX  0   0 32
   \[10\] \.got              PROGBITS        10000100 002100 000028 00  WA  0   0  4
diff --git a/ld/testsuite/ld-tic6x/shlib-1r.rd b/ld/testsuite/ld-tic6x/shlib-1r.rd
index 029bda1..1fe043b 100644
--- a/ld/testsuite/ld-tic6x/shlib-1r.rd
+++ b/ld/testsuite/ld-tic6x/shlib-1r.rd
@@ -6,10 +6,10 @@ Section Headers:
   \[ 1\] \.hash             HASH            00008000 001000 000048 04   A  2   0  4
   \[ 2\] \.dynsym           DYNSYM          00008048 001048 0000d0 10   A  3   6  4
   \[ 3\] \.dynstr           STRTAB          00008118 001118 000025 00   A  0   0  1
-  \[ 4\] \.rela\.got         RELA            00008140 001140 000024 0c   A  2  10  4
-  \[ 5\] \.rela\.neardata    RELA            00008164 001164 000018 0c   A  2  11  4
+  \[ 4\] \.rela\.got         RELA            00008140 001140 000024 0c  AI  2  10  4
+  \[ 5\] \.rela\.neardata    RELA            00008164 001164 000018 0c  AI  2  11  4
   \[ 6\] \.dynamic          DYNAMIC         0000817c 00117c 0000a8 08  WA  3   0  4
-  \[ 7\] \.rela\.plt         RELA            10000000 002000 000018 0c   A  2   8  4
+  \[ 7\] \.rela\.plt         RELA            10000000 002000 000018 0c  AI  2   8  4
   \[ 8\] \.plt              PROGBITS        10000020 002020 000060 18  AX  0   0 32
   \[ 9\] \.text             PROGBITS        10000080 002080 000080 00  AX  0   0 32
   \[10\] \.got              PROGBITS        10000100 002100 000028 00  WA  0   0  4
diff --git a/ld/testsuite/ld-tic6x/shlib-1rb.rd b/ld/testsuite/ld-tic6x/shlib-1rb.rd
index 029bda1..1fe043b 100644
--- a/ld/testsuite/ld-tic6x/shlib-1rb.rd
+++ b/ld/testsuite/ld-tic6x/shlib-1rb.rd
@@ -6,10 +6,10 @@ Section Headers:
   \[ 1\] \.hash             HASH            00008000 001000 000048 04   A  2   0  4
   \[ 2\] \.dynsym           DYNSYM          00008048 001048 0000d0 10   A  3   6  4
   \[ 3\] \.dynstr           STRTAB          00008118 001118 000025 00   A  0   0  1
-  \[ 4\] \.rela\.got         RELA            00008140 001140 000024 0c   A  2  10  4
-  \[ 5\] \.rela\.neardata    RELA            00008164 001164 000018 0c   A  2  11  4
+  \[ 4\] \.rela\.got         RELA            00008140 001140 000024 0c  AI  2  10  4
+  \[ 5\] \.rela\.neardata    RELA            00008164 001164 000018 0c  AI  2  11  4
   \[ 6\] \.dynamic          DYNAMIC         0000817c 00117c 0000a8 08  WA  3   0  4
-  \[ 7\] \.rela\.plt         RELA            10000000 002000 000018 0c   A  2   8  4
+  \[ 7\] \.rela\.plt         RELA            10000000 002000 000018 0c  AI  2   8  4
   \[ 8\] \.plt              PROGBITS        10000020 002020 000060 18  AX  0   0 32
   \[ 9\] \.text             PROGBITS        10000080 002080 000080 00  AX  0   0 32
   \[10\] \.got              PROGBITS        10000100 002100 000028 00  WA  0   0  4
diff --git a/ld/testsuite/ld-tic6x/shlib-app-1.rd b/ld/testsuite/ld-tic6x/shlib-app-1.rd
index 9c691c9..74b090e 100644
--- a/ld/testsuite/ld-tic6x/shlib-app-1.rd
+++ b/ld/testsuite/ld-tic6x/shlib-app-1.rd
@@ -6,11 +6,11 @@ Section Headers:
   \[ 1\] \.hash             HASH            00008000 001000 000044 04   A  2   0  4
   \[ 2\] \.dynsym           DYNSYM          00008044 001044 0000c0 10   A  3   6  4
   \[ 3\] \.dynstr           STRTAB          00008104 001104 000035 00   A  0   0  1
-  \[ 4\] \.rela\.got         RELA            0000813c 00113c 000018 0c   A  2  11  4
-  \[ 5\] \.rela\.neardata    RELA            00008154 001154 000018 0c   A  2  12  4
-  \[ 6\] \.rela\.bss         RELA            0000816c 00116c 00000c 0c   A  2  13  4
+  \[ 4\] \.rela\.got         RELA            0000813c 00113c 000018 0c  AI  2  11  4
+  \[ 5\] \.rela\.neardata    RELA            00008154 001154 000018 0c  AI  2  12  4
+  \[ 6\] \.rela\.bss         RELA            0000816c 00116c 00000c 0c  AI  2  13  4
   \[ 7\] \.dynamic          DYNAMIC         00008178 001178 0000b8 08  WA  3   0  4
-  \[ 8\] \.rela\.plt         RELA            10000000 002000 00000c 0c   A  2   9  4
+  \[ 8\] \.rela\.plt         RELA            10000000 002000 00000c 0c  AI  2   9  4
   \[ 9\] \.plt              PROGBITS        10000020 002020 000040 18  AX  0   0 32
   \[10\] \.text             PROGBITS        10000060 002060 000040 00  AX  0   0 32
   \[11\] \.got              PROGBITS        100000a0 0020a0 000020 00  WA  0   0  4
diff --git a/ld/testsuite/ld-tic6x/shlib-app-1b.rd b/ld/testsuite/ld-tic6x/shlib-app-1b.rd
index a541a5c..9c0610d 100644
--- a/ld/testsuite/ld-tic6x/shlib-app-1b.rd
+++ b/ld/testsuite/ld-tic6x/shlib-app-1b.rd
@@ -6,11 +6,11 @@ Section Headers:
   \[ 1\] \.hash             HASH            00008000 001000 000044 04   A  2   0  4
   \[ 2\] \.dynsym           DYNSYM          00008044 001044 0000c0 10   A  3   6  4
   \[ 3\] \.dynstr           STRTAB          00008104 001104 000036 00   A  0   0  1
-  \[ 4\] \.rela\.got         RELA            0000813c 00113c 000018 0c   A  2  11  4
-  \[ 5\] \.rela\.neardata    RELA            00008154 001154 000018 0c   A  2  12  4
-  \[ 6\] \.rela\.bss         RELA            0000816c 00116c 00000c 0c   A  2  13  4
+  \[ 4\] \.rela\.got         RELA            0000813c 00113c 000018 0c  AI  2  11  4
+  \[ 5\] \.rela\.neardata    RELA            00008154 001154 000018 0c  AI  2  12  4
+  \[ 6\] \.rela\.bss         RELA            0000816c 00116c 00000c 0c  AI  2  13  4
   \[ 7\] \.dynamic          DYNAMIC         00008178 001178 0000b8 08  WA  3   0  4
-  \[ 8\] \.rela\.plt         RELA            10000000 002000 00000c 0c   A  2   9  4
+  \[ 8\] \.rela\.plt         RELA            10000000 002000 00000c 0c  AI  2   9  4
   \[ 9\] \.plt              PROGBITS        10000020 002020 000040 18  AX  0   0 32
   \[10\] \.text             PROGBITS        10000060 002060 000040 00  AX  0   0 32
   \[11\] \.got              PROGBITS        100000a0 0020a0 000020 00  WA  0   0  4
diff --git a/ld/testsuite/ld-tic6x/shlib-app-1r.rd b/ld/testsuite/ld-tic6x/shlib-app-1r.rd
index 5c1b675..5cba27e 100644
--- a/ld/testsuite/ld-tic6x/shlib-app-1r.rd
+++ b/ld/testsuite/ld-tic6x/shlib-app-1r.rd
@@ -6,10 +6,10 @@ Section Headers:
   \[ 1\] \.hash             HASH            00008000 001000 00003c 04   A  2   0  4
   \[ 2\] \.dynsym           DYNSYM          0000803c 00103c 0000a0 10   A  3   6  4
   \[ 3\] \.dynstr           STRTAB          000080dc 0010dc 000030 00   A  0   0  1
-  \[ 4\] \.rela\.got         RELA            0000810c 00110c 000018 0c   A  2  10  4
-  \[ 5\] \.rela\.bss         RELA            00008124 001124 00000c 0c   A  2  12  4
+  \[ 4\] \.rela\.got         RELA            0000810c 00110c 000018 0c  AI  2  10  4
+  \[ 5\] \.rela\.bss         RELA            00008124 001124 00000c 0c  AI  2  12  4
   \[ 6\] \.dynamic          DYNAMIC         00008130 001130 0000b8 08  WA  3   0  4
-  \[ 7\] \.rela\.plt         RELA            10000000 002000 00000c 0c   A  2   8  4
+  \[ 7\] \.rela\.plt         RELA            10000000 002000 00000c 0c  AI  2   8  4
   \[ 8\] \.plt              PROGBITS        10000020 002020 000040 18  AX  0   0 32
   \[ 9\] \.text             PROGBITS        10000060 002060 000040 00  AX  0   0 32
   \[10\] \.got              PROGBITS        100000a0 0020a0 000020 00  WA  0   0  4
diff --git a/ld/testsuite/ld-tic6x/shlib-app-1rb.rd b/ld/testsuite/ld-tic6x/shlib-app-1rb.rd
index d121832..7119945 100644
--- a/ld/testsuite/ld-tic6x/shlib-app-1rb.rd
+++ b/ld/testsuite/ld-tic6x/shlib-app-1rb.rd
@@ -6,10 +6,10 @@ Section Headers:
   \[ 1\] \.hash             HASH            00008000 001000 00003c 04   A  2   0  4
   \[ 2\] \.dynsym           DYNSYM          0000803c 00103c 0000a0 10   A  3   6  4
   \[ 3\] \.dynstr           STRTAB          000080dc 0010dc 000031 00   A  0   0  1
-  \[ 4\] \.rela\.got         RELA            00008110 001110 000018 0c   A  2  10  4
-  \[ 5\] \.rela\.bss         RELA            00008128 001128 00000c 0c   A  2  12  4
+  \[ 4\] \.rela\.got         RELA            00008110 001110 000018 0c  AI  2  10  4
+  \[ 5\] \.rela\.bss         RELA            00008128 001128 00000c 0c  AI  2  12  4
   \[ 6\] \.dynamic          DYNAMIC         00008134 001134 0000b8 08  WA  3   0  4
-  \[ 7\] \.rela\.plt         RELA            10000000 002000 00000c 0c   A  2   8  4
+  \[ 7\] \.rela\.plt         RELA            10000000 002000 00000c 0c  AI  2   8  4
   \[ 8\] \.plt              PROGBITS        10000020 002020 000040 18  AX  0   0 32
   \[ 9\] \.text             PROGBITS        10000060 002060 000040 00  AX  0   0 32
   \[10\] \.got              PROGBITS        100000a0 0020a0 000020 00  WA  0   0  4
diff --git a/ld/testsuite/ld-tic6x/shlib-noindex.rd b/ld/testsuite/ld-tic6x/shlib-noindex.rd
index e030b17..b4de2e5 100644
--- a/ld/testsuite/ld-tic6x/shlib-noindex.rd
+++ b/ld/testsuite/ld-tic6x/shlib-noindex.rd
@@ -6,11 +6,11 @@ Section Headers:
   \[ 1\] \.hash             HASH            00008000 001000 000048 04   A  2   0  4
   \[ 2\] \.dynsym           DYNSYM          00008048 001048 0000d0 10   A  3   6  4
   \[ 3\] \.dynstr           STRTAB          00008118 001118 000025 00   A  0   0  1
-  \[ 4\] \.rela\.text        RELA            00008140 001140 00000c 0c   A  2  10  4
-  \[ 5\] \.rela\.got         RELA            0000814c 00114c 000024 0c   A  2  11  4
-  \[ 6\] \.rela\.neardata    RELA            00008170 001170 000018 0c   A  2  12  4
+  \[ 4\] \.rela\.text        RELA            00008140 001140 00000c 0c  AI  2  10  4
+  \[ 5\] \.rela\.got         RELA            0000814c 00114c 000024 0c  AI  2  11  4
+  \[ 6\] \.rela\.neardata    RELA            00008170 001170 000018 0c  AI  2  12  4
   \[ 7\] \.dynamic          DYNAMIC         00008188 001188 0000b0 08  WA  3   0  4
-  \[ 8\] \.rela\.plt         RELA            10000000 002000 000018 0c   A  2   9  4
+  \[ 8\] \.rela\.plt         RELA            10000000 002000 000018 0c  AI  2   9  4
   \[ 9\] \.plt              PROGBITS        10000020 002020 000060 18  AX  0   0 32
   \[10\] \.text             PROGBITS        10000080 002080 000080 00  AX  0   0 32
   \[11\] \.got              PROGBITS        10000100 002100 000028 00  WA  0   0  4
diff --git a/ld/testsuite/ld-tic6x/static-app-1.rd b/ld/testsuite/ld-tic6x/static-app-1.rd
index c56d637..ebe3675 100644
--- a/ld/testsuite/ld-tic6x/static-app-1.rd
+++ b/ld/testsuite/ld-tic6x/static-app-1.rd
@@ -6,8 +6,8 @@ Section Headers:
   \[ 1\] \.hash             HASH            00008000 001000 00003c 04   A  2   0  4
   \[ 2\] \.dynsym           DYNSYM          0000803c 00103c 0000a0 10   A  3   5  4
   \[ 3\] \.dynstr           STRTAB          000080dc 0010dc 00001d 00   A  0   0  1
-  \[ 4\] \.rela\.got         RELA            000080fc 0010fc 000024 0c   A  2   8  4
-  \[ 5\] \.rela\.neardata    RELA            00008120 001120 000030 0c   A  2   9  4
+  \[ 4\] \.rela\.got         RELA            000080fc 0010fc 000024 0c  AI  2   8  4
+  \[ 5\] \.rela\.neardata    RELA            00008120 001120 000030 0c  AI  2   9  4
   \[ 6\] \.dynamic          DYNAMIC         00008150 001150 000090 08  WA  3   0  4
   \[ 7\] \.text             PROGBITS        10000000 002000 0000c0 00  AX  0   0 32
   \[ 8\] \.got              PROGBITS        100000c0 0020c0 000020 00  WA  0   0  4
diff --git a/ld/testsuite/ld-tic6x/static-app-1b.rd b/ld/testsuite/ld-tic6x/static-app-1b.rd
index c56d637..ebe3675 100644
--- a/ld/testsuite/ld-tic6x/static-app-1b.rd
+++ b/ld/testsuite/ld-tic6x/static-app-1b.rd
@@ -6,8 +6,8 @@ Section Headers:
   \[ 1\] \.hash             HASH            00008000 001000 00003c 04   A  2   0  4
   \[ 2\] \.dynsym           DYNSYM          0000803c 00103c 0000a0 10   A  3   5  4
   \[ 3\] \.dynstr           STRTAB          000080dc 0010dc 00001d 00   A  0   0  1
-  \[ 4\] \.rela\.got         RELA            000080fc 0010fc 000024 0c   A  2   8  4
-  \[ 5\] \.rela\.neardata    RELA            00008120 001120 000030 0c   A  2   9  4
+  \[ 4\] \.rela\.got         RELA            000080fc 0010fc 000024 0c  AI  2   8  4
+  \[ 5\] \.rela\.neardata    RELA            00008120 001120 000030 0c  AI  2   9  4
   \[ 6\] \.dynamic          DYNAMIC         00008150 001150 000090 08  WA  3   0  4
   \[ 7\] \.text             PROGBITS        10000000 002000 0000c0 00  AX  0   0 32
   \[ 8\] \.got              PROGBITS        100000c0 0020c0 000020 00  WA  0   0  4
diff --git a/ld/testsuite/ld-tic6x/static-app-1r.rd b/ld/testsuite/ld-tic6x/static-app-1r.rd
index 588e422..66bde12 100644
--- a/ld/testsuite/ld-tic6x/static-app-1r.rd
+++ b/ld/testsuite/ld-tic6x/static-app-1r.rd
@@ -6,8 +6,8 @@ Section Headers:
   \[ 1\] \.hash             HASH            00008000 001000 00003c 04   A  2   0  4
   \[ 2\] \.dynsym           DYNSYM          0000803c 00103c 0000a0 10   A  3   5  4
   \[ 3\] \.dynstr           STRTAB          000080dc 0010dc 00001d 00   A  0   0  1
-  \[ 4\] \.rela\.got         RELA            000080fc 0010fc 000024 0c   A  2   8  4
-  \[ 5\] \.rela\.neardata    RELA            00008120 001120 000018 0c   A  2   9  4
+  \[ 4\] \.rela\.got         RELA            000080fc 0010fc 000024 0c  AI  2   8  4
+  \[ 5\] \.rela\.neardata    RELA            00008120 001120 000018 0c  AI  2   9  4
   \[ 6\] \.dynamic          DYNAMIC         00008138 001138 000090 08  WA  3   0  4
   \[ 7\] \.text             PROGBITS        10000000 002000 0000c0 00  AX  0   0 32
   \[ 8\] \.got              PROGBITS        100000c0 0020c0 000020 00  WA  0   0  4
diff --git a/ld/testsuite/ld-tic6x/static-app-1rb.rd b/ld/testsuite/ld-tic6x/static-app-1rb.rd
index 588e422..66bde12 100644
--- a/ld/testsuite/ld-tic6x/static-app-1rb.rd
+++ b/ld/testsuite/ld-tic6x/static-app-1rb.rd
@@ -6,8 +6,8 @@ Section Headers:
   \[ 1\] \.hash             HASH            00008000 001000 00003c 04   A  2   0  4
   \[ 2\] \.dynsym           DYNSYM          0000803c 00103c 0000a0 10   A  3   5  4
   \[ 3\] \.dynstr           STRTAB          000080dc 0010dc 00001d 00   A  0   0  1
-  \[ 4\] \.rela\.got         RELA            000080fc 0010fc 000024 0c   A  2   8  4
-  \[ 5\] \.rela\.neardata    RELA            00008120 001120 000018 0c   A  2   9  4
+  \[ 4\] \.rela\.got         RELA            000080fc 0010fc 000024 0c  AI  2   8  4
+  \[ 5\] \.rela\.neardata    RELA            00008120 001120 000018 0c  AI  2   9  4
   \[ 6\] \.dynamic          DYNAMIC         00008138 001138 000090 08  WA  3   0  4
   \[ 7\] \.text             PROGBITS        10000000 002000 0000c0 00  AX  0   0 32
   \[ 8\] \.got              PROGBITS        100000c0 0020c0 000020 00  WA  0   0  4
diff --git a/ld/testsuite/ld-tic6x/tic6x.exp b/ld/testsuite/ld-tic6x/tic6x.exp
index fe47650..016c597 100644
--- a/ld/testsuite/ld-tic6x/tic6x.exp
+++ b/ld/testsuite/ld-tic6x/tic6x.exp
@@ -195,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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]