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

Crash if no main is defined #3

Open
milabs opened this issue Sep 3, 2020 · 1 comment
Open

Crash if no main is defined #3

milabs opened this issue Sep 3, 2020 · 1 comment

Comments

@milabs
Copy link

milabs commented Sep 3, 2020

probably should be:

if (MainFunc) createDecodeStubBlock(MainFunc, DecodeStub);

createDecodeStubBlock(MainFunc, DecodeStub);

@tsarpaul
Copy link
Owner

tsarpaul commented Sep 3, 2020

It won't work without main because it needs to inject the decode stub somewhere.
To fix this we can hook the entry point or maybe add it as an .so init function, but this is only a PoC so I won't be supporting such features.
Feel free to create a pull request if you'd like.

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