aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-gc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-02-09 08:18:54 +0000
committerAlan Modra <amodra@gmail.com>2011-02-09 08:18:54 +0000
commit2893311c839d2e9789c8d1a80ffa651b27a61f93 (patch)
tree3132b570284bbaddf2a67877b0a36bc1963bebbb /ld/testsuite/ld-gc
parent425b145b6ec65eefa2c23131c7c9997f08ebf88c (diff)
downloadgdb-2893311c839d2e9789c8d1a80ffa651b27a61f93.zip
gdb-2893311c839d2e9789c8d1a80ffa651b27a61f93.tar.gz
gdb-2893311c839d2e9789c8d1a80ffa651b27a61f93.tar.bz2
* ld-elfvsb/elfvsb.exp: Don't run any non-PIC tests on powerpc*-linux.
* ld-gc/gc.exp: Ensure powerpc64 test continues to fail. * ld-srec/srec.exp: Don't edit toc on powerpc64.
Diffstat (limited to 'ld/testsuite/ld-gc')
-rw-r--r--ld/testsuite/ld-gc/gc.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-gc/gc.exp b/ld/testsuite/ld-gc/gc.exp
index ee9c975..b7d6dff 100644
--- a/ld/testsuite/ld-gc/gc.exp
+++ b/ld/testsuite/ld-gc/gc.exp
@@ -27,6 +27,11 @@ if ![check_gc_sections_available] {
set cflags "-ffunction-sections -fdata-sections"
set objfile "tmpdir/gc.o"
+if [istarget powerpc64*-*-*] {
+ # otherwise with -mcmodel=medium gcc we get XPASSes.
+ set cflags "$cflags -mminimal-toc"
+}
+
if { [is_remote host] || [which $CC] != 0 } {
ld_compile "$CC -c $CFLAGS $cflags" $srcdir/$subdir/gc.c $objfile
}