From 1c1a69dcaeb01037f3191a5ebf1b2f9c0dcbe7a3 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sat, 19 Oct 2019 13:01:29 -0400 Subject: [PATCH] [ld] Fix failure of pr19161 on hppa*-*linux*. ld/ChangeLog 2019-10-19 Alan Modra PR ld/25110 * testsuite/ld-gc/gc.exp: Adjust LDFLAGS for pr19161 dump test on hppa*-*-linux*. --- ld/ChangeLog | 6 ++++++ ld/testsuite/ld-gc/gc.exp | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index 8fc2ceee9d..a5d6dd9d56 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2019-10-19 Alan Modra + + PR ld/25110 + * testsuite/ld-gc/gc.exp: Adjust LDFLAGS for pr19161 dump test on + hppa*-*-linux*. + 2019-10-17 Nelson Chu * testsuite/ld-riscv-elf/lib-nopic-01b.d: Update the error message. diff --git a/ld/testsuite/ld-gc/gc.exp b/ld/testsuite/ld-gc/gc.exp index fe50f31cda..f7915936fd 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] \ -- 2.34.1