fix a couple of ld tests for alpha
Richard Henderson
rth@twiddle.net
Sun May 22 22:09:00 GMT 2005
Alpha is one of the few platforms that use st_other for something
other than visibility. Under normal conditions, all functions get
marked with now they use the GP register. Curiously, someone had
already modified some of the pattern files to take this into account,
but not all of them.
r~
* ld-elfweak/dsow.dsym: Adjust for non-zero ST_OTHER.
* ld-elfweak/weak.dsym: Likewise.
* ld-selective/selective.exp: Don't test alpha.
Index: testsuite/ld-elfweak/dsow.dsym
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elfweak/dsow.dsym,v
retrieving revision 1.2
diff -u -p -d -r1.2 dsow.dsym
--- testsuite/ld-elfweak/dsow.dsym 11 Sep 2001 14:25:16 -0000 1.2
+++ testsuite/ld-elfweak/dsow.dsym 22 May 2005 21:00:22 -0000
@@ -1 +1 @@
-[0-9a-f]*[ ]+w[ ]+DF[ ]+.text[ ]+[0-9a-f]*[ ]+(Base[ ]+|[ ]*)foo
+[0-9a-f]*[ ]+w[ ]+DF[ ]+.text[ ]+[0-9a-f]*[ ]+(Base[ ]+|[ ]*)(0x[0-9a-f]+|)[ ]*foo
Index: testsuite/ld-elfweak/weak.dsym
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elfweak/weak.dsym,v
retrieving revision 1.1
diff -u -p -d -r1.1 weak.dsym
--- testsuite/ld-elfweak/weak.dsym 10 Sep 2001 17:11:34 -0000 1.1
+++ testsuite/ld-elfweak/weak.dsym 22 May 2005 21:00:22 -0000
@@ -1 +1 @@
-[0-9a-f]*[ ]+w[ ]+DF[ ]+.text[ ]+[0-9a-f]*[ ]+(Base[ ]+|[ ]*)foo
+[0-9a-f]*[ ]+w[ ]+DF[ ]+.text[ ]+[0-9a-f]*[ ]+(Base[ ]+|[ ]*)(0x[0-9a-f]+|)[ ]*foo
Index: testsuite/ld-selective/selective.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-selective/selective.exp,v
retrieving revision 1.34
diff -u -p -d -r1.34 selective.exp
--- testsuite/ld-selective/selective.exp 12 May 2005 07:32:08 -0000 1.34
+++ testsuite/ld-selective/selective.exp 22 May 2005 21:00:22 -0000
@@ -24,8 +24,8 @@ if ![is_elf_format] {
return
}
-# IA64 does not support selective linking
-if {[istarget "ia64-*-*"]} {
+# Alpha and IA64 do not support selective linking
+if {[istarget "alpha*-*-*"] || [istarget "ia64-*-*"]} {
return
}
@@ -84,7 +84,7 @@ foreach testitem $seltests {
foreach xfail_target $xfails {
setup_xfail $xfail_target
}
- setup_xfail "alpha*-*" "arc*-*" "d30v*-*" "dlx*-*" "i370*-*" "i860*-*"
+ setup_xfail "arc*-*" "d30v*-*" "dlx*-*" "i370*-*" "i860*-*"
setup_xfail "i960*-*" "mn10200-*" "or32-*" "pj-*"
# It's either C or C++ at the moment.
More information about the Binutils
mailing list