* ld-scripts/crossref.exp: Add -mcall-aixdesc to CFLAGS for
authorAlan Modra <amodra@gmail.com>
Tue, 18 Oct 2005 02:25:42 +0000 (02:25 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 18 Oct 2005 02:25:42 +0000 (02:25 +0000)
powerpc64.

ld/testsuite/ChangeLog
ld/testsuite/ld-scripts/crossref.exp

index 4e5d21726dbbc06d522ce696c097b676f946ca24..a93a2c2f4cd4076e95a8ecfbf23743109db737b3 100644 (file)
@@ -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.
index 686b327318fbd9bea40fe5b0fb525dc5da272fcf..c47e05ffc37b6376927abab48469caddf763d528 100644 (file)
@@ -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