gotest: only use [TD] on big-endian PPC64 non-AIX systems
Change-Id: Iab15f03ecdfe0fd773b5b2c7b099dbd08ad71580
Reviewed-on: https://go-review.googlesource.com/108457
Reviewed-by: Than McIntosh <thanm@google.com>
diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest
index 06848fd..434c26d 100755
--- a/libgo/testsuite/gotest
+++ b/libgo/testsuite/gotest
@@ -506,9 +506,13 @@
{
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/'