-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add support for stripped go binaries #426
Conversation
Thank you very much for your contribution. However, could you first raise an issue and provide some additional information about the case? Also, please add some validation demos in this PR. Thank you very much. |
@cfc4n , I had created an issue with extra info. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this PR cannot support stripped Go binaries.
allSymbs = append(allSymbs, goSymbs...) | ||
} | ||
|
||
goDynamicSymbs, _ := gc.goElf.DynamicSymbols() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in stripped compiled files , there are also no symbols in the DynamicSymbols
section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
see #426 for more detail. Signed-off-by: cfc4n <cfc4n.cs@gmail.com>
see #426 for more detail. Signed-off-by: cfc4n <cfc4n.cs@gmail.com>
Currently ecapture fails for stripped go binaries.
Because in
findRetOffsets()
method, only symbols fromsym table section
are consider for searching ofGoTlsReadFunc symbol
. Since in case of stripped go binaries nosym table section
is present, ecapture fails to initialise.This PR adds dynamic symbols in search space to fix the issue.
fixes #428