aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2012-12-15 10:28:17 +0000
committerThomas Schwinge <tschwinge@gnu.org>2012-12-15 10:28:17 +0000
commit9cc420b64c99d8d4a9e16ec361f17793065afde3 (patch)
treeabbc020fc919a952c3ef79d23e24184005030e57 /ld
parentc9b6281a3613cf8ac8f5d2e05c4c73e73f8d5fe7 (diff)
downloadgdb-9cc420b64c99d8d4a9e16ec361f17793065afde3.zip
gdb-9cc420b64c99d8d4a9e16ec361f17793065afde3.tar.gz
gdb-9cc420b64c99d8d4a9e16ec361f17793065afde3.tar.bz2
ld/testsuite/
* ld-elf/elf.exp (stack exec, stack size): Run for any GNU target. * ld-elf/maxpage3c.d: Run for any x86 GNU target. * ld-elf/maxpage4.d: Likewise. * ld-elf/maxpage5.d: Likewise. * ld-i386/export-class.exp: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog8
-rw-r--r--ld/testsuite/ld-elf/elf.exp3
-rw-r--r--ld/testsuite/ld-elf/maxpage3c.d2
-rw-r--r--ld/testsuite/ld-elf/maxpage4.d2
-rw-r--r--ld/testsuite/ld-elf/maxpage5.d2
-rw-r--r--ld/testsuite/ld-i386/export-class.exp5
6 files changed, 15 insertions, 7 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 42ba29b..7ae4014 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2012-12-15 Thomas Schwinge <thomas@codesourcery.com>
+
+ * ld-elf/elf.exp (stack exec, stack size): Run for any GNU target.
+ * ld-elf/maxpage3c.d: Run for any x86 GNU target.
+ * ld-elf/maxpage4.d: Likewise.
+ * ld-elf/maxpage5.d: Likewise.
+ * ld-i386/export-class.exp: Likewise.
+
2012-12-14 Yufeng Zhang <yufeng.zhang@arm.com>
* ld-elf/indirect.exp: Disable if -shared is not supported.
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp
index a33e3b6..8652131 100644
--- a/ld/testsuite/ld-elf/elf.exp
+++ b/ld/testsuite/ld-elf/elf.exp
@@ -126,7 +126,8 @@ if { [check_gc_sections_available] && ![istarget "v850-*-*"] } {
}
}
-if { [istarget *-*-*linux*] } {
+if { [istarget *-*-linux*]
+ || [istarget *-*-gnu*] } {
run_ld_link_tests {
{"stack exec" "-z execstack" "" {stack.s}
{{readelf {-Wl} stack-exec.rd}} "stack-exec.exe"}
diff --git a/ld/testsuite/ld-elf/maxpage3c.d b/ld/testsuite/ld-elf/maxpage3c.d
index 66fef32..354a8b9 100644
--- a/ld/testsuite/ld-elf/maxpage3c.d
+++ b/ld/testsuite/ld-elf/maxpage3c.d
@@ -2,7 +2,7 @@
#as: --32
#ld: -m elf_i386 -z max-page-size=0x10000000 -T maxpage3.t
#readelf: -lS --wide
-#target: x86_64-*-linux* i?86-*-linux-gnu
+#target: x86_64-*-linux* i?86-*-linux-gnu i?86-*-gnu*
#...
\[[ 0-9]+\] \.data[ \t]+PROGBITS[ \t]+0*10000000[ \t]+[ \t0-9a-f]+WA?.*
diff --git a/ld/testsuite/ld-elf/maxpage4.d b/ld/testsuite/ld-elf/maxpage4.d
index cde43d7..a08e856 100644
--- a/ld/testsuite/ld-elf/maxpage4.d
+++ b/ld/testsuite/ld-elf/maxpage4.d
@@ -2,7 +2,7 @@
#as: --32
#ld: -z max-page-size=0x200000 -T maxpage4.t
#readelf: -l --wide
-#target: x86_64-*-linux* i?86-*-linux-gnu
+#target: x86_64-*-linux* i?86-*-linux-gnu i?86-*-gnu*
#...
LOAD+.*0x200000
diff --git a/ld/testsuite/ld-elf/maxpage5.d b/ld/testsuite/ld-elf/maxpage5.d
index bcbd39c..9d9b57a 100644
--- a/ld/testsuite/ld-elf/maxpage5.d
+++ b/ld/testsuite/ld-elf/maxpage5.d
@@ -3,7 +3,7 @@
#ld: -z max-page-size=0x200000 -T maxpage5.t
#objcopy_linked_file: -R .foo
#readelf: -l --wide
-#target: x86_64-*-linux* i?86-*-linux-gnu
+#target: x86_64-*-linux* i?86-*-linux-gnu i?86-*-gnu*
#...
Program Headers:
diff --git a/ld/testsuite/ld-i386/export-class.exp b/ld/testsuite/ld-i386/export-class.exp
index cd96b4b..9dedd90 100644
--- a/ld/testsuite/ld-i386/export-class.exp
+++ b/ld/testsuite/ld-i386/export-class.exp
@@ -29,9 +29,8 @@ if { ![is_elf_format] } {
return
}
-# Exclude non-Linux targets; feel free to include your favorite one
-# if you like.
-if { ![istarget i?86-*-linux*] } {
+if { !([istarget i?86-*-linux*]
+ || [istarget i?86-*-gnu*]) } {
return
}