aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2018-04-20 20:40:27 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2018-04-20 20:40:27 +0000
commita94f0ebf8d60f27e3eb3da04c6483e3ebedb98bd (patch)
tree6870f73895f3d8172068c864691e15371ed325b3 /libgo
parent426ed695421d355162a601a0df1903c7174b6990 (diff)
gotest: only use [TD] on big-endian PPC64 non-AIX systems
Reviewed-on: https://go-review.googlesource.com/108457 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259531 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-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/'