1Avoid `lib -> out -> lib` reference. Normally `bfd-plugins` does not
2need to know binutils' BINDIR at all. It's an absolute path where
3libraries are stored.
4--- a/bfd/plugin.c
5+++ b/bfd/plugin.c
6@@ -493,7 +493,7 @@ build_plugin_list (bfd *abfd)
7 when configuring binutils using --libdir. Search in the proper
8 path first, then the old one for backwards compatibility. */
9 static const char *path[]
10- = { LIBDIR "/bfd-plugins", BINDIR "/../lib/bfd-plugins" };
11+ = { LIBDIR "/bfd-plugins", };
12 struct stat last_st;
13 unsigned int i;
14
15@@ -508,9 +508,7 @@ build_plugin_list (bfd *abfd)
16 last_st.st_ino = 0;
17 for (i = 0; i < sizeof (path) / sizeof (path[0]); i++)
18 {
19- char *plugin_dir = make_relative_prefix (plugin_program_name,
20- BINDIR,
21- path[i]);
22+ char *plugin_dir = xstrdup (path[i]);
23 if (plugin_dir)
24 {
25 struct stat st;