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

I cant't get symbol object correctly, in some case #19

Closed
WXF-wxf1999 opened this issue Jun 5, 2023 · 1 comment
Closed

I cant't get symbol object correctly, in some case #19

WXF-wxf1999 opened this issue Jun 5, 2023 · 1 comment

Comments

@WXF-wxf1999
Copy link

Why does the number of symbols here need to be divided by 2? In my case, I encountered a situation where searching for "poll" symbols failed. The number of symbol table is 731, but the "poll" is located at position 365, so I just can't get the poll symbol object. for this line : https://github.com/fornwall/jelf/blob/ec2c1c2540ec86a6956bdb0c552d703674ae7512/src/main/java/net/fornwall/jelf/ElfFile.java#LL403C1-L403C66

@fornwall
Copy link
Owner

fornwall commented Jul 21, 2023

Thanks @WXF-wxf1999 for reporting! Should be fixed in c778abd, removing the division by 2 (I don't know where that came from). This is in the 0.8.0 release.

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