bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/20343] Document how to use LTO


From: dilyan.palauzov at aegee dot org
Subject: [Bug binutils/20343] Document how to use LTO
Date: Sun, 10 Jul 2016 19:26:55 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=20343

--- Comment #6 from dilyan.palauzov at aegee dot org <dilyan.palauzov at aegee 
dot org> ---
I had --enable-plugins.

"strace ar csr ... &|grep bfd" prints

openat(AT_FDCWD, "../bin/../lib/bfd-plugins",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)

hence if it works, depends on the current directory.  In
bfd/plugin.c:load_plugin() I have on line 337
BINDIR=/usr/local/bin
then plugin_dir is evaluated to /usr/local/bin/../lib/bfd-plugins and p (result
of make_relative_prefix()) is
${HOME}/binutils/binutils/../bin/../lib/bfd-plugins.  Afterwards plugin_dir is
discarded and the plugins are searched in the relative dir, stored in p.

How are the plugins supposed to be always found in the relative directories?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]