[Bug 239238] ldd(1) showing dependencies for shared objects in same name in library paths instead of in current working directory

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jun 2 15:16:25 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239238

Mark Johnston <markj at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markj at FreeBSD.org

--- Comment #1 from Mark Johnston <markj at FreeBSD.org> ---
Indeed, the handling of executables and shared libs is inconsistent.  The
current behaviour makes some sense since it matches the runtime linker's search
algorithm, but it is not really intuitive for a command-line program.  Our
behaviour is also incompatible with Linux's.  The main question would be
whether changing this breaks anything.  It might be reasonable to try searching
the current directory before falling back to the rtld search path.  That would
give more consistent behaviour and be less likely to break anything.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list