aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-10-18 02:25:42 +0000
committerAlan Modra <amodra@gmail.com>2005-10-18 02:25:42 +0000
commit97e5838e9c0b4319956db6fb1ae00622c6f6ca3b (patch)
treeeefd637f17224c201524b4e26a2a2154186a903e /ld/testsuite
parentef0fdf07a40a2097075d60d745150408f0ea9c30 (diff)
downloadgdb-97e5838e9c0b4319956db6fb1ae00622c6f6ca3b.zip
gdb-97e5838e9c0b4319956db6fb1ae00622c6f6ca3b.tar.gz
gdb-97e5838e9c0b4319956db6fb1ae00622c6f6ca3b.tar.bz2
* ld-scripts/crossref.exp: Add -mcall-aixdesc to CFLAGS for
powerpc64.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-scripts/crossref.exp7
2 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 4e5d217..a93a2c2 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-18 Alan Modra <amodra@bigpond.net.au>
+
+ * ld-scripts/crossref.exp: Add -mcall-aixdesc to CFLAGS for
+ powerpc64.
+
2005-10-13 Mark Mitchell <mark@codesourcery.com>
* ld-elfvers/vers.exp: Add vers31.
diff --git a/ld/testsuite/ld-scripts/crossref.exp b/ld/testsuite/ld-scripts/crossref.exp
index 686b327..c47e05f 100644
--- a/ld/testsuite/ld-scripts/crossref.exp
+++ b/ld/testsuite/ld-scripts/crossref.exp
@@ -35,6 +35,13 @@ if [istarget xtensa*-*-*] {
set CFLAGS "$CFLAGS -mtext-section-literals"
}
+# If we have a compiler that doesn't use/reference dot-symbols, then
+# calls to functions reference the .opd section function descriptor.
+# This makes NOCROSSREFS rather useless on powerpc64.
+if [istarget powerpc64*-*-*] {
+ set CFLAGS "$CFLAGS -mcall-aixdesc"
+}
+
if { ![ld_compile $CC "$srcdir/$subdir/cross1.c" tmpdir/cross1.o] \
|| ![ld_compile $CC "$srcdir/$subdir/cross2.c" tmpdir/cross2.o] } {
unresolved $test1