[patch] Fix the plugin search in some file systems
Rafael Espindola
espindola@google.com
Fri Jun 5 15:31:00 GMT 2009
> No opinion. If the performance hit is only when a --plugin option is
> used, it doesn't seem too important.
It is only when it is not used and there is a bfd-plugins directory. The hit
is one stat per plugin. Since only two implementations of the plugin
API exist (LLVM and GCC's LTO), the hit is probably not noticeable.
2009-06-05 Rafael Avila de Espindola <espindola@google.com>
* plugin.c (load_plugin): Use stat and S_ISREG instead of the d_type
field of struct dirent.
> Ian
>
Cheers,
--
Rafael Avila de Espindola
Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stat.patch
Type: text/x-patch
Size: 557 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20090605/36b34292/attachment.bin>
More information about the Binutils
mailing list