[ld] Fix failure of pr19161 on hppa*-*linux*.
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 19 Oct 2019 17:01:29 +0000 (13:01 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 19 Oct 2019 17:01:29 +0000 (13:01 -0400)
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*.

ld/ChangeLog
ld/testsuite/ld-gc/gc.exp

index 8fc2ceee9d0d6aafe3d423ad8be96b13b8640597..a5d6dd9d561c894c5137fa69080fef6187a3b608 100644 (file)
@@ -1,3 +1,9 @@
+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*.
+
 2019-10-17  Nelson Chu  <nelson.chu@sifive.com>
 
        * testsuite/ld-riscv-elf/lib-nopic-01b.d: Update the error message.
index fe50f31cda9de50490673dddef89609e89b11926..f7915936fd413e51b2e1ccfe83d47b1b8be8592b 100644 (file)
@@ -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] \
This page took 0.043564 seconds and 4 git commands to generate.