summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNikolay Bozhenov <n.bozhenov@samsung.com>2015-04-08 13:02:40 +0300
committerDongkyun Son <dongkyun.s@samsung.com>2015-06-04 04:55:08 -0700
commit75b13a503145c9c3893405c32fb0e69b7d8ccb67 (patch)
tree9cd23a9860a7d900a26cc44302e6a2776b5f6deb /bfd
parentca15d11e5aeb129c33aff377b8ca05df5f44c12d (diff)
downloadbinutils-tizen.tar.gz
binutils-tizen.tar.bz2
binutils-tizen.zip
Otherwise, binutils can try to use plugin for different architecture. Change-Id: I3070e774ec7f8494241fe52b7aee6d3ba3acef06
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);