https://sourceware.org/bugzilla/show_bug.cgi?id=34191
Bug ID: 34191
Summary: nm doesn't seem to auto-load plugins from
LIBDIR/bfd-plugins (and -plugin doesn't take a name
but a path)
Product: binutils
Version: 2.46.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: rjvbertin at gmail dot com
Target Milestone: ---
According to the manpage, nm should auto-load the appropriate, required plugin
if it exists in LIBDIR/bfd-plugins .
In my build, it will load e.g. GCC's lto plugin (liblto_plugin.so) and use it
if I pass the full path (sic, not the plugin [file]name as suggested by the
manpage) via the `-plugin` option. However, it won't load any plugins from that
location automatically.
I've verified that the correct path hardcoded in the binary, but breakpoints
set in the relevant functions from bfd/plugin.c (the ones that should to the
work, AFAICT) never trigger when I run the application under gdb. Running via
`strace -e open` and `strace -e stat` confirm that no attempts are made to
access any bfd-plugins directory.
Did I overlook some (poorly/un documented) additional condition(s) required for
plugin auto-loading?
--
You are receiving this mail because:
You are on the CC list for the bug.