summaryrefslogtreecommitdiff
path: root/libgo/testsuite
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2018-04-20 20:40:27 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-04-20 20:40:27 +0000
commit447638d2c4d80ee03650406775c0b8a17d246f55 (patch)
tree6870f73895f3d8172068c864691e15371ed325b3 /libgo/testsuite
parent9b922d6aaf143d35ed5f1c116f0a0702df6ae04c (diff)
gotest: only use [TD] on big-endian PPC64 non-AIX systems
Reviewed-on: https://go-review.googlesource.com/108457 From-SVN: r259531
Diffstat (limited to 'libgo/testsuite')
-rwxr-xr-xlibgo/testsuite/gotest10
1 files changed, 7 insertions, 3 deletions
diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest
index 06848fdb1f0..434c26de933 100755
--- a/libgo/testsuite/gotest
+++ b/libgo/testsuite/gotest
@@ -506,9 +506,13 @@ localname() {
{
text="T"
- case "$goarch" in
- ppc64*) text="[TD]" ;;
- esac
+
+ # On systems using PPC64 ELF ABI v1 function symbols show up
+ # as descriptors in the data section. We assume that $goarch
+ # distinguishes v1 (ppc64) from v2 (ppc64le).
+ if test "$goos" != "aix" && test "$goarch" = "ppc64"; then
+ text="[TD]"
+ fi
symtogo='sed -e s/_test\([^A-Za-z0-9]\)/XXXtest\1/ -e s/.*_\([^_]*\.\)/\1/ -e s/XXXtest/_test/'