-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse ELF symbol version files #24
Comments
glibc uses
|
In ELF files i have been able to find the following versions:
A few quick and dirty commands to find these:
|
Different projects use different conventions. Take elfutils: https://github.com/sourceware-org/elfutils This project uses https://github.com/sourceware-org/elfutils/blob/master/libelf/libelf.map
There isn't a standard file name. You either have to already "know" it, or add some extra information to your search process, such as the name + version that you are looking for (this is something you can extract from binary files, see above). Probably it is best to just keep a mapping of version files per project somewhere and just use that. |
It could be useful to parse specific file formats such as "version.lds" files and other files to collect ELF versioning information.
For instance, some project such as libfdt use version.lds, while OpenSSL uses .num files (in https://github.com/openssl/openssl/blob/master/util/libssl.num ) and tensorflow uses the .lds extensions but with a different name pattern.
The text was updated successfully, but these errors were encountered: