Skip to main content

Collection of dynamic linking tools

Project description

python-sotools

Collection of tools to debug and diagnose ELF objects dynamic linking.

Dynamic linker

The module contains methods to mimic the default dynamic linker on Linux. The resolve method implements all the rules involving the search and selection of a shared object given a shared object name (soname) string.

Dynamic linker cache

The dynamic linker cache (usually present at /etc/ld.so.cache) is a database generated at install time to cache the locations of select shared objects on the system. python-sotools supports reading and parsing this file, along with customized search for matches.

Library set

To simplify the use of the linker, the LibrarySet object is a specialization of a python set that allows to quickly resolve a dependency tree. It contains Library objects and is complete when all dependencies are contained in the set, and allows to verify all the members' required definitions are also present in another set member.

Scripts

The following scripts are installed automatically when installing python-sotools:

ldd.py

Simple re-implementation of ldd with the contents of python-sotools. This version does not use the actual linker and can be trusted not to run any code when executed with unknown executables, unlike the original.

sowhich

Which library is resolved ? This command returns the path for the library name given as an argument. That's it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-sotools-0.1.3.tar.gz (45.1 kB view hashes)

Uploaded Source

Built Distribution

python_sotools-0.1.3-py3-none-any.whl (19.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page