Skip to main content

Contains command line tools and python functions to search symbols in object files (.o, .obj).

Project description

analyze_objects contains command line tools that analyze compile object files (.o, .obj). It is a wrapper around the platform specific tools nm (linux) or dumpbin (windows).

Currently, it consists of the single shell command find_symbols.

Installing

Install from pip:

python -m pip install analyze_objects

Usage

If binaries of installed python packages are added to the PATH, you can call find_symbols directly from the shell:

find_symbols

Otherwise, it can be invoked using python:

python -m analyze_objects.find_symbols

Examples

Use the following command to search the object files foo.o and bar.o for undefined symbols that match the regular expression "foo":

find_symbols --undef_regex foo foo.o bar.o

Using this command requires that nm (linux) or dumpbin (windows) are available in the PATH. If that is not the case, you can use the --nm_exe or --dumpbin_exe arguments to pass their location to find_symbols. For convenience, you may pass --store_config in addition to --nm_exe or --dumpbin_exe, so that this path will be used in all subsequent calls to find_symbols. The stored configuration can be cleared using --clear_config.

Use --def_regex instead of --undef_regex to search for defined symbols. It is possible to combine both arguments and search for both defined and undefined symbols.

The find_symbols command accepts an arbitrary number of object files. It is possible to use placeholders ** and * in the object file paths.

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

analyze_objects-0.3.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

analyze_objects-0.3.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file analyze_objects-0.3.0.tar.gz.

File metadata

  • Download URL: analyze_objects-0.3.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for analyze_objects-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c74be29da3f71cd15b04ed5ea8a31e9351faf5c0e569d6e859ed352a861e0036
MD5 f59c386f8ed3c56314fc37fd938c63ba
BLAKE2b-256 109a44cd0b0b5128972083616d9f4998b67213d713821bf04e523fc7256f4b12

See more details on using hashes here.

File details

Details for the file analyze_objects-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: analyze_objects-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for analyze_objects-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d1aee2a815e6af4df53c19f738f3d8790ce02ca740a0a80434a4aa96a4f1ffb
MD5 50e4934374f7b991d20e743e11ec3b24
BLAKE2b-256 918facc91d0e96bad12824d4400869da079cf7d00a26f5b3b7f51acb8c447294

See more details on using hashes here.

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