aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2019-10-19 13:01:29 -0400
committerJohn David Anglin <danglin@gcc.gnu.org>2019-10-19 13:01:29 -0400
commit1c1a69dcaeb01037f3191a5ebf1b2f9c0dcbe7a3 (patch)
treeddc80b34a58b36540b01c7c71c513b517b3b17d2 /ld/testsuite
parentf71433ee7f231a2c8c490b468a23c88ca5b33e3a (diff)
downloadgdb-1c1a69dcaeb01037f3191a5ebf1b2f9c0dcbe7a3.zip
gdb-1c1a69dcaeb01037f3191a5ebf1b2f9c0dcbe7a3.tar.gz
gdb-1c1a69dcaeb01037f3191a5ebf1b2f9c0dcbe7a3.tar.bz2
[ld] Fix failure of pr19161 on hppa*-*linux*.
ld/ChangeLog 2019-10-19 Alan Modra <amodra@gmail.com> PR ld/25110 * testsuite/ld-gc/gc.exp: Adjust LDFLAGS for pr19161 dump test on hppa*-*-linux*.
Diffstat (limited to 'ld/testsuite')
-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 fe50f31..f791593 100644
--- a/ld/testsuite/ld-gc/gc.exp
+++ b/ld/testsuite/ld-gc/gc.exp
@@ -154,7 +154,12 @@ if { [check_compiler_available] } {
if { [check_compiler_available] } {
ld_compile "$CC $CFLAGS $cflags -O0" $srcdir/$subdir/pr19161-1.c tmpdir/pr19161-1.o
ld_compile "$CC $CFLAGS $cflags -O0" $srcdir/$subdir/pr19161-2.c tmpdir/pr19161-2.o
+ set saved_LDFLAGS "$LDFLAGS"
+ if [istarget hppa*-*-linux*] {
+ set LDFLAGS "$LDFLAGS --defsym '\$\$dyncall=0'"
+ }
run_dump_test "pr19161"
+ set LDFLAGS "$saved_LDFLAGS"
}
if { [is_elf_format] && [check_shared_lib_support] \