New NOCROSSREFS_TO tests
authorAlan Modra <amodra@gmail.com>
Thu, 21 Apr 2016 01:35:41 +0000 (11:05 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 21 Apr 2016 01:47:37 +0000 (11:17 +0930)
Fixes failures on hppa-linux and alpha-linux due to not merging
.data.* and .sdata into .data.  cross3.t modified too since it is the
template for the NOCROSSREFS_TO scripts.

* testsuite/ld-scripts/cross3.t: Add commonly used data
and text section names to output section statements.
* testsuite/ld-scripts/cross4.t: Likewise.
* testsuite/ld-scripts/cross5.t: Likewise.
* testsuite/ld-scripts/cross6.t: Likewise.
* testsuite/ld-scripts/cross7.t: Likewise.

ld/ChangeLog
ld/testsuite/ld-scripts/cross3.t
ld/testsuite/ld-scripts/cross4.t
ld/testsuite/ld-scripts/cross5.t
ld/testsuite/ld-scripts/cross6.t
ld/testsuite/ld-scripts/cross7.t

index 07209d5..0721142 100644 (file)
@@ -1,3 +1,12 @@
+2016-04-21  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-scripts/cross3.t: Add commonly used data
+       and text section names to output section statements.
+       * testsuite/ld-scripts/cross4.t: Likewise.
+       * testsuite/ld-scripts/cross5.t: Likewise.
+       * testsuite/ld-scripts/cross6.t: Likewise.
+       * testsuite/ld-scripts/cross7.t: Likewise.
+
 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
 
        * ldlang.c (lang_check_relocs): New function.
index 5e32bb2..e48b947 100644 (file)
@@ -2,9 +2,9 @@ NOCROSSREFS(.nocrossrefs .text)
 
 SECTIONS
 {
-  .text : { *(.text) }
+  .text : { *(.text) *(.text.*) }
   .nocrossrefs : { *(.nocrossrefs) }
-  .data : { *(.data) *(.opd) }
+  .data : { *(.data) *(.data.*) *(.sdata) *(.opd) }
   .bss : { *(.bss) *(COMMON) }
   /DISCARD/ : { *(*) }
 }
index 7f91b81..4e5d28a 100644 (file)
@@ -2,9 +2,9 @@ NOCROSSREFS_TO(.data .nocrossrefs)
 
 SECTIONS
 {
-  .text : { *(.text) }
+  .text : { *(.text) *(.text.*) }
   .nocrossrefs : { *(.nocrossrefs) }
-  .data : { *(.data) *(.opd) }
+  .data : { *(.data) *(.data.*) *(.sdata) *(.opd) }
   .bss : { *(.bss) *(COMMON) }
   /DISCARD/ : { *(*) }
 }
index 43657f1..a581b92 100644 (file)
@@ -2,9 +2,9 @@ NOCROSSREFS_TO(.nocrossrefs .data)
 
 SECTIONS
 {
-  .text : { *(.text) }
+  .text : { *(.text) *(.text.*) }
   .nocrossrefs : { *(.nocrossrefs) }
-  .data : { *(.data) *(.opd) }
+  .data : { *(.data) *(.data.*) *(.sdata) *(.opd) }
   .bss : { *(.bss) *(COMMON) }
   /DISCARD/ : { *(*) }
 }
index 4664221..0f23ca0 100644 (file)
@@ -2,8 +2,8 @@ NOCROSSREFS_TO(.text .data)
 
 SECTIONS
 {
-  .text : { *(.text) }
-  .data : { *(.data) *(.opd) }
+  .text : { *(.text) *(.text.*) }
+  .data : { *(.data) *(.data.*) *(.sdata) *(.opd) }
   .bss : { *(.bss) *(COMMON) }
   /DISCARD/ : { *(*) }
 }
index dad2103..29173fc 100644 (file)
@@ -2,8 +2,8 @@ NOCROSSREFS_TO(.data .text)
 
 SECTIONS
 {
-  .text : { *(.text) }
-  .data : { *(.data) *(.opd) }
+  .text : { *(.text) *(.text.*) }
+  .data : { *(.data) *(.data.*) *(.sdata) *(.opd) }
   .bss : { *(.bss) *(COMMON) }
   /DISCARD/ : { *(*) }
 }