summaryrefslogtreecommitdiffstats
path: root/usr.bin/ldd/ldd.1
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-10-01 01:52:03 +0000
committerpeter <peter@FreeBSD.org>1996-10-01 01:52:03 +0000
commit7523d23ee7b9610928e383200f010b495d600ed5 (patch)
tree12cd8af2040e3c14de37f000299465d28585d53c /usr.bin/ldd/ldd.1
parent7ad318175daf080c971b4afb1a9294c3eb579035 (diff)
downloadFreeBSD-src-7523d23ee7b9610928e383200f010b495d600ed5.zip
FreeBSD-src-7523d23ee7b9610928e383200f010b495d600ed5.tar.gz
Update to handle new version ld.so.hints and info in executable for
configurable fallback search paths, as well as new crt interface version. Also: - even faster getenv(), get all environment variable settings in a single pass. - ldd printf-like format specifications - minor code cleanups, one vsprintf -> vsnprintf (harmless) The library search sequence is a little more complete now. Before, it'd search $LD_LIBRARY_PATH (by opendir/readdir/closedir), then read the hints file, then read /usr/lib (again by scanning thr directory). It would then fail if there was no "found" library. Now, it does LD_LIBRARY_PATH and the hints file the same, but then uses a longer fallback path. The -R path is fetched from the executable if specified at build time, the ldconfig path is appended, and /usr/lib is appended to that. Duplicates are suppressed. This means that simply placing a new library in /usr/local/lib will work (the same as it did in /usr/lib) without needing ldconfig -m. It will find it quicker if the ldconfig is run though. Similar changes have been made to the NetBSD ld.so, but ours is rather different now due to John Polstra's speedups and fixes from a while back. The ldd printf-like format support came direct from NetBSD. Reviewed by: nate, jdp
Diffstat (limited to 'usr.bin/ldd/ldd.1')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud