Skip to content
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

ld.main_bin.symbols returns NoneType #6

Closed
riyadparvez opened this issue Sep 2, 2015 · 1 comment
Closed

ld.main_bin.symbols returns NoneType #6

riyadparvez opened this issue Sep 2, 2015 · 1 comment

Comments

@riyadparvez
Copy link

As the title mentioned: ld.main_bin.symbols returns NoneType. The script I've tried:

In [80]: import cle

In [81]: ld = cle.Loader("/home/riyad/tmp/coreutils-8.24/src/mkdir")

In [82]: ld.main_bin.symbols

In [83]: type(ld.main_bin.symbols)
Out[83]: NoneType

PS Binary isn't stripped.

@rhelmot
Copy link
Member

rhelmot commented Sep 3, 2015

The main issue here is that symbols is an unused property that was deprecated a long time ago but never removed. I just pushed a commit removing the property! If you want to find a symbol with a given name in a given binary, run symb = binary.get_symbol(name), which will perform a lookup in the ELF symbol table via the ELF hash table if necessary.

@rhelmot rhelmot closed this as completed Sep 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants