Ulrich Weigand pointed out that the new PPC ELF v2 ABI does not use
function descriptors. The libgo testsuite script had special code to
recognize function descriptors in the data section for PPC. This patch
lets it also recognize functions in the text section. Bootstrapped and
ran Go testsuite on x86_64-unknown-linux-gnu, which admittedly proves
nothing. Committed to mainline.
Ian
diff -r 5f0d0a4d0075 libgo/testsuite/gotest
--- a/libgo/testsuite/gotest Mon Nov 18 18:11:13 2013 -0800
+++ b/libgo/testsuite/gotest Mon Nov 18 18:11:49 2013 -0800
@@ -369,7 +369,7 @@
{
text="T"
case "$GOARCH" in
- ppc64) text="D" ;;
+ ppc64) text="[TD]" ;;
esac
symtogo='sed -e s/_test/XXXtest/ -e s/.*_\([^_]*\.\)/\1/ -e s/XXXtest/_test/'