X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bfd%2Fplugin.c;h=f30eadef4c162a2746bef6327621f34bf443b6cf;hb=refs%2Fheads%2Ftizen_3.0.m1_tv;hp=a068861641c2bac17a5234eb5aebcb5571dafd23;hpb=952d0b7d11c8e13f74df3651b28c4d49bc4d9d80;p=platform%2Fupstream%2Fbinutils.git diff --git a/bfd/plugin.c b/bfd/plugin.c index a068861..f30eade 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);