summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'bfd')
-rw-r--r--bfd/plugin.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/plugin.c b/bfd/plugin.c
index a068861641c..f30eadef4c1 100644
--- a/bfd/plugin.c
+++ b/bfd/plugin.c
@@ -295,6 +295,14 @@ load_plugin (bfd *abfd)
char *full_name;
struct stat s;
+#ifdef BFD_PLUGIN_LTO_NAME
+#define STRINGIFY(x) STRINGIFY_(x)
+#define STRINGIFY_(x) #x
+ if (strcmp(ent->d_name, STRINGIFY(BFD_PLUGIN_LTO_NAME))) {
+ continue;
+ }
+#endif
+
full_name = concat (p, "/", ent->d_name, NULL);
if (stat(full_name, &s) == 0 && S_ISREG (s.st_mode))
found = try_load_plugin (full_name, abfd);