aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/config
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-12-16 13:40:42 -0800
committerH.J. Lu <hjl.tools@gmail.com>2020-12-16 13:40:51 -0800
commitbcac599f73874fd63a3901f0a9f7d24e50c2ad24 (patch)
tree8186c2ed9d2266e9fab2d5d17f607d3f58e3e4f8 /ld/testsuite/config
parent592995fadd37e3a8d831fc3f48994c9d5cc2a974 (diff)
downloadgdb-bcac599f73874fd63a3901f0a9f7d24e50c2ad24.zip
gdb-bcac599f73874fd63a3901f0a9f7d24e50c2ad24.tar.gz
gdb-bcac599f73874fd63a3901f0a9f7d24e50c2ad24.tar.bz2
ld: Skip libdep plugin if not all plugin hooks are available
Skip plugin if not all required plugin hooks are available. 2020-12-16 Howard Chu <hyc@symas.com> H.J. Lu <hongjiu.lu@intel.com> PR ld/27081 * libdep_plugin.c (onload): Skip if not all required plugin hooks are available. * testsuite/config/default.exp (dep_plug_opt): New. * testsuite/ld-elf/elf.exp: Pass $dep_plug_opt to nm. * testsuite/ld-elf/pr26391.fd: New file.
Diffstat (limited to 'ld/testsuite/config')
-rw-r--r--ld/testsuite/config/default.exp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp
index f711fb7..a8ad1fd 100644
--- a/ld/testsuite/config/default.exp
+++ b/ld/testsuite/config/default.exp
@@ -443,3 +443,11 @@ if { [check_compiler_available] } {
}
}
}
+
+if {[file exists .libs/libdep.so]} {
+ set dep_plug_opt "--plugin .libs/libdep.so"
+} elseif {[file exists .libs/libdep.dll]} {
+ set dep_plug_opt "--plugin .libs/libdep.dll"
+} else {
+ set dep_plug_opt ""
+}