aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* use `sed -E -i.tmp` everywhereMike Frysinger2015-12-161-1/+1
| | | | | | | | POSIX is adding the -E flag to enable ERE behavior, and GNU/sed already supports this, as do various BSD systems (including OS X). While GNU makes the suffix to -i optional, POSIX/etc... do not, so make sure we always specify it.
* lddtree.sh: fix interp handling when doing a full listingMike Frysinger2015-08-201-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | On Debian multiarch systems, the ldso path is symlinked to a different search path (and the main path isn't searched at all). When listing the deps of an ELF which links against the ldso, we end up showing the ldso being loaded by two different paths: $ ./lddtree.sh -a /bin/bash bash => /bin/bash (interpreter => /lib64/ld-linux-x86-64.so.2) libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 ld-linux-x86-64.so.2 => /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 ... Fix the output to show that ld-linux-x86-64.so.2 was located at the same path as the original interpreter as that better matches the runtime ldso behavior. $ ./lddtree.sh -a /bin/bash bash => /bin/bash (interpreter => /lib64/ld-linux-x86-64.so.2) libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 Reported-by: Tomasz Buchert <tomasz@debian.org>
* lddtree: handle direct ldso linkage betterv1.0.5Mike Frysinger2015-07-201-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | If the ELF we're showing is linked directly against the ELF which is used as the ELF interp (i.e. the ldso), make sure we don't list it twice. We want to see it "twice" in the pretty form: $ ./lddtree.py /bin/bash /bin/bash (interpreter => /lib/ld-linux-armhf.so.3) <= here libreadline.so.6 => /lib/libreadline.so.6 libncurses.so.5 => /lib/libncurses.so.5 libc.so.6 => /lib/libc.so.6 ld-linux-armhf.so.3 => /lib/ld-linux-armhf.so.3 <= here But not in the list form (as that is used by scripts): $ ./lddtree.py -l /bin/bash /bin/bash /lib/ld-linux-armhf.so.3 <= only here /lib/libreadline.so.6 /lib/libncurses.so.5 /lib/libc.so.6 We also reconcile a few differences wrt interp display and the sh/py implementations. Reported-by: Tomasz Buchert <tomasz@debian.org>
* migrate to gitv1.0Mike Frysinger2015-03-021-4/+1
|
* lddtree: add GNU to the LINUX/SYSV/NONE compat set #464380 by cmuelle8Mike Frysinger2013-04-071-5/+6
|
* lddtree.sh: add --no-auto-root behavior to match lddtree.pyMike Frysinger2013-04-051-16/+27
|
* lddtree: update copyright linesMike Frysinger2013-04-051-4/+4
|
* lddtree.sh: fix whitespace in usage stringMike Frysinger2013-01-221-3/+3
|
* lddtree.sh: fix by Loïc Yhuel for LD_LIBRARY_PATH processing #449718v0.6Mike Frysinger2013-01-021-3/+3
|
* lddtree: implement $ORIGIN supportMike Frysinger2012-11-151-3/+4
|
* lddtree: add a --list option so scripts can parse the output easilyMike Frysinger2012-11-131-8/+19
|
* lddtree: add a -V (--version) flagMike Frysinger2012-11-101-3/+11
|
* lddtree: normalize linux osabi to sysv since they are compatible (with ↵Mike Frysinger2012-11-101-2/+5
| | | | glibc) #442024
* update copyright yearsMike Frysinger2012-11-041-1/+4
|
* lddtree: add ROOT support #430366 by Richard YaoMike Frysinger2012-11-041-12/+21
|
* lddtree: check for correct abi types before showing a match #364079 by ↵Mike Frysinger2012-11-031-20/+41
| | | | Marc-Antoine Perennou
* lddtree: make sure conf files exist before we try to read them #360041 by ↵Mike Frysinger2011-03-231-1/+4
| | | | Rafał Mużyło
* - add a cvs Header to lddtree.shNed Ludd2011-03-031-0/+1
|
* lddtree: handle "include" in ld.so.conf and LD_LIBRARY_PATHv0.2.3Mike Frysinger2011-03-031-9/+42
|
* switch from getopt program to getopts shell builtinMike Frysinger2010-02-091-12/+8
|
* cache rpath/ldso lookups when possible to speed things upMike Frysinger2009-12-011-2/+14
|
* allow lddtree to be sourced by other scripts to share common funcsMike Frysinger2009-12-011-22/+26
|
* - mainly whitespace updatesNed Ludd2008-01-171-0/+1
|
* if lib cannot be found in rpath/ld.so.conf, check standard library pathsMike Frysinger2007-12-311-0/+1
|
* missed one elf->resolved changeMike Frysinger2007-12-311-1/+1
|
* print the ELF dependency tree as a ......... treeMike Frysinger2007-12-311-0/+120