commit: 88ba3abb4737cf252c7a15588b2f45e6ed37fb83
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed May 28 00:18:46 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed May 28 00:18:46 2014 +0000
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=88ba3abb
misc/ldd: add some comments
---
misc/ldd/ldd.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/misc/ldd/ldd.py b/misc/ldd/ldd.py
index 34d6642..5a15786 100755
--- a/misc/ldd/ldd.py
+++ b/misc/ldd/ldd.py
@@ -77,6 +77,9 @@ def ldpaths(ld_so_conf='/etc/ld.so.conf'):
def dynamic_dt_needed_paths( dt_needed, eclass, paths):
+ """ Search library paths for the library file corresponding
+ to the DT_NEEDED and ELF Class.
+ """
dt_needed_paths = {}
for n in dt_needed:
for p in paths:
@@ -121,6 +124,7 @@ def main():
if len(args) > 1:
sys.stdout.write('%s : \n' % f)
eclass = readelf.elf_class()
+ # This needs to be iterated until we traverse the entire
linkage tree
dt_needed = readelf.dynamic_dt_needed()
dt_needed_paths = dynamic_dt_needed_paths( dt_needed, eclass,
paths)
for n, lib in dt_needed_paths.items():