PR 34985, ld fails to build on hosts without <dlfcn.h> ld/ * plugin.c: Wrap existing functions in #if BFD_SUPPORTS_PLUGINS. Provide do-nothin stubs for !BFD_SUPPORTS_PLUGINS. binutils/ * testsuite/binutils-all/x86-64/x86-64.exp (run_pr33198_test): Return "untested" rather than "fail" when no plugin support. Differentiate failure messages.